/* === style.css - VERSIÓN 5.7 === */

/* --- 1. DEFINICIÓN DE FUENTES CORPORATIVAS --- */
@font-face {
    font-family: 'Altis Black';
    src: url('https://studiomango.net/mango-server-i/font/AltisBlack/altisblack.woff2') format('woff2');
    font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Altis';
    src: url('https://studiomango.net/mango-server-i/font/Altis/Altis.woff2') format('woff2');
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Abel';
    src: url('https://studiomango.net/mango-server-i/font/Abel/abel-regular-webfont.woff2') format('woff2');
    font-weight: normal; font-style: normal; font-display: swap;
}

/* --- 2. SISTEMA DE COLORES Y FUENTES (VARIABLES CSS) --- */
:root {
    --negro: #000000;
    --neutral-dark: #111111;
    --neutral-primary: #212121;
    --neutral-secondary: #333333;
    --neutral-tertiary: #a6a6a6;
    --neutral-light: #eaeaea;
    --blanco: #ffffff;
    --gris-50: #808080;
    --magenta-principal: #E54D6E;
    --amarillo: #FDC031;
    --verde-tm: #C8FE2D;
    --blue-light: #03A9F4;
    --font-headings: 'Altis Black', sans-serif;
    --font-body: 'Altis', sans-serif;
    --font-details: 'Abel', sans-serif;
    --header-height: 70px;
}

/* --- 3. RESET Y ESTILOS GLOBALES --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    background-color: var(--negro); 
    color: var(--neutral-light); 
    font-family: var(--font-body);
    transition: opacity 0.4s ease-in-out; /* TRANSICIÓN PARA FADE IN/OUT */
}
body.page-loading {
    opacity: 0; /* ESTADO INICIAL Y FINAL DE LA TRANSICIÓN */
}

/* --- 4. ESTILOS: SPLASH PAGE (INDEX.HTML) --- */
.splash-background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; overflow: hidden; }
.splash-background video { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 100%; min-height: 100%; width: auto; height: auto; object-fit: cover; }
.mobile-video video { object-position: left center; }
.splash-container { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: space-between; align-items: center; height: 100vh; padding: 40px 20px 20px 20px; text-align: center; }
.splash-logo { width: auto; margin-bottom: 20px; }
.logo-mobile { height: 60px; }
.logo-desktop { height: 100px; }
.splash-content { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; }
.splash-content h1 { position: relative; font-family: var(--font-headings); font-size: clamp(2.2rem, 8vw, 5rem); line-height: 1.1; margin-bottom: 1rem; background-image: linear-gradient(to bottom, var(--blanco) 30%, var(--gris-50)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.splash-content h1::before { content: attr(data-text); position: absolute; z-index: -1; top: 5px; left: 0; width: 100%; color: var(--negro); filter: blur(15px); }
.splash-content p { font-family: var(--font-details); font-size: clamp(1rem, 2.5vw, 1.2rem); color: var(--neutral-tertiary); letter-spacing: 1px; margin-bottom: 2.5rem; text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.7); }
.enter-button { font-family: var(--font-headings); font-size: 1.4rem; color: var(--negro); text-decoration: none; padding: 15px 60px; border-radius: 50px; background-image: linear-gradient(90deg, var(--magenta-principal) 0%, var(--amarillo) 100%); border: none; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5); }
.enter-button:hover { transform: scale(1.05); box-shadow: 0 10px 30px rgba(253, 192, 49, 0.3); }
.splash-footer { position: static; width: 100%; font-family: var(--font-details); font-size: 10px; letter-spacing: 0.5px; color: var(--blanco); text-shadow: 0px 2px 5px rgba(0, 0, 0, 1); }
.splash-container .logo-desktop, .desktop-video { display: none; }
.splash-container .logo-mobile, .mobile-video { display: block; }

