/* ===============================
   THEME / TOKENS · SENSEIMEDS v3.0
   Paleta institucional (manual de marca)
=================================*/
:root {
    /* SenseiMeds — paleta primaria */
    --primary: #2BA8A0;       /* Teal SenseiMeds — CTA, énfasis */
    --primary-dark: #1D7872;  /* Teal Oscuro — hover */
    --accent: #1D7872;        /* alias para compat */

    --ink: #111111;           /* Texto principal */
    --ink-mid: #3A3A3A;       /* Texto secundario */

    --bg: #FFFFFF;            /* Tarjetas, secciones internas */
    --bg-2: #F7F4EF;          /* Ivory — fondos / modo lectura */

    --text: #111111;
    --muted: #3A3A3A;

    --slate: #C4C4C4;

    --card: rgba(17, 17, 17, .04);
    --stroke: rgba(17, 17, 17, .12);
    --shadow: 0 10px 30px rgba(17, 17, 17, .08);

    --radius-xl: 22px;
    --radius-lg: 16px;

    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 20px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 40px;
    --space-8: 56px;

    /* UI */
    --cta-h: 56px;
    /* alto aprox del botón flotante */
}

/* ===============================
   BASE
=================================*/
* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background:
        radial-gradient(900px 600px at 20% 0%, rgba(43, 168, 160, .07), transparent 60%),
        radial-gradient(900px 600px at 80% -10%, rgba(29, 120, 114, .06), transparent 60%),
        linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 100%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Display: Cormorant Garamond — h1/h2 títulos, hero, taglines */
h1, h2, .display, .eyebrow-display {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Mono: Space Mono — labels, códigos, metadata */
.eyebrow, .chip, .badge, code, .meta-mono {
    font-family: 'Space Mono', ui-monospace, monospace;
    letter-spacing: 0.04em;
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 6px
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto
}

.section {
    padding: var(--space-8) 0
}

.maxw {
    max-width: 62ch;
    margin-inline: auto
}

.eyebrow {
    color: var(--primary);
    letter-spacing: .12em;
    font-weight: 700;
    text-transform: uppercase;
    font-size: .78rem
}

h1,
h2,
h3 {
    line-height: 1.12;
    margin: 0 0 .6rem;
    overflow-wrap: break-word;
    word-break: normal
}

h1 {
    font-size: clamp(2.6rem, 6vw, 4rem);
    font-weight: 600;
    letter-spacing: -.015em;
}

h2 {
    font-size: clamp(2rem, 4.2vw, 2.8rem);
    font-weight: 600;
    letter-spacing: -.01em;
}

h3 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.1rem, 2.4vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0;
}

p {
    color: var(--muted);
    font-size: clamp(1rem, 1.3vw, 1.06rem);
    line-height: 1.65;
    margin: .25rem 0 0
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .9rem 1.2rem;
    border-radius: 14px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow);
    transform: translateZ(0);
    transition: transform .2s ease, filter .2s ease
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05)
}

.btn.alt {
    background: transparent;
    border: 1px solid var(--stroke);
    color: var(--text)
}

.btn.alt:hover {
    border-color: var(--primary)
}

.btn.mini {
    padding: .55rem .9rem;
    border-radius: 12px;
    font-weight: 700
}

/* ===============================
   NAV
=================================*/
header[role="banner"] {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: saturate(120%) blur(10px);
    background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .68));
    border-bottom: 1px solid var(--stroke);
}

.nav {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    display: flex;
    gap: .6rem;
    align-items: center;
    font-weight: 700;
    letter-spacing: 0;
    font-size: 1.15rem
}

.brand > .iso {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;
    background: var(--bg-2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand > .iso img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(2.4);
    transform-origin: center;
}

.brand span {
    font-family: 'Inter', sans-serif;
    color: var(--ink);
}
.brand span em, .brand .brand-meds {
    font-style: normal;
    color: var(--primary);
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center
}

.nav-links a {
    color: var(--muted);
    font-weight: 600;
    font-size: .98rem
}

.nav-links a:hover {
    color: var(--text)
}

.nav-links a.active {
    color: var(--text);
    position: relative
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -12px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--primary)
}

.hamburger {
    display: none;
    border: 1px solid var(--stroke);
    background: transparent;
    color: var(--text);
    border-radius: 10px;
    padding: .5rem .65rem
}

