:root {
    --bg: #fff;
    --text: #1f1f1f;
    --muted: #5f615f;
    --neutral: #f3f5f0;
    --clay: #E7DDD1;
    --brown: #A06D48;
    --turq: #0d6b6e;
    --turq-ink: #0a5254;
    --card: #ffffff;
    --radius: 18px;
    --shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    --ink-3: #a59c9a;
    --ink-2: #91966a;
    --divider: rgba(0, 0, 0, .10);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utility */
.container {
    width: min(1100px, 92vw);
    margin-inline: auto;
    padding-inline: clamp(0.75rem, 1vw, 1rem);
}

.italic {
    font-style: italic;
}

.muted {
    color: var(--muted);
}

.spacer {
    height: 64px;
}

.hero {
    background-color: var(--bg);
}

.hero-inner {
    display: flex;
    height: 100%;
    max-height: 100vh;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;
    margin: 0 0 0.5rem 0;
    color: var(--text);
    letter-spacing: -0.015em;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--muted);
    margin: 0;
    max-width: 60ch;
}

.hero-media {
    position: relative;
    min-height: 280px;
    isolation: isolate;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* Split section */
.split {
    padding: 56px 0 72px;
    background: var(--bg);
    position: relative;
    z-index: 1;
}

.split h2 {
    font-size: clamp(24px, 3.2vw, 36px);
    margin: 0 0 8px;
}

.split p {
    margin: 8px 0;
}

/* Divider */
.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.12), transparent);
    width: 100%;
}

.band {
    background: var(--neutral);
    padding: 72px 0;
}

.band .section-head {
    text-align: center;
    margin-bottom: 28px;
}

.band .section-head h2 {
    font-size: clamp(22px, 3vw, 30px);
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
}

.band .cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media(min-width: 700px) {
    .band .cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

.card h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-family: 'Cormorant Garamond', serif;
}

/* Footer (simple) */
footer {
    background: var(--ink-3);
    color: #fff;
    padding: 36px 0;
    font-size: 14px;
    text-align: center;
}

/* Accessibility focus */
a:focus {
    outline: 3px solid #ffd24d;
    outline-offset: 2px;
}

/* ===== Top bar ===== */
.site-header {
    position: fixed;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    width: 100%;
}

/* --- NAV BAR: GRID, MOBILE CENTERED BRAND --- */
.nav-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 88px;
    position: relative;
}

/* BRAND LINK (now just a logo image) */
.brand {
    grid-column: 1;
    justify-self: start;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

/* Logo image */
.brand-logo {
    width: 190px;
    height: auto;
    object-fit: contain;
    margin-left: -10px;
}

/* Hamburger on the right (mobile) */
.hamburger-plain {
    grid-column: 3;
    justify-self: end;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: grid;
    gap: 5px;
}

.hamburger-plain span {
    display: block;
    height: 2px;
    width: 24px;
    background: #756874;
    border-radius: 2px;
}

/* Hide desktop links on mobile */
.top-links {
    display: none;
}

/* --- DESKTOP: BRAND LEFT, LINKS RIGHT, NO HAMBURGER --- */
@media (min-width: 901px) {
    .nav-bar {
        grid-template-columns: auto 1fr;
    }

    .brand {
        grid-column: 1;
        justify-self: start;
    }

    .brand-logo {
        width: 210px;
    }

    .top-links {
        display: flex;
        grid-column: 2;
        justify-self: end;
        gap: 18px;
    }

    .hamburger-plain {
        display: none;
    }
}

/* Desktop links */
.top-links {
    justify-self: end;
    display: flex;
    justify-content: space-evenly;
}

.top-links a {
    text-decoration: none;
    color: #1f1f1f;
    padding: 8px 5px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.top-links a:hover {
    background: none;
}

.top-links a {
    position: relative;
    text-decoration: none;
    color: inherit;
    padding-bottom: 2px;
    transition: color 0.25s ease;
}

.top-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 0.2px;
    background-color: currentColor;
    transition: width 0.25s ease;
}

.top-links a:hover::after,
.top-links a:focus::after,
.top-links a.is-active::after {
    width: 100%;
}

/* Show desktop links vs hamburger */
@media (max-width: 900px) {
    .top-links {
        display: none;
    }

    .hamburger-plain {
        justify-self: end;
    }
}

@media (min-width: 901px) {
    .hamburger-plain {
        display: none;
    }
}

/* Hide video + overlay by default */
.hero-video,
.hero-text {
    display: none;
}

/* ===== MOBILE VIEW (≤768px) ===== */
@media (max-width: 768px) {

    .hero-text {
        display: none;
        position: absolute;
        inset: 0;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: white;
        padding: 0;
        font-family: 'Questrial', sans-serif;
        z-index: 2;
        font-style: italic;
        text-transform: lowercase;
    }

    .hero-text h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
        font-weight: 400;
        letter-spacing: 0.02em;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
        margin: 0;
        padding: 0 5vw;
    }

    .hero-image {
        display: none;
    }
}

