/* =========================================================
   A&M Universe · Diseño con propósito
   Paleta tierra: modo claro (marfil/beige) · modo oscuro (espresso) · esquinas cuadradas
   ========================================================= */

/* ---------- Tokens de tema ---------- */
:root,
[data-theme="light"] {
    --bg:        #F6F2EA;   /* marfil suave (más claro) */
    --bg-alt:    #EDE6D5;   /* beige suave (bandas de sección) */
    --surface:   #FCFAF4;   /* crema clara (tarjetas) */
    --text:      #2E251C;
    --text-soft: #75664F;
    --accent:    #8A6432;   /* bronce/tierra (AA sobre crema) */
    --accent-ink:#FFFFFF;
    --green:     #5E6A3C;   /* olivo (acento tierra) */
    --green-soft:#EBE1CE;   /* beige suave (medios) */
    --olive:      #5A6537;  /* olivo (topbar y botón WhatsApp) — oscurecido para
                               que el texto crema pase el contraste AA */
    --olive-ink:  #F5F0E4;
    --olive-strong:#5A6537;
    --on-alt:     #F4EFE3;  /* texto claro sobre bandas olivo */
    --on-alt-soft:rgba(244, 239, 227, .74);
    --line:      rgba(46, 37, 28, .13);
    --radius:    0px;       /* tarjetas/medios/paneles (cuadrado) */
    --radius-sm: 0px;       /* botones/píldoras/controles */
    --shadow:    0 18px 40px -24px rgba(46, 37, 28, .35);
    --shadow-sm: 0 6px 20px -12px rgba(46, 37, 28, .30);
}

[data-theme="dark"] {
    --bg:        #0D0D0D;   /* negro (fondo) */
    --bg-alt:    #151515;   /* banda oscura sutil */
    --surface:   #191919;   /* negro elevado (tarjetas) */
    --text:      #ECE3D1;   /* crema */
    --text-soft: #A99C86;
    --accent:    #CBA968;   /* oro */
    --accent-ink:#0D0D0D;
    --green:     #B9C08A;   /* olivo claro */
    --green-soft:#161616;
    --olive:      #77844A;
    --on-alt:     #14120B;  /* en oscuro el olivo aclara: el texto debe oscurecer */
    --olive-ink:  #14120B;
    --olive-strong:#68743F;
    --line:      rgba(236, 227, 209, .13);
    --shadow:    0 22px 50px -26px rgba(0, 0, 0, .7);
    --shadow-sm: 0 8px 24px -14px rgba(0, 0, 0, .6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Solo lectores de pantalla (accesibilidad) */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Íconos de línea en café (contacto/footer) */
.ci {
    width: 15px; height: 15px;
    color: var(--accent);
    flex-shrink: 0;
    vertical-align: -2px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 17px;
    overflow-x: hidden;
    transition: background .4s ease, color .4s ease;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: var(--accent-ink); }

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: .96rem;
    line-height: 1;
    padding: 15px 26px;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
    /* Los rótulos de 6 botones salen del panel: si no pueden partirse, un texto
       largo se corta a media palabra y estira la columna de la grilla. */
    white-space: normal;
    text-align: center;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-whatsapp {
    background: var(--olive);
    color: var(--olive-ink);
    box-shadow: 0 10px 26px -14px rgba(46, 37, 28, .5);
}
.btn-whatsapp:hover { background: var(--olive-strong); transform: translateY(-2px); }

.btn-lg { padding: 18px 34px; font-size: 1.06rem; }

/* ---------- Topbar (tira olivo · acento) ---------- */
.topbar {
    background: var(--olive);
    color: var(--on-alt);
    text-align: center;
    font-size: .82rem;
    padding: 8px 16px;
    letter-spacing: .01em;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg); /* respaldo para navegadores sin color-mix */
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(150%) blur(14px);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
/* El menú móvil es position:fixed y queda contenido por el header (backdrop-filter);
   recortamos solo en X para que su estado cerrado no genere scroll horizontal, sin cortar su alto. */
.site-header { overflow-x: clip; }

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;         /* logo | menú centrado | acciones */
    align-items: center;
    gap: 20px;
    padding-top: 14px;
    padding-bottom: 14px;
    max-width: none;                             /* header a lo ancho de la página */
    padding-left: clamp(16px, 2.6vw, 40px);      /* logo pegado a la izquierda */
    padding-right: clamp(16px, 2.6vw, 40px);     /* "Escríbenos" pegado a la derecha */
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--accent);
    flex-shrink: 0;
    justify-self: start;                         /* extremo izquierdo */
}
.brand-mark { width: 40px; height: 40px; display: block; color: var(--accent); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
    font-size: 1.32rem;
    color: var(--text);
    letter-spacing: .02em;
}
.brand-sub {
    font-size: .58rem;
    letter-spacing: .42em;
    color: var(--text-soft);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    margin-top: 2px;
    padding-left: 2px;
}

/* Logo real (imagen), conmutado por tema */
.brand-logo { height: 54px; width: auto; display: block; }
.brand-logo-dark { display: none; }
[data-theme="dark"] .brand-logo-light { display: none; }
[data-theme="dark"] .brand-logo-dark { display: block; }

.footer-logo { height: 48px; margin-bottom: 14px; }
@media (max-width: 680px) { .brand-logo { height: 44px; } }