/* NAV móvil: POPVER compacto */
@media (max-width:820px) {
    .hamburger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        border: 1px solid var(--stroke);
        background: var(--bg-2);
        color: var(--text);
        box-shadow: var(--shadow);
    }

    .nav-links {
        position: fixed;
        top: calc(64px + env(safe-area-inset-top));
        right: 12px;
        left: auto;
        bottom: auto;
        width: min(86vw, 320px);
        max-height: min(70vh, 460px);
        overflow: auto;

        background: var(--bg);
        color: var(--text);
        border: 1px solid var(--stroke);
        border-radius: 16px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, .18);

        padding: 10px;
        display: grid;
        gap: 6px;

        transform: scale(.98) translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: transform .18s ease, opacity .18s ease;
        z-index: 1001;
    }

    .nav-links.open {
        transform: none;
        opacity: 1;
        pointer-events: auto
    }

    .nav-links a {
        display: block;
        padding: 12px;
        border-radius: 12px;
        font-weight: 700;
        color: var(--text)
    }

    .nav-links a:hover {
        background: var(--card)
    }

    .nav-links a.active {
        background: rgba(43, 168, 160, 0.16);
        background: color-mix(in srgb, var(--primary) 16%, transparent)
    }

    .nav-links a.active::after {
        content: none
    }

    /* sin punto en móvil */

    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: transparent;
        backdrop-filter: none;
        opacity: 1;
        pointer-events: none;
        z-index: 1000;
        transition: none;
    }

    .nav-backdrop.show {
        pointer-events: auto
    }

    /* solo capta el tap para cerrar */

    body.no-scroll {
        overflow: hidden;
    }

    /* si decides bloquear scroll al abrir */
}

/* ===============================
   HERO
=================================*/
.hero {
    position: relative;
    padding-top: calc(var(--space-8) + 8px);
    padding-bottom: var(--space-7);
    overflow: hidden;
    background: var(--bg-2);
    border-bottom: 1px solid var(--stroke);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: min(5vw, 56px);
    align-items: center
}

.hero h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.8rem, 6.2vw, 4.6rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--ink);
    max-width: 14ch;
}

.hero h1 em {
    font-style: italic;
    color: var(--primary);
    font-weight: 600;
}

.hero .eyebrow {
    font-family: 'Space Mono', ui-monospace, monospace;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: .14em;
    font-size: .74rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1.1rem;
}

.hero .lead {
    font-family: 'Inter', sans-serif;
    font-size: 1.08rem;
    max-width: 48ch;
    color: var(--ink-mid);
    margin-top: 1rem;
}

.hero .actions {
    margin-top: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .8rem
}

.logo-badge {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(43, 168, 160, .18), rgba(29, 120, 114, .18));
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow)
}

.logo-badge img {
    width: 58px;
    height: 58px;
    border-radius: 16px
}

.hero-card {
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .65));
    border-radius: var(--radius-xl);
    padding: 18px;
    box-shadow: var(--shadow)
}

.hero-card .row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    column-gap: 30px
}

@media (max-width:960px) {
    .hero-grid {
        grid-template-columns: 1fr
    }

    .hero .hero-copy {
        text-align: center
    }

    .hero-card .row {
        grid-template-columns: 56px minmax(0, 1fr)
    }
}

/* ===============================
   SECCIONES
=================================*/
.section h2+p {
    margin-top: .4rem
}

.muted {
    color: var(--muted)
}

#productos {
    background: #fff;
}

#quienes-somos h2,
#quienes-somos p {
    text-align: center;
    margin-left: auto;
    margin-right: auto
}

#quienes-somos p {
    max-width: 62ch
}

/* Cards “Quiénes somos” */
.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
    margin-top: var(--space-5)
}

.card {
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    box-shadow: var(--shadow);
    transition: transform .2s ease, border-color .2s ease
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(43, 168, 160, 0.35);
    border-color: color-mix(in srgb, var(--primary) 35%, transparent)
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(43, 168, 160, 0.12);
    background: color-mix(in srgb, var(--primary) 12%, transparent)
}

.card p {
    text-align: left
}

@media (max-width:880px) {
    .cards {
        grid-template-columns: 1fr
    }
}

