/* ESTILO GLOBAL - SISTEMA VISUAL RO AGENCIA
   Colores: Amarillo #f0a321, Gris #272727
   Fuentes: Helvetica Black (Títulos), Helvetica Bold (Menú), Gotham (Párrafos/Botón)
*/

/* --- DECLARACIÓN DE FUENTES DESDE SERVIDOR (Rutas y archivos exactos) --- */

/* Familia Helvetica - Carpeta: fonts/Helvetica/ */
@font-face {
    font-family: 'Helvetica Black';
    src: url('fonts/Helvetica/HelveticaLTStdBlk.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Bold';
    src: url('fonts/Helvetica/HelveticaLTStdBold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* Familia Gotham - Carpeta: fonts/Gotham/ */
@font-face {
    font-family: 'Gotham Bold';
    src: url('fonts/Gotham/GothamBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham Book';
    src: url('fonts/Gotham/GothamBook.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* --- VARIABLES DE RAÍZ --- */
:root {
    --amarillo: #f0a321;
    --gris-oscuro: #272727;
    --blanco: #ffffff;
    
    /* Asignación según especificación de diseño */
    --font-heading: 'Helvetica Black', sans-serif;
    --font-menu: 'Helvetica Bold', sans-serif;
    --font-paragraph: 'Gotham Book', sans-serif;
    --font-button: 'Gotham Bold', sans-serif;
}

/* --- ESTILOS BASE --- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--amarillo);
    font-family: var(--font-paragraph);
    color: var(--gris-oscuro);
    /* Bloqueamos el scroll total aquí */
    overflow: hidden; 
    height: 100vh;
    width: 100vw;
}

/* Evitar scroll específico en Coming Soon */
body.coming-soon {
    overflow: hidden;
    height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

/* --- HEADER --- */
.main-header {
    padding: 60px 0;
    /* Animación de entrada para el logo y menú */
    animation: revealDown 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 100px;
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 60px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--gris-oscuro);
    font-family: var(--font-menu);
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- INDEX HERO SECTION --- */
.hero-section {
    position: relative;
    padding-top: 50px;
    padding-bottom: 100px;
    min-height: calc(100vh - 250px);
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.hero-text {
    flex: 0 0 80%;
    padding-left: 80px;
    z-index: 10;
}

.hero-text h1 {
    font-family: var(--font-heading);
    line-height: 1.00;
    text-transform: uppercase;
    font-size: 100px;
    display: block;
    width: fit-content;

    /* Animación de entrada y pulso constante */
    animation: revealRight 1s ease-out forwards, 
               textPulse 6s ease-in-out infinite 1.2s;
    transition: transform 0.3s ease;
}

.hero-text h1:hover {
    transform: translateX(10px) scale(1.02);
}

.white-text {
    color: var(--blanco);
}

.hero-text p {
    font-family: var(--font-paragraph);
    color: var(--gris-oscuro);
    font-size: 22px;
    line-height: 1.4;
    max-width: 880px;
    margin-top: 50px;
    margin-bottom: 50px;
    -webkit-font-smoothing: antialiased;

    /* Entrada con retraso */
    opacity: 0;
    animation: revealRight 1s ease-out 0.4s forwards;
}

.btn-ro-grande {
    display: inline-block;
    background-color: var(--gris-oscuro);
    color: var(--blanco);
    margin-left: -80px;
    padding: 10px 20px; 
    font-family: var(--font-button);
    font-size: 20px;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px; 
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;

    /* Entrada con más retraso */
    opacity: 0;
    animation: revealRight 1s ease-out 0.6s forwards;
}

.btn-ro-grande:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
}

/* ONDA INDEX */
.hero-visual {
    flex: 0 0 40%;
    position: absolute;
    right: -200px;
    top: 70%; 
    transform: translateY(-50%);
    overflow: visible; 
    pointer-events: none;
}

.onda-vertical {
    width: 900px;
    height: auto;
    transform: rotate(90deg); 
    display: block;
    pointer-events: none;
    opacity: 0.9;
}

/* --- EXCLUSIVOS COMING SOON --- */

.coming-soon .hero-container {
    z-index: 5;
}

.coming-soon .hero-text {
    z-index: 20; 
    flex: 0 0 60%;
    animation: fadeUp 1s ease forwards;
}

.onda-pronto {
    width: 1300px !important; 
    height: auto;
    position: absolute !important;
    right: -350px !important;
    top: 50%;
    transform: translateY(-50%) rotate(90deg) !important;
    z-index: -1 !important; 
    opacity: 0.8 !important; 
    pointer-events: none;
    animation: floatWave 8s ease-in-out infinite;
}

.soon-socials {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 30;
}

.soon-socials a {
    color: var(--gris-oscuro);
    font-size: 28px;
    text-decoration: none;
    transition: 0.3s;
}

.soon-socials a:hover {
    color: var(--blanco);
    transform: scale(1.2);
}

/* --- ANIMACIONES --- */

/* Entrada Header */
@keyframes revealDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Entrada Hero Text */
@keyframes revealRight {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Respiración del Título */
@keyframes textPulse {
    0%, 100% { transform: scale(1); filter: brightness(100%); }
    50% { transform: scale(1.015); filter: brightness(108%); }
}

@keyframes floatWave {
    0%, 100% { transform: translateY(-50%) rotate(90deg) translateX(0); }
    50% { transform: translateY(-52%) rotate(92deg) translateX(15px); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .container { padding: 0 20px; }
    .header-flex { flex-direction: column; text-align: center; }
    .main-nav ul { margin-top: 30px; flex-wrap: wrap; justify-content: center; }
    .main-nav ul li { margin: 10px 15px; }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-text { flex: 0 0 100%; padding-left: 0; margin-bottom: 50px; }
    .hero-text p { margin: 0 auto 50px auto; }
    
    .onda-pronto {
        width: 100% !important;
        max-width: 400px !important;
        position: relative !important;
        right: 0 !important;
        top: 0 !important;
        transform: rotate(90deg) scale(0.8) !important;
        margin: 40px auto 0 auto;
        opacity: 0.5;
        animation: none;
    }

    .soon-socials { justify-content: center; }
    .btn-ro-grande { margin-left: 0; }
}