/* Mobile dropdown */
.mobile-menu {
    position: absolute;
    top: 96px;
    right: 0;
    width: min(62vw, 445px);
    background: #fff;
    box-shadow: none;
    padding: 0;

    display: block;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
    z-index: 1001;

    font-family: "Jost", sans-serif;
    text-transform: none;
    letter-spacing: 0;
}

.mobile-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-menu a {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 20px 54px;

    color: var(--ink-3);
    text-decoration: none;
    border-bottom: 1px solid var(--divider);
    border-radius: 0;
    background: #fff;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu .menu-title {
    font-size: 1.1rem;
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.mobile-menu .menu-subtitle {
    margin-top: 4px;
    font-family: "Cormorant Garamond", serif;
    font-size: 0.9rem;
    line-height: 1.1;
    font-style: italic;
    letter-spacing: .01em;
    text-transform: none;
    color: #393334;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
    background: rgba(0, 0, 0, .035);
    outline: none;
}

.mobile-menu a.is-active {
    background: var(--ink-3);
}

.mobile-menu a.is-active .menu-title,
.mobile-menu a.is-active .menu-subtitle {
    color: #fff;
}

/* Desktop: hide mobile dropdown */
@media (min-width: 901px) {
    .mobile-menu {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu {
        transition: none;
    }
}

/* =========================================
   CONTENT PAGES
   ========================================= */

body.content-page {
    background-color: var(--bg, #faf7f4);
}

body.content-page .hero {
    width: 100%;
    min-height: 40vh;
    max-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

body.content-page .hero-inner {
    width: 100%;
    height: 100%;
}

body.content-page .hero-media {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 0;
}

body.content-page .hero-video,
body.content-page .hero-image {
    width: 100%;
    object-fit: cover;
    object-position: center top;
}

body.content-page .hero-text {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.75rem 2rem;
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(6px);
    text-align: center;
    position: relative;
    z-index: 2;
}

body.content-page .hero-text h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

body.content-page .hero-text p {
    font-size: 1.05rem;
    margin: 0;
    color: #444;
}

body.content-page .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

body.content-page main {
    padding: 2rem 0 3rem;
    scroll-behavior: smooth;
}

body.content-page .page-section-main {
    padding: 4rem 0 3.5rem;
}

body.content-page .page-section-main .container {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

body.content-page .page-section-main h2,
body.content-page .page-section-main h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

body.content-page .page-section-main p+p {
    margin-top: 1rem;
}

body.content-page .divider {
    height: 2px;
    width: 80%;
    margin: 2.5rem auto 3.5rem;
    border: none;
    background: linear-gradient(to right,
            transparent,
            color-mix(in srgb, var(--bg, #faf7f4) 70%, #000 30%),
            transparent);
    opacity: 0.7;
}

body.content-page p {
    text-wrap: pretty;
}

/* Horizontal video: fill width, cropped vertically, max ~60vh */
.hero-video-horizontal {
    display: none;
    width: 100vw;
    height: 60vh;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Vertical video remains default for mobile */
.hero-video-vertical {
    display: block;
    width: 100vw;
    height: 68svh;
    object-fit: cover;
    object-position: center;
}

/* Desktop: show horizontal video instead */
@media (min-width: 768px) {
    .hero-video-vertical {
        display: none;
    }

    .hero-video-horizontal {
        display: block;
    }

    .hero {
        position: relative;
        width: 100vw;
        height: 60vh;
        overflow: hidden;
    }

    .hero-inner,
    .hero-media {
        width: 100%;
        height: 100%;
    }

    .hero-text {
        position: relative;
        z-index: 2;
        max-width: 800px;
        margin: 0 auto;
        padding: 2rem;
        text-align: center;
        color: #fff;
    }
}

/* -------------------------------------------
   "Ver más" / "Explorar" links on index cards
   ------------------------------------------- */
.cards a {
    display: inline-block;
    margin-top: 0.5rem;
    font-family: "Jost", sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--ink-3);
    text-decoration: none;
    position: relative;
    transition: color 0.25s ease, transform 0.25s ease;
}

.cards a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 1.5px;
    background-color: currentColor;
    transition: width 0.25s ease;
}

.cards a:hover,
.cards a:focus {
    transform: translateX(2px);
}

.cards a:hover::after,
.cards a:focus::after {
    width: 100%;
}

.cards a::before {
    content: "› ";
    color: currentColor;
    font-weight: 400;
    opacity: 0.8;
}

.cards p:last-child {
    margin-bottom: 0;
}

#enfoque {
    margin-top: -2px;
}

/* ================================
   HERO ESPECIAL PARA SOBRE-MÍ
   ================================ */

body.sobre-mi-page .hero::after {
    content: none;
}

body.sobre-mi-page .hero {
    padding: 0;
    min-height: auto;
    max-height: none;
    height: auto;
    background-color: var(--neutral, #faf7f4);
}

@media (max-width: 768px) {
    body.sobre-mi-page .hero-image-only {
        width: 100vw;
        height: auto;
        overflow: hidden;
    }

    body.sobre-mi-page .hero-photo {
        width: 100vw;
        height: auto;
        display: block;
        object-fit: cover;
        object-position: center;
    }
}

body.sobre-mi-page .hero-image-only {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    background-color: var(--neutral, #faf7f4);
    position: relative;
    margin-top: 76px;
    padding: 40px 0;
}

body.sobre-mi-page .hero-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.sobre-mi-page .hero-photo {
    width: 60vw;
    height: 60vw;
    max-width: 450px;
    max-height: 450px;
    border-radius: 999px;
    object-fit: cover;
    object-position: center bottom;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    display: block;
}

@media (max-width: 600px) {
    body.sobre-mi-page .hero-photo {
        width: 80vw;
        height: 80vw;
    }
}

/* ===== CONTACT PAGE ===== */

.contacto-page .page-section-main {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.contacto-page h2 {
    margin-bottom: 1.5rem;
}

.contact-block {
    margin-top: 2.5rem;
    padding: 1.8rem 2rem;
    background: #faf7f2;
    border-radius: 10px;
    max-width: 420px;
    line-height: 1.6;
}

.contact-block h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.contact-block a {
    color: #4e5a7a;
    text-decoration: none;
    font-weight: 500;
}

.contact-block a:hover,
.contact-block a:focus {
    text-decoration: underline;
}

.contact-block .muted {
    margin-top: 1.2rem;
    font-size: 0.9rem;
    color: #6a6a6a;
}

@media (max-width: 700px) {
    .contact-block {
        padding: 1.5rem;
        margin-top: 2rem;
    }
}

/* ===========================================
   HERO FOTO SOLO
   =========================================== */

body.content-page .hero.hero-photo-only {
    position: relative;
    width: 100vw;
    height: 60vh;
    max-height: 60vh;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: var(--neutral, #faf7f4);
}

body.content-page .hero.hero-photo-only::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

body.content-page .hero-inner,
body.content-page .hero-media {
    width: 100%;
    height: 100%;
    position: relative;
}

body.content-page .hero-photo-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
}

body.content-page .hero.hero-photo-only .hero-text {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    padding: 1.75rem 2rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(6px);
    text-align: center;
}

@media (max-width: 768px) {
    body.content-page .hero.hero-photo-only {
        display: block;
        margin-top: 89px;
    }

    body.content-page .hero-photo-visual {
        object-position: center;
    }

    body.content-page .page-section-main {
        padding: 0.5rem 0 3.5rem;
    }

    body.content-page .page-section-main:has(#contacto-title) {
        padding: 5rem 0 3.5rem;
    }
}

.hero-quote {
    width: 100vw;
    padding: 2.5rem 0;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.hero-quote-text {
    margin: 0;
    font-size: 18px;
    font-family: 'Cormorant Garamond';
    line-height: 1.7;
}

.hero-quote-author {
    margin-top: 0.5rem;
    font-size: 18px;
    text-align: right;
    padding-right: 12%;
    color: var(--muted);
    font-family: 'Cormorant Garamond';
    align-self: flex-end;
    margin-right: 50px;
    font-style: italic;
}

@media (max-width: 768px) {
    body.content-page.danza-page .hero-photo-visual {
        object-position: top center;
        margin-top: 80px;
    }
}

.page-section-main .section-subtitle {
    margin-top: -28px;
    font-style: italic;
}

.prose p {
    margin-bottom: 1rem;
}

/* ── Gallery ──────────────────────────────────────────── */

.gallery-header { text-align: center; padding: 4rem 0 2.5rem; }

.gallery-kicker {
    font-family: 'Jost', sans-serif;
    letter-spacing: .18em;
    font-size: .75rem;
    color: var(--muted);
    margin-bottom: .75rem;
}

.gallery-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    letter-spacing: .12em;
    color: var(--turq-ink);
    margin: 0 0 1rem;
}

.gallery-desc {
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
    white-space: nowrap;
}

.gallery-section { padding: 2rem 0 3rem; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    max-width: min(1100px, 96vw);
    margin: 0 auto;
}


.gallery-item {
    aspect-ratio: 1 / 1;
    background: #c8ccc8;
    border: none;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.gallery-item:hover img,
.gallery-item:focus img { transform: scale(1.04); }

.gallery-item:focus-visible { outline: 2px solid var(--turq); outline-offset: 2px; }

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: .25rem .5rem;
    opacity: .8;
    transition: opacity .15s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .45);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .85;
    transition: opacity .15s, background .15s;
    user-select: none;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; background: rgba(0, 0, 0, .65); }

@media (hover: none) {
    .lightbox-prev,
    .lightbox-next { opacity: 0; pointer-events: none; }

    .lightbox.controls-visible .lightbox-prev,
    .lightbox.controls-visible .lightbox-next { opacity: .85; pointer-events: auto; }
}
