
/* FUENTE ESTILO iOS / APPLE */
:root {
    --gold: #CF9F3F;
    --gold-bright: #E5C37A;
    --red: #A3172F;
    --red-glow: #ff2a55;
    --bg-dark: #050505;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: #fff;
    overflow-x: hidden;
    /* FONDO DINÁMICO EN MOVIMIENTO */
    background: linear-gradient(-45deg, #050505, #2a0810, #1f1805, #000000);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ANIMACIÓN INTRO NETFLIX STYLE */
#intro-loader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stharm-intro-text {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    color: var(--red);
    letter-spacing: 20px;
    opacity: 0;
    animation: cinematicZoom 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cinematicZoom {
    0% { transform: scale(0.5); opacity: 0; text-shadow: 0 0 0 var(--red); }
    20% { opacity: 1; }
    80% { transform: scale(1.2); opacity: 1; color: var(--gold); text-shadow: 0 0 40px var(--red); }
    100% { transform: scale(2.5); opacity: 0; filter: blur(15px); }
}

/* NAVEGACIÓN TIPO APP CON GLASSMORPHISM */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.logo img {
    height: 80px; 
    filter: drop-shadow(0 0 10px rgba(207, 159, 63, 0.5));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo img:hover {
    transform: scale(1.15) rotate(2deg);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #ddd;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding: 10px 18px;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    background: rgba(207, 159, 63, 0.15);
    border-color: rgba(207, 159, 63, 0.3);
    box-shadow: 0 0 15px rgba(207, 159, 63, 0.2);
}

/* MAIN CONTENT ANIMATIONS */
main {
    flex: 1;
    padding: 60px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-title {
    font-size: 4rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    background: -webkit-linear-gradient(45deg, var(--gold), var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(163, 23, 47, 0.4));
    animation: floatTitle 4s ease-in-out infinite;
}

@keyframes floatTitle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* GLASSMORPHISM CARDS */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 50px;
    max-width: 1200px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,255,255,0.05);
    opacity: 0; /* Starts hidden for animation */
}

/* CLASES DE ANIMACIÓN INDIVIDUALES */
.anim-slide-up { animation: slideUpFade 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; }
.anim-zoom { animation: zoomInFade 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; }
.anim-slide-right { animation: slideRightFade 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; }
.anim-slide-left { animation: slideLeftFade 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; }
.anim-flip { animation: flipInX 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; }

@keyframes slideUpFade {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes zoomInFade {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes slideRightFade {
    from { transform: translateX(-60px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideLeftFade {
    from { transform: translateX(60px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes flipInX {
    from { transform: perspective(1000px) rotateX(45deg); opacity: 0; }
    to { transform: perspective(1000px) rotateX(0deg); opacity: 1; }
}

/* BOTONES */
.btn-glow {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(45deg, var(--red), var(--gold));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(163, 23, 47, 0.6);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-glow:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(207, 159, 63, 0.8);
}

/* GRID LAYOUTS */
.rich-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.rich-card {
    background: rgba(0,0,0,0.6);
    border: 2px solid rgba(207, 159, 63, 0.3);
    border-radius: 25px;
    padding: 40px;
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.rich-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
    border-color: var(--gold-bright);
    box-shadow: -20px 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(207, 159, 63, 0.4);
}

.rich-card h3 {
    font-size: 2.2rem;
    color: var(--gold-bright);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(207,159,63,0.5);
}

.rich-card h4 {
    font-size: 1.5rem;
    color: var(--red-glow);
    margin-bottom: 15px;
}

.rich-card p, .rich-card li {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* LIDERAZGO BUBBLE */
.leadership-box {
    display: flex;
    align-items: center;
    gap: 30px;
    background: linear-gradient(135deg, rgba(163, 23, 47, 0.2), rgba(207, 159, 63, 0.1));
    border: 1px solid var(--gold);
    border-radius: 25px;
    padding: 40px;
    margin-top: 50px;
}
.leadership-avatar {
    width: 100px;
    height: 100px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #000;
    box-shadow: 0 0 20px rgba(207, 159, 63, 0.5);
    flex-shrink: 0;
}

/* --- BURBUJAS ESTILO CHAT WHATSAPP CON AVATARES --- */
.ios-chat {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.chat-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}

.chat-wrapper.ceo-wrapper {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-bright);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    background-color: #222; /* Placeholder color if image fails */
}

.bubble {
    padding: 20px 25px;
    border-radius: 25px;
    max-width: 75%;
    font-size: 1.2rem;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.bubble.ceo {
    background: linear-gradient(135deg, var(--red), #5a0c1a);
    color: white;
    border-bottom-right-radius: 5px;
}

.bubble.stharmer {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-bottom-left-radius: 5px;
}

.bubble-author {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 10px;
    display: block;
    font-weight: 600;
}

/* EFECTO DE ESCRITURA (Typing) */
#typing-container {
    min-height: 120px;
    margin-bottom: 30px;
    text-align: center;
}

#typing-text {
    font-size: 3rem;
    font-weight: bold;
    background: -webkit-linear-gradient(45deg, #fff, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cursor {
    font-size: 3rem;
    color: var(--gold);
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* FOOTER */
footer {
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

footer a {
    color: var(--gold);
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s, text-shadow 0.3s;
}

footer a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--gold);
}
