: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 + BASE ==================== */

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Chivo", sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
}

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* =========================================================
   HEADER SOBRE EL VIDEO
========================================================= */

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    padding-top: 10px;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-box {
    width: 120px;
    filter: drop-shadow(0 0 6px rgba(0,0,0,0.4));
}

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

/* NAV */

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    text-shadow: 0 0 6px rgba(0,0,0,0.4);
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ffffff;
    opacity: 0.7;
    transition: width .2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* RESPONSIVE HEADER */

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 20px;
    }
    .main-nav {
        flex-wrap: wrap;
        row-gap: 10px;
    }
}

/* =========================================================
   HERO FULLSCREEN (FULL WIDTH + FULL HEIGHT)
========================================================= */

.hero--fullscreen {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: 100% !important;
    margin: 0;
    padding: 0;
    transform: translateX(-50%);
    left: 50%;
    overflow: hidden;
    background: #000;
}

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

/* Vídeos ocupan toda la pantalla */

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

.video-mobile { display: block; }
.video-desktop { display: none; }

@media (min-width: 1024px) {
    .video-mobile { display: none !important; }
    .video-desktop { display: block !important; }
}

/* TEXTO HERO CON FADE-IN */

.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 .9s ease-out .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); }
}

/* RESPONSIVE HERO TEXT */

@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; }
}

/* =========================================================
   SCROLL INDICATOR
========================================================= */

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: 32px;
    height: 48px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.7);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 6px;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity .2s ease;
}

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

.scroll-indicator__arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #ffffff;
    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;
    }
}

/* =========================================================
   MAIN BUTTONS
========================================================= */

.primary-actions {
    max-width: 1100px;
    margin: 24px auto 60px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 26px;
    background: var(--button-bg);
    color: var(--button-text);
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

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

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

/* =========================================================
   SECCIONES GENERALES
========================================================= */

.section {
    max-width: 1100px;
    margin: 0 auto 80px;
}

.section--alt {
    background: var(--bg-section-alt);
    border-radius: 32px;
    padding: 40px 36px 60px;
}

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

.section-kicker {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-headline {
    font-weight: 100;
    font-size: 44px;
    margin: 0 0 16px;
}

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

/* =========================================================
   PORTFOLIO
========================================================= */

.portfolio-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.media-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 850/526;
}

/* Carrusel fade */

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

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

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

/* FULL BLEED EN MÓVIL */

@media (max-width: 600px) {
    .portfolio-section .media-box {
        width: 100vw;
        margin-left: 50%;
        transform: translateX(-50%);
        border-radius: 0;
    }
}

/* =========================================================
   STUDIO
========================================================= */

.studio-section {
    max-width: 620px;
}

.studio-section h2 {
    font-weight: 100;
    font-size: 50px;
}

.studio-section p {
    font-style: italic;
    font-weight: 300;
    font-size: 22px;
    line-height: 1.25;
}

.studio-section strong.ib {
    font-weight: 700;
}

/* =========================================================
   CONTACTO
========================================================= */

.contact-section {
    max-width: 620px;
}

.contact-label {
    font-size: 13px;
    margin-top: 16px;
}

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

.credits {
    font-size: 13px;
    color: var(--text-muted);
}

/* =========================================================
   COOKIE BANNER
========================================================= */

.cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #111;
    color: #CCC;
    padding: 26px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
}

.cookie-banner p {
    margin: 0;
    max-width: 55%;
}

.cookie-banner .btn {
    padding: 10px 20px;
    font-size: 12px;
}

/* =========================================================
   RESPONSIVE GENERAL
========================================================= */

@media (max-width: 600px) {

    .page-wrapper { padding: 0 16px 60px; }

    .studio-section h2 { font-size: 40px; }

    .studio-section p { font-size: 20px; }

    .section-headline { font-size: 34px; }

    .section-intro-text { font-size: 18px; }

    .contact-email { font-size: 24px; }
}