/* ===============================
   PRODUCTOS
=================================*/
.subhead {
    margin: var(--space-6) 0 var(--space-3);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 700
}

.grid.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    align-items: stretch;
}

@media (max-width:1024px) {
    .grid.products {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:640px) {
    .grid.products {
        grid-template-columns: 1fr
    }
}

.product {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--stroke);
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.product:hover {
    transform: translateY(-4px);
    border-color: rgba(29, 120, 114, 0.35);
    border-color: color-mix(in srgb, var(--accent) 35%, transparent);
    box-shadow: 0 20px 40px rgba(17, 24, 39, .12);
}

.product .media {
    aspect-ratio: 3/2;
    background: var(--bg-2);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.product .media img {
    width: 72%;
    height: 72%;
    object-fit: contain;
    filter: drop-shadow(0 14px 20px rgba(17, 24, 39, .35));
    transition: transform .3s ease;
}

.product:hover .media img {
    transform: scale(1.04);
}

@supports not (aspect-ratio: 3/2) {
    .product .media {
        position: relative;
        height: 0;
        padding-top: 66.6667%
    }

    .product .media>* {
        position: absolute;
        inset: 0
    }
}

.product .body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.product .title {
    font-weight: 800;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px
}

.product .meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .92rem;
}

.icons {
    display: inline-flex;
    gap: .5rem;
    align-items: center;
    color: var(--primary)
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: #fff;
    font-size: .74rem;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: .02em
}

/* Reveal: siempre visible, empujado al fondo */
.product .reveal {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--stroke);
}

.product .reveal h4 {
    font-size: .82rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 8px;
}

.product .reveal ul {
    margin: 0 0 12px;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product .reveal ul li {
    font-size: .88rem;
    color: var(--muted);
}

/* ===============================
   BADGE FREE
=================================*/
.badge--free {
    background: linear-gradient(90deg, #2BA8A0, #1D7872);
}

/* ===============================
   PROMO BANNERS
=================================*/
.promo-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    margin: var(--space-5) 0;
    font-weight: 700;
    font-size: .97rem;
    transition: filter .2s ease, transform .2s ease;
    text-decoration: none;
    color: #fff;
}

.promo-banner:hover {
    filter: brightness(1.07);
    transform: translateY(-2px);
}

.promo-banner__icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.promo-banner__text {
    flex: 1;
}

.promo-banner__cta {
    white-space: nowrap;
    font-size: .88rem;
    opacity: .9;
    flex-shrink: 0;
}

.promo-banner--free {
    background: linear-gradient(90deg, #2BA8A0 0%, #1D7872 100%);
    box-shadow: 0 8px 24px rgba(43,168,160,.25);
}

.promo-banner--premium {
    background: linear-gradient(90deg, #111111 0%, #1D7872 100%);
    box-shadow: 0 8px 24px rgba(17,17,17,.28);
}

.promo-banner--enarm {
    background: linear-gradient(90deg, #1D7872 0%, #111111 100%);
    box-shadow: 0 8px 24px rgba(29,120,114,.25);
}

@media (max-width: 640px) {
    .promo-banner {
        flex-wrap: wrap;
        gap: 10px;
    }
    .promo-banner__cta {
        margin-left: auto;
    }
}

/* ===============================
   ENARM COLLECTION BLOCK
=================================*/
.enarm-collection {
    margin: var(--space-5) 0;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.enarm-collection__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-5);
    padding: var(--space-5);
    flex-wrap: wrap;
}

.enarm-collection__header h3 {
    font-size: clamp(1.1rem, 2.4vw, 1.3rem);
    margin-bottom: .3rem;
}

.enarm-details {
    border-top: 1px solid var(--stroke);
}

.enarm-details summary {
    padding: 14px var(--space-5);
    font-size: .92rem;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    transition: background .15s ease;
}

.enarm-details summary::-webkit-details-marker { display: none; }

.enarm-details summary:hover {
    background: var(--bg-2);
}

.enarm-details[open] summary i {
    transform: rotate(180deg);
}

.enarm-details summary i {
    transition: transform .2s ease;
    font-size: .78rem;
    margin-left: auto;
}

.enarm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 8px;
    padding: var(--space-4) var(--space-5) var(--space-5);
}

.enarm-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: var(--bg-2);
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
    text-decoration: none;
}

.enarm-item:hover {
    border-color: var(--primary);
    background: #fff;
    transform: translateY(-2px);
}

.enarm-item span {
    font-weight: 700;
    font-size: .9rem;
    color: var(--text);
}

.enarm-item small {
    font-size: .78rem;
    color: var(--muted);
}

@media (max-width: 640px) {
    .enarm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .enarm-collection__header {
        flex-direction: column;
    }
    .enarm-collection__header .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===============================
   TESTIMONIOS
=================================*/
.carousel {
    margin-top: var(--space-3);
    display: grid;
    gap: var(--space-3)
}

.track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: var(--space-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch
}

.track::-webkit-scrollbar {
    height: 8px
}

.track::-webkit-scrollbar-thumb {
    background: var(--stroke);
    border-radius: 999px
}

.t-card {
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow)
}

.t-card p {
    font-style: italic
}

.controls {
    display: flex;
    gap: 8px;
    justify-content: flex-end
}

.controls button {
    background: transparent;
    border: 1px solid var(--stroke);
    color: var(--text);
    border-radius: 12px;
    padding: .5rem .65rem
}

/* ===============================
   SOCIAL PROOF
=================================*/
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-3)
}

