/* ===== Identidad CEAPSI + estética healthtech ===== */
:root {
    --c-primary: #006E96;
    --c-primary-dark: #033d52;
    --c-primary-soft: #E5F5F8;
    --c-bg: #F2FCFE;
    --c-bg-alt: #ffffff;
    --c-text: #0d2a36;
    --c-text-soft: #4d6975;
    --c-border: #e3edf1;
    --c-mint: #5fd8c4;
    --c-green: #19c37d;
    --c-yellow: #ffc857;

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --radius-pill: 999px;

    --shadow-sm: 0 2px 8px rgba(3, 61, 82, 0.06);
    --shadow-md: 0 8px 32px rgba(3, 61, 82, 0.08);
    --shadow-lg: 0 24px 64px rgba(3, 61, 82, 0.12);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@font-face {
    font-family: "Inter Regular";
    src: url("./Inter-Regular.woff") format("woff");
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter Regular", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4 {
    color: var(--c-text);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
}

p { color: var(--c-text-soft); }

.accent { color: var(--c-primary); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-pill);
    transition: all 0.25s var(--ease);
    text-decoration: none;
    white-space: nowrap;
}

.btn--sm { padding: 10px 20px; font-size: 0.9rem; }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--nav { padding: 16px 28px; font-size: 0.9rem; }

.btn--primary {
    background: var(--c-primary);
    color: white;
    box-shadow: 0 8px 24px rgba(0, 110, 150, 0.25);
}

.btn--primary:hover {
    background: var(--c-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 110, 150, 0.35);
}

.btn--ghost {
    background: white;
    color: var(--c-primary);
    border: 1.5px solid var(--c-border);
}

.btn--ghost:hover {
    border-color: var(--c-primary);
    transform: translateY(-2px);
}

.btn--ghost-light {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(8px);
}

.btn--ghost-light:hover {
    background: white;
    color: var(--c-primary);
}

/* ===== Nav ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(242, 252, 254, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.nav__logo img { display: block; }

.nav__links {
    display: flex;
    gap: 32px;
}

.nav__links a {
    font-size: 0.95rem;
    color: var(--c-text-soft);
    font-weight: 500;
    transition: color 0.2s;
}

.nav__links a:hover { color: var(--c-primary); }

/* ===== Section header common ===== */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--c-text-soft);
}

/* ===== Hero ===== */
.hero {
    padding: 64px 24px 96px;
    background:
        radial-gradient(ellipse at top right, rgba(95, 216, 196, 0.15), transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(0, 110, 150, 0.08), transparent 50%),
        var(--c-bg);
    overflow: hidden;
}

.hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-primary);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.hero__pill-dot {
    width: 8px;
    height: 8px;
    background: var(--c-green);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(25, 195, 125, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(25, 195, 125, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(25, 195, 125, 0.1); }
}

.hero__copy h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    margin-bottom: 20px;
}

.hero__h1-accent {
    color: var(--c-primary);
    position: relative;
    white-space: nowrap;
}

.hero__h1-accent::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 12px;
    background: var(--c-mint);
    opacity: 0.3;
    border-radius: var(--radius-pill);
    z-index: -1;
}

.hero__sub {
    font-size: 1.15rem;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero__trust {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero__trust-avatars {
    display: flex;
}

.hero__trust-avatars span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-primary), var(--c-mint));
    border: 2px solid white;
    margin-left: -8px;
    box-shadow: var(--shadow-sm);
}