.main-nav {
    display: flex;
    gap: 32px;                                   /* más aire entre secciones */
    justify-self: center;                        /* centrado real en la página */
}
.main-nav a {
    font-size: 1.02rem;                          /* letras un poco más grandes */
    font-weight: 500;
    letter-spacing: .05em;                       /* letras más separadas */
    color: var(--text-soft);
    position: relative;
    padding: 4px 0;
    transition: color .2s ease;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 1.5px;
    background: var(--accent);
    transition: width .25s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { width: 100%; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;                           /* extremo derecho */
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    flex-shrink: 0;                 /* nunca se deforma en óvalo cuando el espacio aprieta */
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-label { font-size: .8rem; font-weight: 700; letter-spacing: .04em; }

/* icono tema */
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.header-wa { padding: 11px 18px; font-size: .9rem; }

.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: clamp(70px, 12vw, 150px) 0 clamp(60px, 9vw, 110px);
    background:
        radial-gradient(120% 90% at 80% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
        radial-gradient(90% 80% at 0% 10%, var(--green-soft), transparent 55%),
        var(--bg);
    overflow: hidden;
}
.hero-inner { position: relative; max-width: 830px; }
.eyebrow {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: .24em;
    font-size: .72rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 22px;
}
.hero-title {
    font-size: clamp(2.9rem, 8vw, 5.7rem);
    letter-spacing: -.025em;
    margin-bottom: 24px;
}
.hero-sub {
    font-size: clamp(1.06rem, 2.3vw, 1.32rem);
    color: var(--text-soft);
    max-width: 620px;
    margin-bottom: 38px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Franja de valores ---------- */
.values {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding-top: 40px;
    padding-bottom: 40px;
}
.value { text-align: center; padding: 8px 18px; position: relative; }
.value + .value::before {
    content: "";
    position: absolute;
    left: 0; top: 15%;
    height: 70%; width: 1px;
    background: var(--line);
}
.value-ico { display: block; margin-bottom: 12px; color: var(--accent); line-height: 0; }
.value-ico svg { display: inline-block; vertical-align: middle; }
.value h3 { font-size: 1.06rem; margin-bottom: 4px; }
.value p { font-size: .88rem; color: var(--text-soft); line-height: 1.5; }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
section[id] { scroll-margin-top: 84px; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-title {
    font-size: clamp(1.9rem, 4.5vw, 3.1rem);
    margin: 12px 0 18px;
}
.section-lead { font-size: 1.1rem; color: var(--text-soft); }

/* ---------- Grids de tarjetas ---------- */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.card-purpose {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card-purpose:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card-ico { font-size: 2rem; display: block; margin-bottom: 16px; }
.card-purpose h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card-purpose p { font-size: .95rem; color: var(--text-soft); }

/* ---------- Colecciones ---------- */
.collection-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}
.collection-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.collection-art {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: var(--green-soft);
}
.collection-art .art-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.collection-card:hover .art-svg { transform: scale(1.04); transition: transform .6s ease; }
.collection-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.collection-body h3 { font-size: 1.5rem; margin: 12px 0 10px; }
.collection-body p { font-size: .95rem; color: var(--text-soft); margin-bottom: 18px; }

.tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    background: var(--green-soft);
    color: var(--text-soft);
    border: 1px solid var(--line);
}
.tag-live {
    background: color-mix(in srgb, var(--olive) 20%, transparent);
    color: color-mix(in srgb, var(--olive) 72%, var(--text));
    border-color: color-mix(in srgb, var(--olive) 42%, transparent);
}
[data-theme="dark"] .tag-live { color: #C7D19A; }

.link-arrow {
    margin-top: auto;
    font-weight: 600;
    font-size: .92rem;
    color: var(--accent);
    transition: gap .2s ease, opacity .2s ease;
}
.link-arrow:hover { opacity: .75; }

/* ---------- Productos ---------- */
.product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 28px;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-ico {
    width: 84px; height: 84px;
    display: grid; place-items: center;
    font-size: 2.4rem;
    border-radius: 50%;
    background: var(--green-soft);
    margin-bottom: 18px;
}
.product-card h3 { font-size: 1.32rem; margin: 14px 0 10px; }
.product-card p { font-size: .95rem; color: var(--text-soft); }

/* ---------- Impacto ---------- */
.impact { background: var(--bg); }
.impact-inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 56px;
    align-items: center;
}
.impact-copy { min-width: 0; } /* un rótulo largo del panel no debe estirar la columna */
.impact-copy .btn { margin-top: 26px; }

/* ---------- Contador de impacto en vivo (perrito comiendo) ---------- */
.impact-tracker {
    margin-top: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 22px 22px;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 168px 1fr;
    gap: 10px 20px;
    align-items: center;
}
.it-scene { align-self: center; }
.it-svg { width: 100%; height: auto; display: block; overflow: visible; }

/* colores del perrito y el tazón */
.it-shadow { fill: rgba(0,0,0,.10); }
.dog-fur   { fill: #C69B63; }
.dog-ear   { fill: #A97F4B; }
.dog-muzzle{ fill: #E7D3AE; }
.dog-eye   { fill: #3B2A18; }
.dog-eye-hl{ fill: #fff; }
.dog-nose  { fill: #3B2A18; }
.dog-mouth { fill: #7A4A2B; }
.dog-tongue{ fill: #E98B7E; }
.bowl      { fill: #E0614C; }
.bowl-rim  { fill: #C6493A; }
.bowl-inside { fill: #7C2A22; }
.food      { fill: #6E4A2A; }
.food-bit  { fill: #8C5E38; }
.kibble    { fill: #6E4A2A; opacity: 0; }
[data-theme="dark"] .it-shadow { fill: rgba(0,0,0,.28); }

/* mandíbula (mastica) y cabeza (bob) */
.food-level { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .9s cubic-bezier(.22,1,.36,1); }
#dog-head, #dog-jaw, #dog-tail, #dog-eyes { transform-box: fill-box; }
#dog-tail { transform-origin: 100% 100%; animation: tailWag 1.1s ease-in-out infinite; }
#dog-eyes { transform-origin: 50% 50%; animation: dogBlink 5s ease-in-out infinite; }

/* al comer: cabeza baja y mastica */
.impact-tracker.is-eating #dog-head { transform-origin: 50% 100%; animation: dogChew 0.7s ease-in-out infinite; }
.impact-tracker.is-eating #dog-jaw  { transform-origin: 50% 0%;   animation: dogJaw  0.7s ease-in-out infinite; }
.impact-tracker.is-eating #dog-tail { animation: tailWag 0.5s ease-in-out infinite; }
.impact-tracker.is-eating .kibble   { animation: kibbleDrop 0.7s ease-in infinite; }
.impact-tracker.is-eating .kibble.k2 { animation-delay: .35s; }

@keyframes dogChew { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(4px) rotate(1.5deg); } }
@keyframes dogJaw  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes tailWag { 0%,100% { transform: rotate(-20deg); } 50% { transform: rotate(16deg); } }
@keyframes dogBlink { 0%,92%,100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes kibbleDrop { 0% { transform: translateY(-16px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    #dog-tail, #dog-eyes,
    .impact-tracker.is-eating #dog-head,
    .impact-tracker.is-eating #dog-jaw,
    .impact-tracker.is-eating .kibble { animation: none; }
}

/* datos */
.it-data { min-width: 0; }
.ic-live {
    display: inline-block; font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em; color: var(--text-soft); margin-bottom: 12px;
}
.it-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 14px; }
.ic-stat { display: flex; flex-direction: column; }
.ic-num {
    font-family: 'Fraunces', serif; font-size: clamp(1.7rem, 4.4vw, 2.4rem);
    font-weight: 600; line-height: 1.05; color: var(--accent);
}
.ic-label { font-size: .84rem; color: var(--text-soft); margin-top: 4px; max-width: 16ch; }
.it-bar {
    height: 12px; border-radius: var(--radius-sm); background: var(--green-soft);
    overflow: hidden; border: 1px solid var(--line);
}
.it-bar span {
    display: block; height: 100%; width: 0%; border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #E98B7E));
    transition: width .9s cubic-bezier(.22,1,.36,1);
}
.it-goal { font-size: .84rem; color: var(--text-soft); margin-top: 9px; }
.it-goal strong { color: var(--text); }

@media (max-width: 560px) {
    .impact-tracker { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .it-scene { max-width: 190px; }
    .it-stats { justify-content: center; }
    .ic-label { max-width: none; }
    .it-progress { width: 100%; }
}
.impact-quote {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 34px 32px;
    box-shadow: var(--shadow-sm);
}
.impact-quote p {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1.34rem;
    line-height: 1.45;
    margin-bottom: 16px;
}
.impact-quote cite { font-style: normal; color: var(--accent); font-weight: 600; font-size: .92rem; }

/* ---------- Nuestra causa / galería de animalitos ---------- */
.rescue { background: var(--surface); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    background: var(--green-soft);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-note { text-align: center; margin-top: 24px; font-size: .86rem; color: var(--text-soft); }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; gap: 14px; } }

/* ---------- Pasos / Envíos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step {
    padding: 32px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    position: relative;
}
.step-num {
    display: grid; place-items: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 18px;
}
.step h3 { font-size: 1.22rem; margin-bottom: 8px; }
.step p { font-size: .95rem; color: var(--text-soft); }

/* ---------- Contacto ---------- */
.contact {
    background:
        radial-gradient(90% 120% at 50% 0%, var(--green-soft), transparent 60%),
        var(--bg);
    text-align: center;
}
.contact-inner { max-width: 680px; margin: 0 auto; }
.contact-title { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 16px; }
.contact-lead { font-size: 1.14rem; color: var(--text-soft); margin-bottom: 34px; }
.contact-email { margin-top: 22px; font-size: .95rem; color: var(--text-soft); }
.contact-email a { color: var(--accent); font-weight: 600; text-decoration: none; }
.contact-email a:hover { text-decoration: underline; }
.contact-loc { margin-top: 10px; font-size: .92rem; color: var(--text-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); }
.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    padding-top: 56px;
    padding-bottom: 40px;
}
.footer-brand { max-width: 340px; }
.footer-brand .brand-word { margin-bottom: 14px; }
.footer-brand .brand-name { color: var(--text); }
.footer-brand p { color: var(--text-soft); font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px 26px; align-content: flex-start; }
.footer-nav a { color: var(--text-soft); font-size: .95rem; font-weight: 500; transition: color .2s ease; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom span { font-size: .84rem; color: var(--text-soft); }

/* ---------- Vistas (una sola página) ---------- */
html[data-page="tienda"]     main section[data-view]:not([data-view="tienda"]),
html[data-page="felina"]     main section[data-view]:not([data-view="felina"]),
html[data-page="esenciales"] main section[data-view]:not([data-view="esenciales"]),
html[data-page="oceano"]     main section[data-view]:not([data-view="oceano"]),
html[data-page="proposito"]  main section[data-view]:not([data-view="proposito"]),
html[data-page="impacto"]    main section[data-view]:not([data-view="impacto"]),
html[data-page="faq"]        main section[data-view]:not([data-view="faq"]),
html[data-page="contacto"]   main section[data-view]:not([data-view="contacto"]) { display: none !important; }

.main-nav a.is-current { color: var(--text); }
.main-nav a.is-current::after { width: 100%; }

/* ---------- Footer compacto (banda clara · borde olivo) ---------- */
.site-footer { border-top: 3px solid var(--olive); }
.footer-inner { padding-top: 22px; padding-bottom: 18px; gap: 24px; align-items: flex-start; }
.footer-logo { height: 32px; margin-bottom: 8px; }
.footer-brand { max-width: 320px; }
.footer-brand p { font-size: .86rem; color: var(--text-soft); }
.footer-contact { display: flex; flex-direction: column; gap: 7px; font-size: .9rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); }
.footer-social { display: flex; gap: 9px; margin-top: 6px; }
.footer-social a { width: 34px; height: 34px; justify-content: center; gap: 0; border: 1px solid var(--line); border-radius: 50%; transition: color .2s, border-color .2s; }
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-contact a:hover { color: var(--accent); }
.footer-contact span { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: .86rem; }
.footer-bottom { padding: 12px 0; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
    position: fixed;
    right: 22px; bottom: 22px;
    z-index: 90;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--olive);
    color: var(--olive-ink);
    box-shadow: 0 14px 30px -12px rgba(46, 37, 28, .55);
    transition: transform .25s ease, box-shadow .25s ease;
    animation: waPulse 2.6s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes waPulse {
    0%, 100% { box-shadow: 0 14px 30px -10px rgba(37,211,102,.7), 0 0 0 0 rgba(37,211,102,.45); }
    50% { box-shadow: 0 14px 30px -10px rgba(37,211,102,.7), 0 0 0 12px rgba(37,211,102,0); }
}

/* ---------- Reveal al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Foco accesible ---------- */
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .cards-4 { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 8px; }
    .value:nth-child(3)::before { display: none; }
    .impact-inner { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 820px) {
    .menu-btn { display: inline-flex; }
    .header-inner { display: flex; gap: 12px; }  /* móvil: logo izq · acciones der */
    /* El backdrop-filter convertía al header en el bloque contenedor del menú
       lateral (position: fixed) y, con overflow-x: clip, lo recortaba a la
       altura de la barra: en el teléfono el menú no se desplegaba. En móvil se
       quita el efecto (apenas se nota) y el menú vuelve a ocupar la pantalla. */
    .site-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--bg);
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        width: min(78vw, 320px);
        z-index: 105;                /* por encima del velo (99) */
        flex-direction: column;
        gap: 6px;
        background: var(--surface);
        border-left: 1px solid var(--line);
        padding: 92px 30px 30px;
        transform: translateX(105%);
        transition: transform .35s cubic-bezier(.4,0,.2,1);
        box-shadow: var(--shadow);
        margin-left: 0;
        overflow-y: auto;
    }
    .main-nav.open { transform: none; }
    .main-nav a { font-size: 1.1rem; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .main-nav a::after { display: none; }
    /* mantener logo y botones (incl. cerrar menú) por encima del drawer */
    .brand, .header-actions { position: relative; z-index: 10; }
    .header-actions { margin-left: auto; gap: 6px; }
    .header-wa span { display: none; }
    .header-wa { padding: 11px; width: 40px; height: 40px; border-radius: 50%; }
    body.nav-open { overflow: hidden; }
    .nav-scrim {
        position: fixed; inset: 0;
        background: rgba(0,0,0,.42);
        opacity: 0; pointer-events: none;
        transition: opacity .3s ease;
        z-index: 99;
    }
    .nav-scrim.show { opacity: 1; pointer-events: auto; }
}

@media (max-width: 680px) {
    body { font-size: 16px; }
    .cards-3, .steps { grid-template-columns: 1fr; }
    .cards-4 { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr 1fr; }
    .hero { padding-top: 64px; }
    .footer-inner { flex-direction: column; }
    .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
    .brand-sub { letter-spacing: .32em; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   v2 — Hero a dos columnas, Tienda, Historias y Carrito
   ========================================================= */

/* ---------- Hero dos columnas ---------- */
.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
    max-width: 1160px;
}
.hero-copy { max-width: 580px; }
.hero-media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 360px;
}
.hero-blob {
    position: absolute;
    width: min(96%, 460px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 42% 34%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
        var(--green-soft);
}
.hero-tee {
    position: relative;
    width: min(80%, 350px);
    height: auto;
    filter: drop-shadow(0 26px 42px rgba(0,0,0,.20));
    animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-badge {
    position: absolute;
    bottom: 10%; right: 3%;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-sm);
    padding: 9px 17px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--accent);
}

/* ---------- Hero con foto de fondo (Tienda) ---------- */
.hero--photo {
    position: relative; min-height: 80vh; display: flex; align-items: center;
    background: #1a1a1a url("../assets/tienda-oceano.jpeg") center top / cover no-repeat;
}
.hero--photo::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(16,14,10,.62) 0%, rgba(16,14,10,.34) 40%, rgba(16,14,10,.05) 66%, transparent 82%);
}
.hero--photo .hero-inner { position: relative; z-index: 2; grid-template-columns: 1fr; }
.hero--photo .hero-copy { max-width: 620px; }
.hero--photo .hero-media { display: none; }
.hero--photo .eyebrow { color: #F3E7CC; }
.hero--photo .hero-title { color: #FFFFFF; }
.hero--photo .hero-sub { color: rgba(255,255,255,.92); }
.hero--photo .eyebrow,
.hero--photo .hero-title,
.hero--photo .hero-sub { text-shadow: 0 2px 16px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.5); }
.hero--photo .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.hero--photo .btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.14); }
@media (max-width: 820px) {
    .hero--photo { min-height: 74vh; background-position: 64% top; }
    .hero--photo::before { background: linear-gradient(180deg, rgba(16,14,10,.4) 0%, rgba(16,14,10,.35) 45%, rgba(16,14,10,.72) 100%); }
}

/* ---------- Tienda ---------- */
.fit-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 34px;
    max-width: 460px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 6px;
}
.fit-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--text-soft);
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.fit-btn .fit-name { font-weight: 700; font-size: .95rem; }
.fit-btn .fit-price { font-size: .8rem; opacity: .8; }
.fit-btn:hover { color: var(--accent); }
.fit-btn.is-active { background: var(--accent); color: var(--accent-ink); }
.fit-btn.is-active .fit-price { opacity: .9; }

.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 16px 20px;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-media {
    background: var(--green-soft);
    border-radius: var(--radius);
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    margin-bottom: 15px;
    overflow: hidden;
}
.product-media img { width: 85%; height: auto; transition: transform .4s ease; }
.product:hover .product-media img { transform: scale(1.05) rotate(-1deg); }
.product .tag { align-self: flex-start; margin-bottom: 8px; }
.product-name { font-size: 1.16rem; margin-bottom: 6px; }
.product-desc { font-size: .87rem; color: var(--text-soft); margin-bottom: 16px; flex: 1; }
.product-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-price { font-family: 'Fraunces', serif; font-size: 1.28rem; font-weight: 600; color: var(--text); }
.btn-add {
    background: var(--accent);
    color: var(--accent-ink);
    border: none;
    border-radius: var(--radius-sm);
    padding: 11px 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-add:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-add:active { transform: translateY(0) scale(.97); }
.btn-add[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; box-shadow: none; transform: none; }
/* Producto agotado (interruptor Disponible/Agotado del panel) */
.product.is-soldout { opacity: .78; }
.product.is-soldout .product-media { filter: grayscale(.35); }
.shop-note { text-align: center; margin-top: 26px; font-size: .84rem; color: var(--text-soft); }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 760px; margin: 0 auto; }

/* ---------- Colección Océano (borrador) ---------- */
.draft-note {
    max-width: 540px; margin: 24px auto 0; text-align: center;
    font-size: .82rem; color: var(--text-soft);
    border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line));
    padding: 9px 14px;
}
.ocean-stats { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.ocean-stat {
    flex: 1 1 180px; max-width: 240px; text-align: center;
    background: var(--surface); border: 1px solid var(--line); padding: 24px 18px;
}
.os-num { display: block; font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 600; color: var(--accent); }
.os-label { display: block; font-size: .85rem; color: var(--text-soft); margin-top: 6px; }
.oceano-cta { max-width: 640px; margin: 0 auto; text-align: center; }
.oceano-cta-btns { justify-content: center; margin-top: 22px; }

/* ---------- Tarjetas de colección (Tienda) ---------- */
.collections-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 900px; margin: 0 auto; }
.collection-card {
    display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
    overflow: hidden; text-decoration: none; color: inherit;
    transition: transform .3s ease, box-shadow .3s ease;
}
.collection-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cc-media { position: relative; aspect-ratio: 16 / 10; background: var(--green-soft) center / cover no-repeat; overflow: hidden; }
.cc-media::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.5), rgba(0,0,0,0) 46%);
    pointer-events: none;
}
/* Índice editorial de colección: 001, 002… (marca el orden) */
.cc-index {
    position: absolute; top: 12px; left: 16px; z-index: 2;
    display: flex; flex-direction: column; line-height: .8;
    color: #F7F2E8;
    font-family: 'Fraunces', serif; font-weight: 600;
    font-size: 2.5rem; letter-spacing: .015em;
    text-shadow: 0 2px 16px rgba(0,0,0,.45);
}
.cc-index small {
    font-family: 'Inter', sans-serif; font-weight: 600;
    font-size: .6rem; letter-spacing: .3em; text-transform: uppercase;
    opacity: .92; margin-bottom: 7px;
}
.collection-card:hover .cc-index { transform: translateY(-2px); transition: transform .3s ease; }
.collection-card.is-soon .cc-index { opacity: .78; }
.cc-soon { display: grid; place-items: center; background: var(--bg-alt); }
.cc-soon-ico { font-size: 3rem; filter: grayscale(.35); opacity: .75; }
.cc-body { padding: 20px 22px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.cc-body h3 { font-size: 1.34rem; }
.cc-body p { color: var(--text-soft); font-size: .92rem; }
.collection-card .link-arrow { margin-top: 6px; }
.collection-card.is-soon { opacity: .96; }
@media (max-width: 700px) { .collections-grid { grid-template-columns: 1fr; } }

/* ---------- Guía de tallas ---------- */
.size-guide { max-width: 640px; margin: 44px auto 0; }
.size-guide-title { font-size: 1.3rem; text-align: center; margin-bottom: 6px; }
.size-guide-note { text-align: center; font-size: .88rem; color: var(--text-soft); margin-bottom: 18px; }
.size-table-wrap { overflow-x: auto; }
.size-table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.size-table th, .size-table td { border: 1px solid var(--line); padding: 10px 14px; text-align: center; }
.size-table th { background: var(--bg-alt); font-weight: 600; }
.size-table th:first-child, .size-table td:first-child { font-weight: 600; }
.size-table tbody tr:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
html[lang="en"] .size-cm { display: none; }
html:not([lang="en"]) .size-in { display: none; }
.ocean-prose { max-width: 680px; margin: 0 auto; }
.ocean-prose p { margin-bottom: 1.05em; font-size: 1.06rem; line-height: 1.75; color: var(--text); }
.ocean-prose p:last-child { margin-bottom: 0; }
.ocean-quote {
    max-width: 720px; margin: 34px auto 0; padding: 6px 0 6px 24px;
    border-left: 4px solid var(--accent);
    font-family: 'Fraunces', serif; font-style: italic; font-size: 1.28rem; line-height: 1.5; color: var(--text);
}
.ocean-stats { margin-top: 40px; }

/* Sección "Dato curioso" (ballenas) — bloque más ligero y diferenciado */
.ocean-curio { background: var(--bg-alt); }

/* Línea de cierre del portal de colecciones */
.portal-outro {
    margin-top: 12px;
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--accent);
}
.actions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 900px; margin: 0 auto; }
.action-card { background: var(--surface); border: 1px solid var(--line); padding: 28px 26px; }
.action-num { display: block; font-family: 'Fraunces', serif; font-size: 1.7rem; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.action-card h3 { font-size: 1.14rem; margin-bottom: 8px; }
.action-card p { color: var(--text-soft); font-size: .95rem; line-height: 1.6; }
@media (max-width: 700px) { .actions-grid { grid-template-columns: 1fr; } }

/* ---------- Botón carrito + contador ---------- */
.cart-btn { position: relative; }
.cart-count {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: var(--radius-sm);
    background: var(--accent); color: var(--accent-ink);
    font-size: .68rem; font-weight: 800;
    display: grid; place-items: center;
    border: 2px solid var(--bg);
    line-height: 1;
}
.cart-count[hidden] { display: none; }

/* ---------- Drawer del carrito ---------- */
.cart-scrim {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0; transition: opacity .3s ease;
    z-index: 200;
}
.cart-scrim.show { opacity: 1; }
.cart-drawer {
    position: fixed; top: 0; right: 0;
    height: 100vh; height: 100dvh;
    width: min(92vw, 400px);
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 201;
    transform: translateX(102%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column;
    /* En pantallas bajas el pie no cabe: sin esto, el boton de finalizar
       quedaba por debajo del cajon y no habia forma de alcanzarlo. */
    overflow-y: auto;
}
.cart-drawer.open { transform: none; }
.cart-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 24px; border-bottom: 1px solid var(--line);
}
.cart-head h3 { font-size: 1.3rem; }
.cart-close {
    background: none; border: none; color: var(--text); cursor: pointer;
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
}
.cart-close:hover { background: var(--green-soft); color: var(--accent); }
/* El pie del carrito (total + 5 métodos de pago + botones) mide ~450 px fijos.
   Sin un piso, en un teléfono la lista de productos se reducía a unos pocos
   píxeles y no se veía lo que se estaba comprando. */
.cart-items { flex: 1 1 auto; overflow-y: auto; min-height: 34dvh; padding: 6px 24px; }
.cart-item {
    display: grid; grid-template-columns: 62px 1fr auto; gap: 14px;
    align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.cart-item img { border-radius: var(--radius); background: var(--green-soft); }
.ci-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ci-name { font-weight: 600; font-size: .95rem; }
.ci-price { font-size: .8rem; color: var(--text-soft); }
.ci-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ci-qty button {
    width: 26px; height: 26px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--bg); color: var(--text);
    cursor: pointer; font-size: 1rem; line-height: 1; display: grid; place-items: center;
}
.ci-qty button:hover { border-color: var(--accent); color: var(--accent); }
.ci-num { min-width: 18px; text-align: center; font-weight: 600; font-size: .92rem; }
.ci-remove {
    width: auto; height: auto; padding: 0 2px; border: none; background: none;
    font-size: .76rem; color: var(--text-soft); text-decoration: underline;
    margin-left: 2px; cursor: pointer;
}
.ci-remove:hover { color: #c0392b; }
.ci-line { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1rem; white-space: nowrap; }
.cart-empty { padding: 44px 24px; text-align: center; color: var(--text-soft); }
.cart-foot { padding: 20px 24px 26px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; font-size: 1rem; }
.cart-total strong { font-family: 'Fraunces', serif; font-size: 1.5rem; }
.cart-checkout { width: 100%; }
.cart-continue {
    width: 100%; margin-top: 10px; padding: 12px;
    background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
    color: var(--text); font-family: 'Inter', sans-serif; font-weight: 600; font-size: .92rem; cursor: pointer;
}
.cart-continue:hover { border-color: var(--accent); color: var(--accent); }
.cart-note { text-align: center; font-size: .78rem; color: var(--text-soft); margin-top: 12px; }

/* ---------- Método de pago (carrito) ---------- */
.cart-pay { margin-bottom: 14px; }
.cart-pay-label {
    display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em;
    color: var(--text-soft); font-weight: 700; margin-bottom: 8px;
}
.cart-pay-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-pill {
    flex: 1 1 auto; min-width: 92px; padding: 10px 12px;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border-radius: var(--radius); border: 1px solid var(--line);
    background: var(--bg); color: var(--text-soft);
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: .85rem; cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pay-ico { flex-shrink: 0; opacity: .85; }
.pay-pill.is-active .pay-ico { opacity: 1; }
.pay-pill:hover { border-color: var(--accent); color: var(--accent); }
.pay-pill.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cart-pay-info {
    font-size: .8rem; color: var(--text-soft); margin: -4px 0 14px;
    line-height: 1.5;
}
.cart-pay-info strong { color: var(--text); }

body.cart-open { overflow: hidden; }

/* ---------- Responsive v2 ---------- */
@media (max-width: 980px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
    .hero-inner { grid-template-columns: 1fr; gap: 8px; }
    .hero-media { min-height: 300px; }
    .hero-copy { max-width: none; }
}
@media (max-width: 480px) {
    .shop-grid { grid-template-columns: 1fr; }
    .cards-2 { grid-template-columns: 1fr; }
    .cart-drawer { width: 100vw; }
    /* El botón flotante de WhatsApp ya está siempre visible; ocultamos el del
       header en teléfonos pequeños para que las acciones no se aprieten. */
    .header-wa { display: none; }
}

/* =========================================================
   v3 — Tallas, Testimonios, FAQ, Volver arriba
   ========================================================= */

/* ---------- Selector de talla ---------- */
.product-sizes { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.size-label { font-size: .74rem; color: var(--text-soft); margin-right: 2px; }
.size-pill {
    min-width: 30px; height: 30px; padding: 0 8px;
    border-radius: var(--radius-sm); border: 1px solid var(--line);
    background: var(--bg); color: var(--text-soft);
    font-size: .82rem; font-weight: 600; cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.size-pill:hover { border-color: var(--accent); color: var(--accent); }
.size-pill.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { background: var(--bg); }
.faq-inner { max-width: 800px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 20px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 500; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-ico { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-ico::before, .faq-ico::after {
    content: ""; position: absolute; background: var(--accent); border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}
.faq-ico::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-ico::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item[open] .faq-ico::after { transform: rotate(90deg); opacity: 0; }
.faq-a { padding: 0 24px 22px; }
.faq-a p { color: var(--text-soft); font-size: .96rem; }

/* ---------- Volver arriba ---------- */
.to-top {
    position: fixed; left: 22px; bottom: 22px; z-index: 90;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--line); color: var(--text);
    box-shadow: var(--shadow); cursor: pointer;
    display: grid; place-items: center;
    opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
    transition: opacity .3s ease, transform .3s ease, border-color .2s ease, color .2s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 680px) { .to-top { left: 16px; bottom: 16px; width: 42px; height: 42px; } }

.footer-bottom a { color: var(--text-soft); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--accent); }

/* =========================================================
   Essentials (línea de básicos) + pestaña del pie
   ========================================================= */
.footer-nav { display: flex; flex-direction: column; gap: 7px; font-size: .9rem; }
.footer-nav-title {
    font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--text-soft); font-weight: 600; margin-bottom: 3px;
}
.footer-nav a { color: var(--text-soft); transition: color .2s; width: max-content; }
.footer-nav a:hover, .footer-nav a.is-current { color: var(--accent); }
.footer-nav a.footer-tab {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--olive-ink); background: var(--olive);
    padding: 5px 14px; font-weight: 600; letter-spacing: .01em;
    border-radius: var(--radius-sm); width: max-content;
}
.footer-nav a.footer-tab::before { content: "✦"; font-size: .8em; opacity: .85; }
.footer-nav a.footer-tab:hover { filter: brightness(1.06); color: var(--olive-ink); }
.footer-nav a.footer-tab.is-current { outline: 2px solid var(--accent); outline-offset: 2px; }

/* La foto del producto ahora es un botón (abre la galería) */
.product-media {
    border: 0; padding: 0; width: 100%; cursor: pointer;
    font: inherit; color: inherit; position: relative;
}
.pv-badge {
    position: absolute; top: 8px; right: 8px;
    width: 30px; height: 30px; display: grid; place-items: center;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--line); border-radius: 50%;
    opacity: 0; transform: translateY(-3px); transition: opacity .2s, transform .2s;
    pointer-events: none;
}
.product-media:hover .pv-badge,
.product-media:focus-visible .pv-badge { opacity: 1; transform: none; }
.product-media:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* =========================================================
   Ventana de fotos (galería + descripción + agregar)
   ========================================================= */
.pv-scrim {
    position: fixed; inset: 0; background: rgba(0,0,0,.5);
    opacity: 0; transition: opacity .3s ease; z-index: 210;
}
.pv-scrim.show { opacity: 1; }
.pv-modal {
    position: fixed; z-index: 211;
    top: 50%; left: 50%;
    width: min(94vw, 880px); max-height: 90vh;
    transform: translate(-50%, -48%) scale(.98);
    opacity: 0; pointer-events: none;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--line); box-shadow: var(--shadow);
    border-radius: var(--radius);
    display: grid; grid-template-columns: 1.05fr 1fr;
    overflow: hidden;
    transition: opacity .28s ease, transform .28s cubic-bezier(.4,0,.2,1);
}
.pv-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.pv-close {
    position: absolute; top: 10px; right: 10px; z-index: 3;
    width: 38px; height: 38px; display: grid; place-items: center;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
    transition: color .2s, border-color .2s;
}
.pv-close:hover { color: var(--accent); border-color: var(--accent); }

.pv-gallery { background: var(--green-soft); display: flex; flex-direction: column; min-width: 0; }
.pv-main {
    position: relative; flex: 1; min-height: 0;
    display: grid; place-items: center; padding: 26px;
}
.pv-main img { max-width: 100%; max-height: 46vh; width: auto; height: auto; object-fit: contain; }
.pv-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; display: grid; place-items: center;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
    transition: color .2s, border-color .2s;
}
.pv-nav:hover { color: var(--accent); border-color: var(--accent); }
.pv-prev { left: 12px; } .pv-next { right: 12px; }
.pv-count {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    font-size: .76rem; color: var(--text-soft);
    background: var(--surface); border: 1px solid var(--line);
    padding: 2px 10px; border-radius: 20px;
}
.pv-thumbs {
    display: flex; gap: 8px; padding: 12px 14px; overflow-x: auto;
    border-top: 1px solid var(--line);
}
.pv-thumb {
    flex: 0 0 auto; width: 56px; height: 56px; padding: 4px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); cursor: pointer; display: grid; place-items: center;
    transition: border-color .2s;
}
.pv-thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pv-thumb.is-active { border-color: var(--accent); }
.pv-thumb:hover { border-color: var(--accent); }

.pv-info { padding: 40px 30px 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.pv-info .tag { align-self: flex-start; margin: 0; }
.pv-title { font-size: 1.5rem; line-height: 1.15; }
.pv-desc { font-size: .95rem; color: var(--text-soft); line-height: 1.6; }
.pv-opts { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.pv-opt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pv-opt-label {
    font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-soft); font-weight: 600; min-width: 46px;
}
.pv-fit { display: inline-flex; gap: 6px; }
.pv-fit-btn {
    border: 1px solid var(--line); background: var(--surface); color: var(--text);
    padding: 7px 14px; font-size: .86rem; font-weight: 600; cursor: pointer;
    border-radius: var(--radius-sm); transition: all .2s;
}
.pv-fit-btn:hover { border-color: var(--accent); color: var(--accent); }
.pv-fit-btn.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pv-sizes { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pv-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.pv-price { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 600; color: var(--text); }
.pv-add { white-space: nowrap; }
body.pv-open { overflow: hidden; }

@media (max-width: 720px) {
    .pv-modal { grid-template-columns: 1fr; width: 94vw; max-height: 92vh; grid-template-rows: auto 1fr; }
    .pv-main { padding: 20px; }
    .pv-main img { max-height: 34vh; }
    .pv-info { padding: 18px 20px 22px; }
    .pv-title { font-size: 1.3rem; }
    .footer-nav { order: 3; }
}
@media (prefers-reduced-motion: reduce) {
    .pv-modal, .pv-scrim { transition: opacity .01ms; }
}

/* =========================================================
   Océano · enlaces de datos (debajo del título)
   ========================================================= */
.ocean-stats-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 2px 0 14px; }
.ocean-stat-link {
    display: inline-flex; align-items: baseline; gap: 7px;
    padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--surface); color: var(--text-soft); text-decoration: none;
    font-size: .82rem; line-height: 1;
    transition: border-color .2s, color .2s, transform .2s;
}
.ocean-stat-link strong { font-family: 'Fraunces', serif; color: var(--accent); font-size: 1rem; font-weight: 600; }
.ocean-stat-link .osl-arrow { opacity: .45; transition: transform .2s, opacity .2s; }
.ocean-stat-link:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.ocean-stat-link:hover .osl-arrow { transform: translateX(3px); opacity: .85; }
/* Para que el ancla no quede tapada por el encabezado fijo al saltar */
.oc-anchor { scroll-margin-top: 92px; }

/* =========================================================
   Cuadritos de color (tarjeta de producto y ventana de fotos)
   ========================================================= */
.product-colors { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.color-swatch, .pv-color {
    width: 28px; height: 28px; padding: 2px; cursor: pointer;
    border: 1px solid var(--line); border-radius: 50%; background: var(--surface);
    display: inline-grid; place-items: center; overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.color-swatch:hover, .pv-color:hover { border-color: var(--accent); }
.color-swatch.is-active, .pv-color.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.color-swatch:focus-visible, .pv-color:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.color-dot { width: 100%; height: 100%; border-radius: 50%; display: block; overflow: hidden; background-size: cover; background-position: center; }
.color-dot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-colors { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.pv-color { width: 30px; height: 30px; }

/* =========================================================
   Tienda por horma: pestañas Regular fit · Oversized · Esenciales
   ========================================================= */
.shop-tabs {
    display: flex; justify-content: center; gap: 6px;
    margin: 0 auto 26px; max-width: 600px; padding: 6px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.shop-tab {
    flex: 1; padding: 11px 14px; border: none; border-radius: var(--radius-sm);
    background: none; color: var(--text-soft); cursor: pointer;
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: .95rem;
    transition: background .2s ease, color .2s ease;
}
.shop-tab:hover { color: var(--accent); }
.shop-tab.is-active { background: var(--accent); color: var(--accent-ink); }
.shop-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 420px) { .shop-tab { padding: 10px 6px; font-size: .86rem; } }
.shop-panel[hidden] { display: none; }
.shop-panel-lead { text-align: center; color: var(--text-soft); font-size: .95rem; margin: -8px auto 24px; max-width: 520px; }
.shop-empty {
    text-align: center; color: var(--text-soft); font-size: 1rem;
    padding: 46px 20px; border: 1px dashed var(--line); border-radius: var(--radius);
    max-width: 560px; margin: 0 auto;
}
@media (max-width: 480px) { .shop-tab { font-size: .86rem; padding: 10px 8px; } }

/* Cierre de las páginas de colección: de la historia a las camisetas */
.shop-cta { text-align: center; }
.shop-cta .section-title { margin-bottom: 14px; }
.shop-cta .section-lead { max-width: 560px; margin: 0 auto 22px; }
.shop-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Colecciones un poco más pequeñas (para que las camisetas suban) */
#collections .collections-grid { max-width: 760px; gap: 20px; }
#collections .cc-media { aspect-ratio: 16 / 8; }
#collections .cc-body { padding: 16px 18px 18px; gap: 5px; }
#collections .cc-body h3 { font-size: 1.2rem; }
#collections { padding-bottom: 30px; }
#camisetas { padding-top: 40px; }

/* Felina: el leopardo en la rama, encuadrado en la cara (la foto es
   vertical y la cara está a la derecha) */
.cc-media--felina { background-position: center 22% !important; }
/* En computador, la foto completa a la derecha y a su tamaño (es vertical y
   de 1122 px: estirada a lo ancho se veía borrosa y cortada), fundida hacia
   la izquierda con el verde oscuro del fondo de la propia foto. */
.hero--felina { background: #0d150b; overflow: hidden; }
.hero--felina::after {
    content: ""; position: absolute; z-index: 0; top: 0; bottom: 0; right: 0;
    aspect-ratio: 1122 / 1402; pointer-events: none;
    background: url("../assets/felina-leopardo-rama.jpg") center / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
}
/* En el celular, la foto llena la portada, encuadrada en la cara */
@media (max-width: 820px) {
    .hero--felina { background: #0d150b url("../assets/felina-leopardo-rama.jpg") 90% center / cover no-repeat; }
    .hero--felina::after { display: none; }
}
/* Horma en la ventana de fotos: ya no se elige, la define el espacio */
.pv-fit-fija {
    display: inline-block; padding: 6px 12px; font-size: .86rem; font-weight: 600;
    border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text);
}

/* =========================================================
   Camisetas dentro de cada colección + Esenciales con su página
   ========================================================= */
section[id] { scroll-margin-top: 84px; }

/* Océano: portada con foto (la tortuga) */
.hero--oceano {
    background: #0b1b22 url("../assets/oceano-tortuga.jpg") center 40% / cover no-repeat;
}
@media (max-width: 820px) { .hero--oceano { background-position: 55% center; } }

/* Tarjeta de Esenciales, debajo de las colecciones (ancha, horizontal) */
.esenciales-card {
    display: grid; grid-template-columns: 220px 1fr; align-items: stretch;
    max-width: 760px; margin: 20px auto 0; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line);
    text-decoration: none; color: inherit;
    transition: transform .3s ease, box-shadow .3s ease;
}
.esenciales-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ec-media { background: var(--green-soft) center / cover no-repeat; min-height: 150px; }
.ec-body { padding: 18px 22px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; }
.ec-body h3 { font-size: 1.2rem; }
.ec-body p { color: var(--text-soft); font-size: .92rem; }
@media (max-width: 560px) { .esenciales-card { grid-template-columns: 1fr; } .ec-media { min-height: 170px; } }
.ess-volver { text-align: center; margin-top: 30px; }
/* Tarjeta de Propósito que las dueñas ocultan con "--" en el título */
.card-purpose[hidden] { display: none; }

/* Guía de tallas: dos tablas (Regular fit · Oversized) lado a lado */
.size-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.size-table-title { font-size: 1rem; margin: 0 0 8px; text-align: center; color: var(--text); }
.size-guide { max-width: 860px; }

/* =========================================================
   Ventana de fotos grande, con zoom
   ========================================================= */
.pv-modal {
    width: min(96vw, 1240px); height: min(92vh, 940px); max-height: none;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
}
.pv-gallery { min-height: 0; }
.pv-main { position: relative; flex: 1; min-height: 0; padding: 0; overflow: hidden; display: block; }
.pv-main img {
    position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px);
    max-width: none; max-height: none; object-fit: contain;
    cursor: zoom-in; transition: transform .25s ease;
}
.pv-main.is-zoom img { transform: scale(2.4); cursor: zoom-out; }
/* Ampliada, el dedo recorre la foto en vez de desplazar la ventana */
.pv-main.is-zoom { touch-action: none; }
.pv-nav, .pv-count { z-index: 2; }
.pv-zoom-hint {
    position: absolute; left: 12px; bottom: 10px; z-index: 2;
    display: inline-flex; align-items: center; gap: 6px; pointer-events: none;
    font-size: .74rem; color: var(--text-soft);
    background: var(--surface); border: 1px solid var(--line); padding: 3px 10px; border-radius: 20px;
    transition: opacity .2s;
}
.pv-main.is-zoom .pv-zoom-hint { opacity: 0; }
.pv-thumb { width: 64px; height: 64px; }
@media (max-width: 720px) {
    /* En el celular, la ventana ocupa toda la pantalla: la prenda se ve grande */
    .pv-modal, .pv-modal.open {
        top: 0; left: 0; transform: none;
        width: 100vw; height: 100vh; height: 100dvh; max-height: none;
        border: 0; border-radius: 0;
        /* Alto fijo para la foto (si no, el texto de abajo la aplasta); el
           texto queda debajo y la ventana se desplaza */
        grid-template-columns: 1fr; grid-template-rows: 62vh auto; grid-template-rows: 62dvh auto;
        overflow-y: auto;
    }
    .pv-info { overflow: visible; }
    .pv-thumb { width: 54px; height: 54px; }
    /* El contador a la derecha, para no chocar con la pista del zoom */
    .pv-count { left: auto; right: 12px; transform: none; }
}