.stat {
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow)
}

.stat .num {
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 800
}

.stat i {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 6px
}

@media (max-width:820px) {
    .stats {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:480px) {
    .stats {
        grid-template-columns: 1fr
    }
}

/* ===============================
   CONTACTO
=================================*/
.section--contact {
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.contact-copy h2 {
    margin-bottom: var(--space-3);
}

.contact-perks {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: .97rem;
    font-weight: 600;
}

.contact-perks li i {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: grid;
    place-items: center;
    font-size: .68rem;
    flex-shrink: 0;
    color: #fff;
}

.contact-form-wrap .form {
    width: 100%;
    margin: 0;
    background: var(--bg-2);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
}

@media (max-width: 820px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    .contact-copy {
        text-align: center;
    }
    .contact-perks {
        align-items: center;
    }
}

.form {
    width: min(520px, 96%);
    margin: 18px auto 0;
    display: grid;
    gap: 10px;
}

.input,
textarea {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: .85rem .95rem;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.success {
    color: var(--primary);
    font-weight: 700;
    margin-top: 4px;
    min-height: 20px;
    font-size: .92rem;
}

/* footer viejo reemplazado por foot-grid */
.foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.social {
    display: inline-flex;
    gap: 10px;
    align-items: center
}

.social a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: 10px;
    color: var(--text);
    box-shadow: var(--shadow)
}

.copy {
    color: var(--muted);
    font-size: .95rem;
    margin: 0
}

@media (max-width:720px) {
    .foot {
        flex-direction: column
    }
}

/* DUSA: texto + IG pegados */
.dusa-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    vertical-align: middle
}

.dusa-link {
    font-weight: 700;
    color: var(--text);
    text-decoration: none
}

.dusa-link:hover {
    color: var(--primary)
}

.dusa-ig {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--stroke);
    color: var(--text);
    box-shadow: var(--shadow)
}

/* ===============================
   CTA FLOTANTE (WhatsApp)
=================================*/
.floating-cta {
    position: fixed;
    right: calc(18px + env(safe-area-inset-right));
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 1100;
    transition: opacity .18s ease, transform .18s ease;
}

.floating-cta.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none
}

.floating-cta .btn {
    background: #25d366;
    box-shadow: 0 6px 24px rgba(37, 211, 102, .4);
    border-radius: 999px;
    padding: .75rem 1.3rem;
    font-size: .95rem;
    gap: .6rem;
}

.floating-cta .btn:hover {
    background: #1ebe5a;
    filter: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, .5);
}

.floating-cta .btn i {
    font-size: 1.2rem;
}

/* En móvil, reserva algo de aire bajo contacto para no tapar el botón Enviar */
@media (max-width:640px) {
    #contacto .container {
        padding-bottom: calc(var(--cta-h) + 28px)
    }

    .social {
        gap: 12px
    }

    .social a {
        width: 44px;
        height: 44px;
        border-radius: 12px
    }
}

/* ===============================
   FEATURES (quiénes somos)
=================================*/
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin: var(--space-5) 0 var(--space-6);
}

