/* =========================================================
   VARIABLES CSS
========================================================= */
:root {
    --bg-page: #f5f2ea;
    --bg-section-alt: #fdf4d4;
    --text-main: #262525;
    --text-muted: #777;
    --button-bg: #262525;
    --button-text: #fff;
    --card-bg: #ffffff;
    --card-border: #e0ded7;
}

/* =========================================================
   RESET Y BASE
========================================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* SOLUCIÓN LÍNEA DERECHA: Evita que el scroll lateral se active */
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;
    font-family: "Chivo", sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    /* SOLUCIÓN LÍNEA DERECHA: Asegura que nada sobresalga del cuerpo */
    overflow-x: hidden;
    width: 100%;
    position: relative;
	background-color: #f5f2ea; /* Color de fondo base por si falla el GIF */
    background-image: url('grafix/bg03.gif'); /* Asegúrate de que la ruta sea correcta */
    background-repeat: repeat; /* Para que se repita como mosaico */
    background-attachment: fixed; /* Para que el GIF no se mueva al hacer scroll */
    background-size: 600px; /* Ajusta este valor (ej. 50px, 150px) para cambiar el tamaño del patrón */
}

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
    /* Extra de seguridad para contenedores internos */
    position: relative;
	background-color: transparent;
}

/* =========================================================
   HEADER
========================================================= */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    padding-top: 10px;
    background: transparent; /* Eliminado el !important */
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Rehabilitamos los clics para el logo y menú */
    pointer-events: auto;
}

.logo-box {
    width: 120px;
    /* Añadimos 'px' a los desplazamientos para que el navegador los reconozca */
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.5));
    transition: filter 0.3s ease; 
}

.logo-box img {
    width: 100%;
    display: block;
}

.main-nav {
    align-items: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.nav-link {
    display: inline-block;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0);
    color: #fff;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 300;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    background-color: #333;
    color: #fff;
    transform: translateY(-1px);
}



/* HEADER RESPONSIVE */
@media (max-width: 768px) {
    .header {
        /* Reforzamos el degradado en móvil para el logo centrado */
        background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    }

    .header-inner {
        flex-direction: column;
        align-items: center;    /* Logo al centro */
        text-align: center;      
        gap: 15px;
        padding: 12px 20px;
    }

    .logo-box {
        width: 140px;           
        margin: 0 auto;         
        display: flex;
        justify-content: center;
    }

    .logo-box img {
        width: 80%;             
        margin: 0 auto;
    }

    .main-nav {
        justify-content: center; 
        width: 100%;
        gap: 15px;
    }
}

/* =========================================================
   HERO FULLSCREEN
========================================================= */
.hero--fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Ajuste para evitar desbordamientos en Mac/Chrome */
    margin-left: 0;
    margin-right: 0;
	height: 100svh; /* Mejora para navegadores móviles modernos */
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    padding: 0;
    overflow: hidden;
    background: #000;
}

/* ... El resto de tu código de HERO MEDIA, TEXTO, BUTTONS, etc., se mantiene igual ... */

.hero-media {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    left: 8vw;
    bottom: 12vh;
    max-width: 60vw;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0,0,0,0.35);
    opacity: 0;
    transform: translateY(16px);
    animation: heroFadeUp 0.9s ease-out 0.3s forwards;
}

.hero-text h1 {
    margin: 0 0 10px;
    font-weight: 100;
    font-size: 4.2vw;
    line-height: 1.05;
}