.hero__trust-avatars span:first-child { margin-left: 0; }
.hero__trust-avatars span:nth-child(2) { background: linear-gradient(135deg, #ffc857, #ff8b5a); }
.hero__trust-avatars span:nth-child(3) { background: linear-gradient(135deg, #7b88ff, #a48cff); }
.hero__trust-avatars span:nth-child(4) { background: linear-gradient(135deg, var(--c-green), var(--c-mint)); }

.hero__trust-stars {
    color: #ffc857;
    font-size: 0.95rem;
    letter-spacing: 2px;
}

.hero__trust-stars strong {
    color: var(--c-text);
    margin-left: 4px;
}

.hero__trust-text {
    font-size: 0.85rem;
    color: var(--c-text-soft);
}

/* ===== Hero Mockup ===== */
.hero__mockup {
    position: relative;
    perspective: 1200px;
}

.mockup {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: rotate(-1deg);
    transition: transform 0.6s var(--ease);
}

.mockup:hover { transform: rotate(0deg); }

.mockup__top {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #f5f8fa;
    border-bottom: 1px solid var(--c-border);
}

.mockup__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e8eef1;
}

.mockup__dot:nth-child(1) { background: #ff6b6b; }
.mockup__dot:nth-child(2) { background: #ffc857; }
.mockup__dot:nth-child(3) { background: var(--c-green); }

.mockup__url {
    margin-left: 12px;
    padding: 4px 12px;
    background: white;
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--c-text-soft);
    flex: 1;
    max-width: 200px;
}

.mockup__body {
    padding: 24px;
    background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
}

.mockup__video {
    aspect-ratio: 4 / 3;
    background:
        radial-gradient(circle at 50% 40%, rgba(255,255,255,0.1), transparent 60%),
        linear-gradient(135deg, #1a4d63, #0d3245);
    border-radius: var(--radius-md);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.mockup__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-mint), var(--c-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.mockup__label {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(0,0,0,0.4);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(8px);
}

.mockup__pip {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 60px;
    height: 80px;
    background: linear-gradient(135deg, #ffc857, #ff8b5a);
    border-radius: 12px;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.mockup__controls {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.mockup__ctrl {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup__ctrl--end { background: #ff5252; }

/* Floaters */
.mockup__floater {
    position: absolute;
    background: white;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 4s ease-in-out infinite;
}

.mockup__floater--time {
    top: 16px;
    left: -40px;
    animation-delay: 0s;
}

.mockup__floater--receta {
    bottom: 60px;
    right: -32px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.floater__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.floater__icon--green {
    background: rgba(25, 195, 125, 0.12);
    color: var(--c-green);
}

.floater__label {
    font-size: 0.7rem;
    color: var(--c-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.floater__value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--c-text);
}

/* ===== Stats ===== */
.stats {
    background: white;
    padding: 48px 24px;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

.stats__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.stat {
    text-align: center;
    position: relative;
}

/* Separador vertical entre stats — centrado en el gap del grid */
.stat + .stat::before {
    content: "";
    position: absolute;
    left: -12px; /* mitad del gap del grid (24px en desktop) */
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 60%;
    border-left: 1px solid #b8cad3;
    background: transparent;
}

.stat__num {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--c-primary);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.stat__label {
    font-size: 0.85rem;
    color: var(--c-text-soft);
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}

/* Stats — colapsa a 2 cols solo en pantallas muy chicas.
   Entre 821px y 1024px se mantiene la línea de 5 (ajustando gap).
   El 5° item queda solo en la última fila → grid-column span = todas */
@media (max-width: 1024px) and (min-width: 821px) {
    .stats__inner { gap: 18px; }
}

@media (max-width: 820px) {
    .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 64px 32px; }
    .stat + .stat::before { left: -16px; height: 70%; }
    .stat:nth-child(3)::after,
    .stat:nth-child(4)::after,
    .stat:nth-child(5)::after {
        content: "";
        position: absolute;
        top: -32px;
        left: 15%;
        right: 15%;
        height: 0;
        border-top: 1px solid #b8cad3;
        background: transparent;
    }
    .stat:nth-child(3)::before,
    .stat:nth-child(5)::before { display: none; }
    /* El 5° item ocupa las 2 columnas y se centra a sí mismo a la mitad del ancho */
    .stat:nth-child(5) {
        grid-column: 1 / -1;
        justify-self: center;
        width: 50%;
    }
    /* La línea horizontal del 5° item: como el item ya está al 50% del ancho del grid y centrado, su ::after
       (left:15%, right:15%) queda visualmente del 25% al 75% del ancho total — centrada */
}

/* ===== How ===== */
.how {
    padding: 96px 24px;
}

.how__inner { max-width: 1200px; margin: 0 auto; }

.how__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step {
    background: white;
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all 0.3s var(--ease);
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step__num {
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--c-primary-soft);
    line-height: 1;
}

.step__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.step p { font-size: 0.95rem; }

/* ===== Features ===== */
.features {
    padding: 0 24px 96px;
}

.features__inner { max-width: 1200px; margin: 0 auto; }

.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature {
    background: white;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border);
    transition: all 0.3s var(--ease);
}

.feature:hover {
    border-color: var(--c-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature--lg {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
    color: white;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    min-height: 280px;
}

.feature--lg h3, .feature--lg p { color: white; }
.feature--lg p { opacity: 0.85; font-size: 1.05rem; max-width: 420px; }

.feature__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature--lg .feature__icon {
    background: rgba(255,255,255,0.15);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 16px;
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature--lg h3 { font-size: 1.5rem; margin-bottom: 12px; }

.feature p { font-size: 0.9rem; }

/* ===== Specs ===== */
.specs {
    padding: 96px 24px;
    background: white;
}

.specs__inner { max-width: 1200px; margin: 0 auto; }

.specs__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.spec {
    background: var(--c-bg);
    border: 1.5px solid transparent;
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    transition: all 0.25s var(--ease);
    font-family: inherit;
    font-size: inherit;
    width: 100%;
    cursor: pointer;
}

.spec:hover {
    border-color: var(--c-primary);
    background: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.spec__icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin: 0 auto 12px;
    display: block;
    transition: transform 0.25s var(--ease);
}

.spec__icon--svg {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-primary);
}

.spec:hover .spec__icon {
    transform: scale(1.08);
}

.spec__name {
    color: var(--c-primary);
}

.spec__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-text);
}

/* ===== Reviews ===== */
.reviews { padding: 96px 24px; }

.reviews__inner { max-width: 1200px; margin: 0 auto; }

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review__stars {
    color: #ffc857;
    letter-spacing: 3px;
    font-size: 0.95rem;
}

.review__text {
    color: var(--c-text);
    font-size: 1rem;
    line-height: 1.7;
    flex: 1;
}

.review__author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--c-border);
}

.review__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-primary), var(--c-mint));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.review__name {
    font-weight: 600;
    color: var(--c-text);
    font-size: 0.95rem;
}

.review__meta {
    font-size: 0.8rem;
    color: var(--c-text-soft);
}

/* ===== FAQ ===== */
.faq {
    padding: 96px 24px;
    background: white;
}

.faq__inner { max-width: 800px; margin: 0 auto; }

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    background: var(--c-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border);
    overflow: hidden;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.faq__item[open] {
    background: white;
    border-color: var(--c-primary);
    box-shadow: var(--shadow-sm);
}

.faq__item summary {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    color: var(--c-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--c-primary);
    transition: transform 0.3s var(--ease);
    line-height: 1;
}

.faq__item[open] summary::after {
    transform: rotate(45deg);
}

/* Wrapper que se anima en altura para apertura/cierre suaves */
.faq__body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.32s var(--ease), opacity 0.25s var(--ease);
    opacity: 0;
}

.faq__item[open] .faq__body {
    opacity: 1;
}

.faq__body p {
    padding: 0 24px 20px;
    color: var(--c-text-soft);
    margin: 0;
}

/* ===== CTA Final ===== */
.cta-final {
    padding: 96px 24px;
    background:
        radial-gradient(ellipse at top right, rgba(95, 216, 196, 0.2), transparent 50%),
        linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
    color: white;
}

.cta-final__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.cta-final h2 {
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.cta-final .accent { color: var(--c-mint); }

.cta-final p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    margin-bottom: 32px;
}

.cta-final__btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-final .btn--primary {
    background: white;
    color: var(--c-primary);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.cta-final .btn--primary:hover {
    background: var(--c-bg);
    color: var(--c-primary-dark);
}

/* ===== Footer ===== */
.footer {
    background: var(--c-primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 64px 24px 24px;
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1.1fr 1.4fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand img {
    filter: brightness(0) invert(1);
    margin-bottom: 16px;
}

.footer__brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    max-width: 320px;
}

.footer__cols {
    display: contents;
}

.footer__contacto a {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer__icon {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer__contacto a:hover .footer__icon {
    color: white;
}

.footer__horarios {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__horarios p {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
}

.footer__horarios p strong {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer__horarios p span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer__centros a {
    display: block;
    margin-bottom: 14px;
    line-height: 1.5;
}

.footer__centros a strong {
    display: block;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.footer__centros a span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
}

.footer__centros a:hover strong { color: var(--c-mint); }

.footer__cols h4 {
    color: white;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.footer__cols a {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer__cols a:hover { color: white; }

.footer__bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
    gap: 12px;
}

/* ===== Quick chips (búsquedas populares) ===== */
.hero__quick {
    margin-bottom: 32px;
}

.hero__quick-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--c-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.hero__quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    background: white;
    color: var(--c-text);
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius-pill);
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.chip:hover {
    border-color: var(--c-primary);
    background: var(--c-primary-soft);
    color: var(--c-primary);
    transform: translateY(-1px);
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.22s var(--ease);
}

.modal[hidden] { display: none !important; }

.modal.modal--open { opacity: 1; }

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 61, 82, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal__panel {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    padding: 56px 36px 40px;
    max-width: 560px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.28s var(--ease);
    max-height: 96vh;
    overflow-y: auto;
}

.modal.modal--open .modal__panel {
    transform: translateY(0) scale(1);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--c-bg);
    color: var(--c-text-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal__close:hover {
    background: var(--c-primary-soft);
    color: var(--c-primary);
}

.modal__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.modal__panel h3 {
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.modal__panel > p {
    color: var(--c-text-soft);
    margin-bottom: 18px;
    font-size: 0.9rem;
}

#form-buscar {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.field { display: block; }

/* Separador entre bloques del formulario */
.field + .field {
    border-top: 1px solid var(--c-border);
    padding-top: 26px;
}

.field__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 5px;
}

.field textarea,
.field input {
    font-family: inherit;
    font-size: 0.9rem;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-bg);
    color: var(--c-text);
    transition: border-color 0.2s, background 0.2s;
    resize: vertical;
}

.field textarea:focus,
.field input:focus {
    outline: none;
    border-color: var(--c-primary);
    background: white;
}

.field textarea::placeholder,
.field input::placeholder {
    color: #93a5ad;
}

.modal__submit {
    width: 100%;
    margin-top: 20px;
}

/* ===== Custom multiselect (días / horarios) ===== */
.select-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.select-group > .custom-multiselect { flex: 1; }

.custom-multiselect {
    position: relative;
    width: 100%;
    font-family: inherit;
}

.custom-multiselect__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-bg);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-size: 0.9rem;
}

.custom-multiselect__trigger:hover {
    border-color: var(--c-primary);
}

.custom-multiselect.open .custom-multiselect__trigger {
    border-color: var(--c-primary);
    background: white;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.custom-multiselect__text {
    font-size: 0.9rem;
    color: var(--c-text);
}

.custom-multiselect__arrow {
    font-size: 0.65rem;
    color: var(--c-text-soft);
    transition: transform 0.25s var(--ease);
}

.custom-multiselect.open .custom-multiselect__arrow {
    transform: rotate(180deg);
}

.custom-multiselect__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1.5px solid var(--c-primary);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    display: none;
    z-index: 50;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
}

.custom-multiselect.open .custom-multiselect__dropdown {
    display: block;
}

.custom-multiselect__option {
    display: flex;
    align-items: center;
    padding: 7px 14px;
    cursor: pointer;
    transition: background 0.15s;
    margin: 0;
}

.custom-multiselect__option:hover {
    background: var(--c-primary-soft);
}

.custom-multiselect__option input[type="checkbox"] {
    display: none;
}

.custom-multiselect__checkbox {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--c-border);
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    background: white;
}

.custom-multiselect__option input[type="checkbox"]:checked + .custom-multiselect__checkbox {
    background: var(--c-primary);
    border-color: var(--c-primary);
}

.custom-multiselect__option input[type="checkbox"]:checked + .custom-multiselect__checkbox::after {
    content: "✓";
    color: white;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
}

.custom-multiselect__label {
    font-size: 0.85rem;
    color: var(--c-text);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; gap: 32px; }
    /* En mobile descomponemos hero__copy para reordenar bloques individualmente */
    .hero__copy { display: contents; }
    .hero__copy .hero__pill { order: 1; align-self: center; }
    .hero__copy h1       { order: 2; text-align: center; }
    .hero__copy .hero__sub  { order: 3; margin-left: auto; margin-right: auto; text-align: center; }
    .hero__copy .hero__cta  { order: 4; justify-content: center; margin-bottom: 0; }
    .hero__copy .hero__trust { order: 5; justify-content: center; margin: 20px 0 24px; }
    .hero__mockup           { order: 6; margin: 16px 0; }
    .hero__copy .hero__quick { order: 7; text-align: center; margin: 0; }
    .hero__quick-chips      { justify-content: center; }
    .hero__h1-accent { white-space: normal; }

    /* Stats — el quiebre a 2 cols vive en su propio media query (más abajo) para que
       en desktop entre 1024-1280px se sigan viendo los 5 en una sola línea */
    .how__grid { grid-template-columns: 1fr; }
    .features__grid { grid-template-columns: repeat(2, 1fr); }
    .feature--lg { grid-column: span 2; grid-row: auto; min-height: auto; }
    .specs__grid { grid-template-columns: repeat(4, 1fr); }
    .reviews__grid { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; gap: 40px; }
    .nav__links { display: none; }
}

@media (max-width: 640px) {
    .hero { padding: 40px 20px 64px; }
    .hero__copy h1 { font-size: 2.25rem; }
    .features__grid { grid-template-columns: 1fr; }
    .feature--lg { grid-column: span 1; }
    .specs__grid { grid-template-columns: repeat(2, 1fr); }
    .how, .reviews, .faq, .specs, .cta-final { padding: 64px 20px; }
    .section-header { margin-bottom: 40px; }
    .mockup__floater--time { left: -8px; top: -16px; padding: 10px 14px; }
    .mockup__floater--receta { right: -8px; bottom: 32px; padding: 10px 14px; }
    .footer__cols { grid-template-columns: 1fr; gap: 28px; }
    .footer__bottom { flex-direction: column; text-align: center; }
    .modal { padding: 16px; }
    .modal__panel { padding: 32px 24px 24px; border-radius: var(--radius-md); }
    .hero__quick-chips { justify-content: center; }
}

@media (max-width: 1024px) {
    .hero__quick-chips { justify-content: center; }
}