/* --- 5. ESTILOS: PÁGINAS INTERNAS (GENERAL) --- */
.main-header { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; height: var(--header-height); position: fixed; width: 100%; top: 0; z-index: 2000; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px); border-bottom: 1px solid var(--neutral-primary); }
.main-header .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blanco); }
.main-header .logo img { height: 35px; width: auto; }
.main-header .logo span { font-family: var(--font-headings); font-weight: 900; }
.desktop-nav, .cta-button { display: none; }
.menu-icon { width: 28px; height: 20px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; }
.menu-icon span { width: 100%; height: 3px; background-color: var(--blanco); border-radius: 2px; transition: all 0.3s ease-in-out; }
.mobile-menu-overlay { position: fixed; top: 0; right: 0; width: 100%; height: 100svh; background-color: var(--negro); z-index: 1000; display: block; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1); overflow-y: auto; }
.mobile-menu-overlay.is-active { transform: translateX(0); }
.mobile-menu-overlay nav { display: flex; flex-direction: column; text-align: center; padding: 100px 20px 0 20px; }
.mobile-menu-overlay nav a { font-family: var(--font-headings); color: var(--blanco); text-decoration: none; font-size: 1.5rem; padding: 0.8rem 0; }
.menu-icon.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-icon.is-active span:nth-child(2) { opacity: 0; }
.menu-icon.is-active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
main { padding-top: var(--header-height); }
.hero-section { min-height: calc(80svh - var(--header-height)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3rem 20px; }
.hero-section h1 { position: relative; font-family: var(--font-headings); font-size: clamp(2.5rem, 10vw, 5rem); line-height: 1.1; background-image: linear-gradient(to bottom, var(--blanco), var(--gris-50)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-section h1::before { content: attr(data-text); position: absolute; z-index: -1; top: 5px; left: 0; width: 100%; color: var(--negro); filter: blur(15px); }
.hero-section p { font-family: var(--font-details); font-size: 1.3rem; color: var(--neutral-tertiary); max-width: 45ch; margin: 1.5rem auto 0; text-align: center; }
.main-footer { font-family: var(--font-details); text-align: center; padding: 3rem 20px; color: var(--neutral-secondary); }

/* --- 5.1 ESTILOS: HOME PAGE (REDESIGNED SERVICE SHOWCASE) --- */
.service-showcase-section { padding: 4rem 20px; background-color: var(--neutral-dark); }
.service-showcase-section h2 { font-family: var(--font-headings); text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: var(--blanco); }
.service-grid-v2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
.service-module-v2 { background-color: var(--neutral-primary); padding: 2.5rem; border-radius: 16px; border: 1px solid var(--neutral-secondary); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.service-module-v2:hover { transform: translateY(-10px) scale(1.02); }
.service-module-v2 h3 { font-family: var(--font-headings); font-size: 1.8rem; margin-bottom: 1rem; color: var(--neutral-light); }
.service-module-v2 p { font-family: var(--font-details); font-size: 1.1rem; color: var(--neutral-tertiary); line-height: 1.5; }
.module-link { font-family: var(--font-body); text-decoration: none; font-weight: 500; display: inline-block; margin-top: 1.5rem; color: var(--neutral-tertiary); transition: color 0.3s ease; }
#design-module:hover { border-color: var(--magenta-principal); box-shadow: 0px 10px 40px -15px rgba(229, 77, 110, 0.4); }
#design-module:hover h3, #design-module:hover .module-link { color: var(--magenta-principal); }
#management-module:hover { border-color: var(--verde-tm); box-shadow: 0px 10px 40px -15px rgba(200, 254, 45, 0.4); }
#management-module:hover h3, #management-module:hover .module-link { color: var(--verde-tm); }
#marketing-module:hover { border-color: var(--blue-light); box-shadow: 0px 10px 40px -15px rgba(3, 169, 244, 0.4); }
#marketing-module:hover h3, #marketing-module:hover .module-link { color: var(--blue-light); }

/* --- 5.2 ESTILOS: PÁGINAS DE SERVICIO --- */
.service-hero { position: relative; min-height: 60vh; overflow: hidden; }
.service-hero .hero-content { position: relative; z-index: 2; }
.service-hero .hero-content p { color: var(--blanco); text-shadow: 0px 2px 8px rgba(0,0,0,0.9); }
.hero-image-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-image-container::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 100%); }
.hero-image-container img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.service-details-section { padding: 4rem 20px; background-color: var(--neutral-dark); }
.service-details-section h2 { font-family: var(--font-headings); text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: var(--blanco); }
.details-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
.detail-item { background: var(--neutral-primary); padding: 2.5rem; border-radius: 16px; border: 1px solid var(--neutral-secondary); }
.detail-item h3 { font-family: var(--font-headings); font-size: 1.8rem; margin-bottom: 1rem; color: var(--magenta-principal); }
.detail-item p { font-family: var(--font-details); font-size: 1.1rem; color: var(--neutral-tertiary); }

/* --- 5.3 ESTILOS: PÁGINA ABOUT --- */
.content-section { padding: 4rem 20px; }
.content-section .content-wrapper { max-width: 800px; margin: 0 auto; }
.content-section h2 { font-family: var(--font-headings); font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--blanco); }
.content-section p { font-family: var(--font-details); font-size: 1.2rem; color: var(--neutral-tertiary); line-height: 1.7; margin-bottom: 1.5rem; }
.team-section { text-align: center; }
.team-section h3 { font-family: var(--font-headings); font-size: 1.5rem; color: var(--neutral-light); margin-top: 3rem; margin-bottom: 2rem; }
.team-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.team-member-card { background-color: var(--neutral-primary); padding: 2rem; border-radius: 16px; border: 1px solid var(--neutral-secondary); }
.team-member-card .title { font-family: var(--font-headings); font-size: 1.3rem; color: var(--blanco); }
.ai-showcase {
    background-image: url('https://assets.studiomango.net/images/sm-ai-core-graphic.webp');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 150px;
    padding-top: 170px; /* Space for the background image */
    margin-top: 2rem;
}
.ai-showcase .name { font-family: var(--font-headings); font-size: 1.3rem; color: var(--blanco); }
.ai-showcase .title { font-family: var(--font-body); font-size: 0.9rem; color: var(--blue-light); margin-top: 0.5rem; }

/* --- 5.4 ESTILOS: PÁGINA CONTACT --- */
.contact-card { background-color: var(--neutral-primary); border: 1px solid var(--neutral-secondary); border-radius: 16px; padding: 3rem; text-align: center; }
.contact-card .cta-button-large { font-family: var(--font-headings); font-size: 1.6rem; color: var(--negro); text-decoration: none; padding: 18px 65px; border-radius: 50px; background-image: linear-gradient(90deg, var(--magenta-principal) 0%, var(--amarillo) 100%); display: inline-block; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.contact-card .cta-button-large:hover { transform: scale(1.05); box-shadow: 0 10px 30px rgba(253, 192, 49, 0.3); }

/* --- 5.5 ESTILOS: CONTROLES DE UI ADICIONALES --- */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre el control de audio y el botón CTA */
}
.audio-control {
    width: 24px;
    height: 24px;
    cursor: pointer;
}
.audio-control svg {
    width: 100%;
    height: 100%;
    fill: var(--neutral-tertiary);
    transition: fill 0.3s ease;
}
.audio-control:hover svg {
    fill: var(--blanco);
}

/* --- 5.5 ESTILOS: ANIMACIONES DE SCROLL --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 6. MEDIA QUERIES (ADAPTABILIDAD) --- */
@media (min-width: 768px) {
    .splash-container .logo-desktop, .desktop-video { display: block; }
    .splash-container .logo-mobile, .mobile-video { display: none; }
    .main-header { padding: 0 40px; }
    .desktop-nav { display: flex; align-items: center; gap: 2rem; }
    .desktop-nav a { font-family: var(--font-body); color: var(--blanco); text-decoration: none; font-size: 1rem; transition: color 0.3s ease; }
    .desktop-nav a:hover { color: var(--amarillo); }
    .cta-button { display: block; font-family: var(--font-body); background-image: linear-gradient(90deg, var(--magenta-principal), var(--amarillo)); color: var(--negro); padding: 0.7rem 1.5rem; border-radius: 50px; text-decoration: none; font-weight: 500; transition: transform 0.3s ease, box-shadow 0.3s ease; }
    .cta-button:hover { transform: scale(1.05); box-shadow: 0 5px 20px rgba(253, 192, 49, 0.2); }
    .menu-icon { display: none; } /* Asegúrate de que el menú hamburguesa solo aparezca en móvil */
    .dropdown { position: relative; display: inline-block; }
    .drop-btn { cursor: pointer; }
    .dropdown-content { display: none; position: absolute; background-color: var(--neutral-dark); min-width: 200px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 1; border-radius: 8px; border: 1px solid var(--neutral-primary); top: 100%; padding-top: 10px; }
    .dropdown-content a { color: var(--neutral-tertiary); padding: 12px 16px; text-decoration: none; display: block; font-family: var(--font-body); font-size: 0.9rem; }
    .dropdown-content a:hover { background-color: var(--neutral-primary); color: var(--blanco); }
    .dropdown:hover .dropdown-content { display: block; }
    .hero-section h1 { font-size: 5rem; }
    .service-grid-v2 { grid-template-columns: repeat(2, 1fr); }
    .details-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .hero-section h1 { font-size: 6rem; }
    .service-grid-v2 { grid-template-columns: repeat(3, 1fr); }
    .details-grid { grid-template-columns: repeat(3, 1fr); }
    section { padding-left: 10%; padding-right: 10%; }
}