.hero-text p {
    margin: 0;
    font-size: 1.4vw;
    font-weight: 300;
    line-height: 1.35;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* HERO RESPONSIVE */
@media (max-width: 768px) {
    .hero-text {
        left: 20px;
        bottom: 24px;
        max-width: 90%;
    }
    .hero-text h1 { font-size: 34px; }
    .hero-text p { font-size: 17px; }
}

@media (max-width: 600px) {
    .hero-text h1 { font-size: 44px; bottom: 16vh; }
    .scroll-indicator { bottom: 6vh; }
}

/* =========================================================
   SCROLL INDICATOR
========================================================= */
.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 9px;
    transform: translateX(-50%);
    width: 32px;
    height: 48px;
    border-radius: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 6px;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

.scroll-indicator:hover { opacity: 1; }

.scroll-icon {
    width: 42px;
    height: auto;
    animation: arrowBounce 1.4s infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

@media (max-width: 768px) {
    .scroll-indicator { bottom: 16px; width: 28px; height: 42px; }
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
    padding: 12px 26px;
    background: var(--button-bg);
    color: var(--button-text);
    border-radius: 0px;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    display: inline-block;
    text-align: center;
}

.btn-ghost {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
}

.btn.small {
    padding: 9px 20px;
    font-size: 12px;
}

/* =========================================================
   SECCIONES
========================================================= */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 0;
	background-color: transparent;
}

.section--alt { background-color: transparent; border-radius: 32px; }

.section-intro { margin-bottom: 36px; }

.section-headline {
    font-weight: 700;
    font-size: 20px;
    margin: 0 0 16px;
}

.section-intro-text {
    font-weight: 300;
    font-size: 20px;
    max-width: 557px;
}

.section-gordo {
    font-weight: 100;
    font-size: 70px;
    margin: 200px 20px;
}
.section-intro-text strong {
    font-weight: 500; 
    color: var(--text-main);
}
.section-intro-text.text-highlight {
    font-size: 28px;      /* Aumenta el tamaño (el original es 20px) */
    margin-top: 40px;     /* Separa la frase del bloque de texto superior */
    line-height: 1.2;     /* Ajusta el espacio entre líneas para que se vea compacto */
    display: block;       /* Asegura que se comporte como un bloque independiente */
}

.formula-destacada {
    display: inline-block; /* Permite que el margen funcione */
    margin-top: 15px;      /* Crea el espacio extra después de "disfrutamos" */
    line-height: 1.4;      /* Mejora la lectura de la fórmula */
    color: var(--text-main);
}

/* Ajuste para que en móviles no sea gigantesco */
@media (max-width: 768px) {
    .section-intro-text.text-highlight {
        font-size: 22px;  /* Un tamaño más equilibrado para pantallas pequeñas */
        margin-top: 30px;
    }
}

/* =========================================================
   PORTFOLIO
========================================================= */
.portfolio-category { margin-bottom: 80px; }
#portfolio-section .portfolio-category:last-child { margin-bottom: 0; }

.media-box {
    background:transparent; 
    border: 0;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 850/526;
    position: relative;
}

.fade-carousel { position: relative; height: 100%; }

.fade-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-slide.active { opacity: 1; }

.social-buttons { margin-top: 20px; }

/* =========================================================
   STUDIO
========================================================= */
.services-list {
    display: block;
    font-size: 21px;
	margin-top: 10px;
    font-weight: 400;
    line-height: 1.1;
    margin-top: 15px;
	opacity: 0.8;
}

/* =========================================================
   CONTACTO
========================================================= */
.contact-section {
    max-width: 620px;
    text-align: left;
}

.contact-label { font-size: 18px; margin-top: 16px; font-weight: 300; }

.contact-email {
    font-size: 35px;
    font-weight: 300;
    font-style: italic;
    text-decoration: none;
    color: var(--text-main);
    display: block;
    margin-bottom: 16px;
}

/* =========================================================
   CLIENTES
========================================================= */
.clients-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.clients-graphic img {
    max-width: 100%;
    height: auto;
}

/* =========================================================
   COOKIE BANNER
========================================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(17, 17, 17, 0.9);
    color: #CCC;
    padding: 26px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
    pointer-events: auto;
}

.cookie-banner p { max-width: 304px; }
.cookie-banner p a {
    color: #00c853;
    text-decoration: underline;
    transition: color 0.2s ease;
}
.cookie-banner p a:hover { color: #fff; }

.cookie-banner .btn {
    padding: 9px 20px;
    font-size: 15px;
    background: #333;
    color: #00c853;
    border: none;
    cursor: pointer;
}

/* =========================================================
   PRELOADER (Círculo sólido con toque RGB)
========================================================= */
.preloader {
    position: fixed;
    inset: 0;
    background-color: var(--bg-page);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
}

.loader-content {
    position: relative;
    display: flex;
    justify-content: center; /* El círculo se queda en el centro */
    align-items: center;
    width: 300px; 
    height: 300px;
}

.loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.loader-circle circle {
    fill: none;
    stroke: var(--text-main);
    stroke-width: 2; /* Más fino = más elegante */
    opacity: 0.4;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    stroke-linecap: round;
    
    /* EFECTO ABERRACIÓN RGB SUTIL */
    filter: drop-shadow(1.5px 0px 0px rgba(255, 0, 0, 0.5)) 
            drop-shadow(-1.5px 0px 0px rgba(0, 255, 255, 0.5));
            
    animation: drawCircle 2.5s ease-in-out infinite;
}

.logo-loader {
    position: absolute;      /* Clave para moverlo libremente */
    left: -50px;             /* VALOR CLAVE: Muévelo hacia afuera (números negativos) */
    font-weight: 300;
    letter-spacing: 10px; 
    font-size: 15px;
    text-transform: uppercase;
    color: var(--text-main);
    white-space: nowrap;     /* Obliga a que el texto esté en una sola línea */
    z-index: 10;
    animation: pulseText 2.5s ease-in-out infinite;
}
/* --- ANIMACIONES --- */

@keyframes drawCircle {
    0% { stroke-dashoffset: 283; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -283; }
}

@keyframes pulseText {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* =========================================================
   RESPONSIVE GENERAL
========================================================= */
@media (max-width: 768px) {
    .section { padding: 40px 0; }
    .portfolio-category { margin-bottom: 40px; }
    .studio-section h2 { font-size: 40px; }
    .studio-section p { font-size: 20px; }
    .section-headline { font-size: 24px; }
    .section-intro-text { font-size: 18px; }
    .contact-email { font-size: 24px; }
    .section-gordo { font-size: 55px; margin: 60px 20px; }
}

@media (max-width: 438px) {
    .page-wrapper { padding: 0 16px 60px; }
}
/* Estado inicial: oculto y ligeramente desplazado hacia abajo */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Estado activo: se vuelve visible y sube a su posición original */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ESTILO DE FRANJA NEGRA PARA LOS LINKS */
.nav-link {
    display: inline-block;
    padding: 5px 10px;        /* Espacio interno para la franja */
    background-color: rgba(0, 0, 0, 0.0); /* Negro al 50% */
    color: #fff;              /* Texto en blanco para contraste */
    text-decoration: none;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 300;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border-radius: 2px;       /* Un toque sutil para que no sea tan rudo */
}

/* EFECTO HOVER: Invertir colores o cambiar intensidad */
.nav-link:hover {
    background-color: #333;   /* Gris oscuro al pasar el ratón */
    color: #fff;
    transform: translateY(-1px); /* Pequeño salto para dinamismo */
}

/* OPCIONAL: Separación entre los botones en desktop */
.main-nav {
    display: flex;
    gap: 15px;               /* Espacio entre las franjas negras */
}

/* AJUSTE PARA MÓVILES: Para que no se amontonen */
@media (max-width: 767px) {
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 15px;
    }
}

/* BOTÓN WHATSAPP ESPECÍFICO */
.btn-whatsapp {
    background-color: #116d37 !important; /* El verde que pediste */
    color: #ffffff !important;           /* Texto blanco */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #1a8a48 !important; /* Un verde un poco más claro al pasar el ratón */
    transform: translateY(-2px);           /* Mismo efecto de salto que tus otros links */
}
@media (max-width: 768px) {
    /* Expande el carrusel a pantalla completa lateral */
    .media-box.fade-carousel {
        width: 100vw;
        margin-left: -20px; /* Anula el padding de 20px del padre */
        border-radius: 0;
        max-width: none;
        position: relative;
        left: 0;
    }

    /* Asegura que las imágenes llenen el nuevo ancho */
    .fade-slide {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Ajuste del degradado del header en móvil */
    .header {
        background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
    }
}

.tachan {
    font-weight: 700;
    font-style: italic;
    color: #000; /* O un color de acento si lo tienes */
    letter-spacing: 0.05em;
}
.carousel-link {
    display: block;      /* Hace que el enlace ocupe todo el ancho */
    text-decoration: none;
    width: 100%;
    cursor: pointer;     /* Asegura que aparezca la mano al pasar el ratón */
}

/* Opcional: un ligero efecto de opacidad al pasar el ratón para indicar que es clickeable */
.carousel-link:hover .media-box {
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}
/* --- AJUSTE GLOBAL (Desktop y Móvil) --- */

/* Eliminamos el choque de espacios entre secciones */
#studio-intro {
    padding-bottom: 0px !important; 
}

#portfolio-section {
    padding-top: 20px !important; 
}

/* Quitamos el margen del encabezado que también suma espacio */
#studio-intro .section-intro {
    margin-bottom: 10px;
}

/* --- AJUSTE EXCLUSIVO MÓVIL --- */
@media (max-width: 768px) {
    /* Menú más pequeño en móvil */
    .nav-link {
        font-size: 10px; 
        padding: 4px 8px;
        letter-spacing: 1px;
    }

    /* Reducimos aún más los espacios en móvil para que sea compacto */
    .section {
        padding: 30px 0;
    }
    
    .section-headline {
        font-size: 21px;
    }
}

/* --- AJUSTE SOLO PARA DESKTOP --- */
@media (min-width: 769px) {
    .nav-link {
        font-size: 14px !important; /* Ajusta este número a tu gusto (estaba en 0.75rem / 12px) */
        letter-spacing: 3px;       /* Un poco más de aire entre letras para elegancia */
        padding: 8px 15px;         /* Botones un poco más grandes */
    }

    .main-nav {
        gap: 30px;                 /* Más separación entre los links en Desktop */
    }
}