.feature {
    text-align: center;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    transition: transform .2s ease;
}

.feature:hover {
    transform: translateY(-4px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(43,168,160,.12), rgba(29,120,114,.12));
    display: grid;
    place-items: center;
    margin: 0 auto var(--space-2);
    font-size: 1.3rem;
    color: var(--primary);
}

.feature strong {
    display: block;
    font-size: .95rem;
    color: var(--text);
    margin-bottom: 6px;
}

.feature p {
    font-size: .88rem;
    margin: 0;
}

@media (max-width: 880px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .features {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   FOOTER REDISEÑADO
=================================*/
footer {
    background: var(--bg-2);
    border-top: 1px solid var(--stroke);
    margin-top: 0;
    padding: 0;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: var(--space-8);
    padding: var(--space-7) 0 var(--space-6);
    border-bottom: 1px solid var(--stroke);
}

.foot-bottom {
    padding: var(--space-4) 0;
    text-align: center;
}

.foot-brand .brand {
    margin-bottom: var(--space-2);
}

.foot-desc {
    font-size: .9rem;
    margin: var(--space-1) 0 var(--space-4);
    max-width: 30ch;
    line-height: 1.55;
}

.foot-heading {
    font-size: .74rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--slate);
    margin: 0 0 var(--space-3);
}

.foot-col nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.foot-col nav a {
    color: var(--muted);
    font-size: .92rem;
    transition: color .15s ease, padding-left .15s ease;
}

.foot-col nav a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.social-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .92rem;
    color: var(--muted);
    font-weight: 600;
    transition: color .15s ease, padding-left .15s ease;
}

.social-link i {
    width: 18px;
    text-align: center;
}

.social-link:hover { padding-left: 4px; }
.social-link--instagram:hover { color: #e1306c; }
.social-link--facebook:hover  { color: #1877f2; }
.social-link--whatsapp:hover  { color: #25d366; }
.social-link--tiktok:hover    { color: #333; }

@media (max-width: 820px) {
    .foot-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
    }
    .foot-brand {
        grid-column: 1 / -1;
    }
    .foot-desc {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .foot-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
}

/* ===============================
   BOTÓN VOLVER ARRIBA
=================================*/
.back-top {
    position: fixed;
    left: calc(18px + env(safe-area-inset-left));
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 1100;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--text);
    color: #fff;
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 1rem;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

.back-top.visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.back-top:hover {
    background: var(--primary);
}

/* ===============================
   FADE-IN
=================================*/
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s ease, transform .5s ease
}

.fade-in.visible {
    opacity: 1;
    transform: none
}

/* En táctiles, evita que Safari “no pinte” hasta hacer zoom */
@media (hover:none),
(pointer:coarse) {
    .fade-in {
        opacity: 1 !important;
        transform: none !important
    }
}

/* ===============================
   ANCLAS con header sticky
=================================*/
section[id] {
    scroll-margin-top: 84px
}

/* ===============================
   FORM UX (iOS: no zoom al enfocar)
=================================*/
input,
textarea,
select,
button {
    font-size: 16px
}

/* --- EFECTO FLIP 3D --- */

/* El contenedor base */
.product .media.flip-container {
    perspective: 1000px;
    /* Profundidad 3D */
    background: transparent;
    /* Quitamos el fondo gris del contenedor padre */
    cursor: pointer;
    /* Indica que es interactivo */
}

/* La pieza que gira */
.flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    /* Duración del giro */
    transform-style: preserve-3d;
    /* Mantiene el 3D en los hijos */
}

/* ACCIÓN DE GIRO:
   1. Al pasar el mouse (:hover)
   2. O si tiene la clase .flipped (para móvil/JS) 
*/
.product .media:hover .flipper,
.product .media.flipped .flipper {
    transform: rotateY(180deg);
}

/* Configuración común para ambas caras */
.front,
.back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    /* Oculta la parte de atrás de cada cara */
    -webkit-backface-visibility: hidden;
    /* Soporte Safari */

    /* Centrado de imagen y fondo */
    background: var(--bg-2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    /* Heredamos el borde redondeado */
}

/* Ajustes específicos de la cara trasera */
.back {
    transform: rotateY(180deg);
    /* Ya está girada por defecto */
    background: #eef2f6;
    /* Opcional: un color un poco diferente atrás */
}

/* Asegurar que las imágenes se ajusten bien dentro del flip */
.front img,
.back img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 14px 20px rgba(17, 24, 39, .18));
}

