/* ============================================================
   VARIABLES & RESET
   ============================================================ */
@font-face {
    font-family: 'Pally';
    src: url('fonts/Pally-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pally';
    src: url('fonts/Pally-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pally';
    src: url('fonts/Pally-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-yellow: #FCBD20;
    --bg-blue: #011627;
    --bg-card: #EFEFEF;
    --bg-inner-card: #FFFFFF;
    --bg-grey-video: #D9D9D9;
    --color-orange: #E9531D;
    --text-dark: #1E1E1E;
    --text-white: #FFFFFF;
    --font-main: 'Inter', sans-serif;
    --border: 1.5px solid #011627;
    --header-h: 69px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-yellow);
    color: var(--text-dark);
}

.card-container[id] {
    scroll-margin-top: var(--header-h);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    background-color: var(--bg-yellow);
    border-bottom: var(--border);
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    /* Let header-h control the vertical centering */
}

.logo-chapitas-img {
    height: 32px;
    width: auto;
}

.logo-header {
    font-family: 'Pally', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 0.95;
    color: #0D1727;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo-header .logo-main {
    font-size: 21px;
    font-weight: 950;
    display: block;
}

.badge-metal {
    background: linear-gradient(90.69deg, #FFFFFF 0.15%, #CCCCCC 33.15%, #FFFFFF 66.15%, #999999 100.15%);
    border: 1px solid #1E1E1E;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 105px;
    height: 33px;
    padding: 0;
    font-family: 'acumin-variable', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 8.5px;
    line-height: 1.1;
    text-align: center;
    color: #1E1E1E;
}

.badge-sep-desktop {
    display: none;
    /* Hidden on mobile */
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* Desktop nav hidden on mobile */
.desktop-nav {
    display: none;
}

/* Dropdown para móvil cuando está activo */
.desktop-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-yellow);
    border-bottom: var(--border);
    z-index: 50;
    padding: 0;
}

.desktop-nav.active a {
    padding: 16px 24px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 700;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.desktop-nav.active a.active {
    font-weight: 900;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
    background-color: var(--bg-blue);
    padding: 24px 16px;
    text-align: center;
    color: var(--text-white);
    border-bottom: var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-title {
    font-family: 'Pally', sans-serif;
    font-size: 40px;
    line-height: 44px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: linear-gradient(90.69deg, #FFFFFF 0.15%, #CCCCCC 33.15%, #FFFFFF 66.15%, #999999 100.15%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    max-width: 343px;
}

.hero-text {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.01em;
    max-width: 100%;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   YELLOW SECTION WRAPPER
   ============================================================ */
.yellow-wrapper {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* ============================================================
   CARD CONTAINER
   ============================================================ */
.card-container {
    background-color: var(--bg-card);
    border-radius: 32px;
    padding: 32px 16px 16px 16px;
    width: 100%;
    max-width: 480px;
    border: var(--border);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ============================================================
   MEDALLA QR LOGO
   ============================================================ */
.logo-qr-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
}

.colgante-title-temp {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 50px;
    line-height: 72px;
    font-style: italic;
    text-align: center;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -1px;
}

.medalla-text {
    font-size: 40px;
    font-weight: 900;
    color: var(--bg-blue);
    letter-spacing: -1.5px;
}

.qr-icon {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-orange {
    color: var(--color-orange);
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -3px;
    z-index: 2;
    font-style: italic;
}

.qr-brackets {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.bracket-tl,
.bracket-tr,
.bracket-bl,
.bracket-br {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 4px solid var(--bg-blue);
}

.bracket-tl {
    top: 2px;
    left: 2px;
    border-right: none;
    border-bottom: none;
}

.bracket-tr {
    top: 2px;
    right: 2px;
    border-left: none;
    border-bottom: none;
}

.bracket-bl {
    bottom: 2px;
    left: 2px;
    border-right: none;
    border-top: none;
}

.bracket-br {
    bottom: 2px;
    right: 2px;
    border-left: none;
    border-top: none;
}

/* ============================================================
   PRODUCT SHOWCASE (inner white card)
   ============================================================ */
.product-showcase-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
    background-color: var(--bg-inner-card);
    border-radius: 16px 16px 0 0;
    padding: 5px 5px;
}

.product-showcase {
    background-color: transparent;
    border-radius: 0;
    padding: 32px 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.product-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 24px;
}

.slider-control {
    background-color: var(--bg-card);
    border-radius: 0 0 8px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 16px;
    min-width: 0;
    min-height: 40px;
}

.slider-arrow {
    background: none;
    border: none;
    font-size: 0;
    color: transparent;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.slider-arrow::before {
    content: '';
    display: block;
    width: 6px;
    height: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Left arrow: thin chevron */
.slider-control .slider-arrow:first-child::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='14' viewBox='0 0 8 14' fill='none'%3E%3Cpath d='M7 1L1 7L7 13' stroke='%23011627' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Right arrow: thin chevron */
.slider-control .slider-arrow:last-child::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='14' viewBox='0 0 8 14' fill='none'%3E%3Cpath d='M1 1L7 7L1 13' stroke='%23011627' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.slider-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.2;
    flex: 1;
}

/* ============================================================
   BENEFITS BOX
   ============================================================ */
.benefits-box {
    background-color: var(--color-orange);
    border-radius: 0 0 14px 14px;
    padding: 16px 12px;
    margin-top: -32px;
    margin-bottom: 0;
    text-align: center;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    color: var(--text-white);
    font-family: 'Pally', sans-serif;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
}

.benefits-list li:last-child {
    margin-bottom: 0;
}

/* ============================================================
   SEPARATOR
   ============================================================ */
.separator {
    border: none;
    border-top: var(--border);
    margin: 0;
    opacity: 0.25;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
    text-align: center;
}

.section-title {
    font-size: 30px;
    font-weight: 900;
    color: var(--bg-blue);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bg-blue);
    margin-bottom: 28px;
    letter-spacing: -0.2px;
}

.video-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.video-card {
    background-color: var(--bg-inner-card);
    border-radius: 16px;
    padding: 18px 16px;
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
    width: 100%;
}

.video-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--bg-blue);
    margin-bottom: 14px;
    text-align: center;
}

.video-img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.video-placeholder {
    background-color: var(--bg-grey-video);
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #ffffff;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
    text-align: center;
}

.faq-accordion {
    text-align: left;
    margin-top: 24px;
    background-color: var(--bg-inner-card);
    border-radius: 16px;
    padding: 4px 20px;
}

.faq-item {
    border-bottom: var(--border);
    opacity: 1;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--bg-blue);
    text-align: left;
    cursor: pointer;
    font-family: var(--font-main);
    gap: 12px;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    font-size: 13px;
    line-height: 1.6;
    font-weight: 400;
    color: var(--bg-blue);
    padding-bottom: 18px;
}

/* ============================================================
   PRODUCT GRID (colgantes / pasantes)
   ============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 0;
    background-color: var(--bg-inner-card);
    border-radius: 16px 16px 0 0;
    padding: 12px;
}

.product-grid-item {
    background-color: transparent;
    border-radius: 0;
    padding: 20px 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.grid-img {
    width: 100%;
    height: 190px;
    object-fit: contain;
    margin-bottom: 12px;
}

.grid-img.pasante-img {
    width: 115%;
    height: auto;
    margin-bottom: 0;
}

.product-grid-item .slider-control {
    padding: 6px 6px;
    width: 100%;
}

.product-grid-item .slider-text {
    font-size: 9px;
    line-height: 1.2;
    text-align: center;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.product-grid-item .slider-arrow {
    width: 12px;
}

/* ============================================================
   DÓNDE COMPRAR — página provisoria
   ============================================================ */
.donde-comprar-main {
    background-color: #011627;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
}

.donde-comprar-proximamente {
    font-family: 'Pally', sans-serif;
    font-weight: 700;
    font-size: 40px;
    color: #FCBD20;
    text-align: center;
    margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background-color: var(--bg-blue);
    padding: 40px 24px 28px;
    text-align: center;
    color: var(--text-white);
}

.footer-inner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Pally', sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 0.95;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #0D1727;
}

.footer-logo .logo-chapitas-img {
    filter: brightness(0) invert(1);
}

.footer-logo .logo-main {
    font-size: 21px;
    font-weight: 950;
    display: block;
}

.footer-copy {
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #d0d0d0;
}

.footer-credits {
    font-size: 11px;
    font-weight: 400;
    color: #888;
    line-height: 1.6;
}

/* ============================================================
   DESKTOP MEDIA QUERY  ≥ 900px
   ============================================================ */
@media (min-width: 900px) {

    /* Header */
    .header {
        padding: 0 40px;
        height: 60px;
    }

    .header-inner {
        padding: 0;
        height: 100%;
        position: relative;
    }

    .logo-header {
        font-size: 15px;
    }

    .logo-header .logo-main {
        font-size: 22px;
    }

    .badge-metal {
        display: inline-flex;
        flex-direction: row;
        width: auto;
        height: auto;
        border-radius: 7px;
        padding: 4px 10px;
        font-family: 'Acumin Variable Concept', sans-serif;
        font-weight: 700;
        font-size: 11px;
        line-height: 1;
        letter-spacing: 0;
        text-align: center;
        white-space: nowrap;
        border: 1px solid #1E1E1E;
    }

    .badge-br-mobile {
        display: none;
    }

    .badge-sep-desktop {
        display: inline;
        margin: 0 3px;
    }

    .menu-btn {
        display: none;
    }

    .desktop-nav,
    .desktop-nav.active {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        background-color: transparent;
        border: none;
        padding: 0;
        align-items: center;
        gap: 28px;
    }

    .desktop-nav a,
    .desktop-nav.active a {
        border-top: none;
        padding: 0;
        font-size: 14px;
    }

    .desktop-nav a {
        text-decoration: none;
        color: var(--text-dark);
        font-size: 12px;
        font-weight: 500;
    }

    .desktop-nav a.active {
        font-weight: 900;
    }

    /* Hero */
    .hero-section {
        padding: 44px 60px;
        gap: 16px;
    }

    .hero-title {
        font-size: 44px;
        letter-spacing: 0.02em;
        line-height: 1;
        max-width: none;
    }

    .hero-title .mobile-br {
        display: none;
    }

    .hero-text {
        font-size: 14px;
        max-width: none;
        white-space: nowrap;
    }

    .hero-text br,
    .hero-text .mobile-br,
    .section-subtitle .mobile-br {
        display: none;
    }

    /* Yellow wrapper becomes a centered column */
    .yellow-wrapper {
        padding: 32px 40px;
        align-items: center;
    }

    /* Cards stretch wider */
    .card-container {
        max-width: 900px;
        padding: 48px 56px;
    }

    .video-row {
        flex-direction: row;
        gap: 20mm;
        align-items: flex-start;
    }

    /* MEDALLA QR logo bigger */
    .medalla-text {
        font-size: 56px;
    }

    .qr-icon {
        width: 88px;
        height: 88px;
    }

    .qr-orange {
        font-size: 48px;
    }

    .bracket-tl,
    .bracket-tr,
    .bracket-bl,
    .bracket-br {
        width: 22px;
        height: 22px;
        border-width: 5px;
    }

    .benefits-list li {
        font-size: 14px;
    }

    /* Product showcases side by side */
    .product-showcase-row {
        flex-direction: row;
        gap: 24px;
        justify-content: center;
    }

    .product-showcase {
        flex: 1;
        max-width: 360px;
    }

    .product-img {
        width: 100%;
        height: auto;
    }

    /* Videos side by side */
    .video-row {
        flex-direction: row;
        gap: 24px;
    }

    .video-card {
        flex: 1;
    }

    .faq-section {
        max-width: 740px;
        margin: 0 auto;
        width: 100%;
    }

    /* Product grid 4 columns */
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .slider-text {
        font-size: 9px;
    }

    .grid-img {
        width: 100%;
        height: 220px;
    }

    .grid-img.pasante-img {
        width: 115%;
        height: auto;
        margin-bottom: 0;
    }

    /* Footer: 3-column layout */
    .footer {
        padding: 36px 60px;
        text-align: left;
    }

    .footer-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .footer-logo {
        margin-bottom: 0;
        text-align: left;
    }

    .footer-copy {
        margin-bottom: 0;
    }

    .footer-credits {
        text-align: right;
    }
}

/* ============================================================
   COLGANTES / PASANTES PAGE STYLES
   ============================================================ */

/* Product Page Unified Wrap */
.product-page-wrap {
    width: 100%;
    border: var(--border);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Product Hero Split */
.product-hero-card {
    background-color: var(--bg-inner-card);
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 32px;
    width: 100%;
    gap: 32px;
}

.product-hero-img {
    width: 280px;
    height: 280px;
    max-width: 100%;
    object-fit: cover;
}

.product-hero-info {
    text-align: left;
}

.product-hero-info h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.product-hero-info p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.product-hero-info ul {
    list-style: disc;
    padding-left: 18px;
}

.product-hero-info ul li {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.8;
}

/* Presentaciones Section */
.presentaciones-section {
    background-color: #1f1f1f;
    border-radius: 0;
    border: none;
    padding: 48px 32px;
    width: 100%;
    text-align: center;
}

.presentaciones-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 8px;
}

.presentaciones-subtitle {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 36px;
}

.presentaciones-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 16px;
    justify-items: center;
}

.presentacion-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.presentacion-item img {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.presentacion-item span {
    font-size: 12px;
    color: #ccc;
    font-weight: 400;
}

/* Desktop overrides for Colgantes */
@media (min-width: 900px) {
    .product-page-wrap {
        border-radius: 28px;
    }

    .product-hero-card {
        flex-direction: row;
        align-items: center;
        padding: 60px 80px;
        gap: 80px;
    }

    .product-hero-img {
        width: 360px;
        height: 360px;
        flex-shrink: 0;
    }

    .product-hero-info h2 {
        font-size: 28px;
    }

    .product-hero-info p,
    .product-hero-info ul li {
        font-size: 15px;
    }

    .presentaciones-section {
        padding: 56px 80px;
    }

    .presentaciones-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 36px 24px;
    }

    .presentacion-item img {
        width: 140px;
        height: 140px;
    }

    .presentacion-item span {
        font-size: 13px;
    }
}


.presentaciones-grid--4 {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 900px) {
    .presentaciones-grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Logo Medalla QR como imagen */
.logo-qr-img {
    height: 60px;
    max-width: 100%;
    object-fit: contain;
}

@media (min-width: 900px) {
    .logo-qr-img {
        height: 80px;
    }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    cursor: default;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
}

.lightbox-close:hover {
    opacity: 1;
}

.product-img,
.grid-img {
    cursor: zoom-in;
}