/* z-index para badge sobre flip-card 3D (ya definido arriba, solo se agrega aquí) */
.badge {
    z-index: 10;
}

/* ===============================
   MEJORAS VISUALES
=================================*/

/* --- Secciones alternas --- */
.section--alt {
    background: var(--bg-2);
}

/* --- Sección dark (estadísticas) --- */
.section--dark {
    background: linear-gradient(135deg, #111111 0%, #1D7872 100%);
    color: #fff;
}
.section--dark h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
}
.section--dark h2 {
    color: #fff;
}
.section--dark .stat {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.15);
    box-shadow: none;
}
.section--dark .stat .num {
    color: #fff;
}
.section--dark .stat i {
    color: rgba(255,255,255,.7);
}
.section--dark .stat p {
    color: rgba(255,255,255,.65);
}

/* --- Hero visual (mockup del producto) --- */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-mockup {
    width: min(72%, 340px);
    max-height: 480px;
    filter: drop-shadow(0 24px 44px rgba(17,17,17,.18));
    transform: rotate(1deg);
    transition: transform .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-mockup:hover {
    transform: rotate(0deg) scale(1.02);
}
.hero-mockup img {
    max-width: 100%;
    max-height: 480px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
}

.hero-badge-float {
    position: absolute;
    left: -10px;
    top: 18%;
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--text);
    box-shadow: 0 8px 24px rgba(17,24,39,.12);
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    animation: float 3s ease-in-out infinite;
}
.hero-badge-float i {
    color: var(--primary);
}
.hero-badge-float--bottom {
    left: auto;
    right: -10px;
    top: auto;
    bottom: 18%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@media (max-width:960px) {
    .hero-visual { display: none; }
}

/* --- Badge "Próximamente" diferenciado --- */
.badge--soon {
    background: linear-gradient(90deg, #64748b, #94a3b8);
}

/* --- Testimonios: avatares y estrellas --- */
.t-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.t-stars {
    display: flex;
    gap: 3px;
    color: #f59e0b;
    font-size: .9rem;
}
.t-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}
.t-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--av-color, var(--primary));
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.t-author strong {
    display: block;
    font-size: .95rem;
    color: var(--text);
}
.t-author p {
    margin: 0;
    font-size: .85rem;
}

/* --- Formulario mejorado --- */
.form {
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow);
}
.input,
textarea {
    font-size: 1rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(43,168,160,.12);
}
.form .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1.05rem;
}

/* CTA Band — reemplazo del form de contacto */
.section--cta {
    background: linear-gradient(135deg, #111111 0%, #1D7872 100%);
    color: #fff;
    padding: var(--space-7) 0;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-band__copy {
    flex: 1;
    min-width: 280px;
}

.cta-band__copy .eyebrow {
    color: #5FC9C0;
    margin-bottom: .8rem;
    display: inline-block;
}

.cta-band__copy h2 {
    color: #ffffff;
    font-family: 'Cormorant Garamond', Georgia, serif;
    margin: 0 0 .5rem;
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.cta-band__copy h2 em {
    color: #5FC9C0;
    font-style: italic;
}

.cta-band__copy .muted {
    color: rgba(255,255,255,.78);
    margin: 0;
    font-size: 1rem;
}

.cta-band .btn--lg {
    padding: 1.1rem 1.8rem;
    font-size: 1.05rem;
    background: #ffffff;
    color: var(--ink);
    flex-shrink: 0;
}

.cta-band .btn--lg:hover {
    background: var(--primary);
    color: #fff;
    filter: none;
}

@media (max-width: 720px) {
    .cta-band {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .cta-band .btn--lg {
        width: 100%;
        justify-content: center;
    }
}

/* Carousel dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.2rem;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.18);
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, transform .2s ease;
}
.carousel-dot:hover { background: rgba(0, 0, 0, 0.35); }
.carousel-dot.active {
    background: #2BA8A0;
    transform: scale(1.25);
}

/* Accesibilidad: etiquetas visualmente ocultas para lectores de pantalla */
.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;
}