/* =========================================
   PÁGINA DE INICIO
   Pensada para todo público y adultos mayores:
   letra grande, alto contraste, botones amplios
   y sin animaciones automáticas.
   ========================================= */
:root {
    --h-teal: #0E7C7E;          /* turquesa oscuro: contraste AA con blanco */
    --h-teal-soft: #E9F7F7;
    --h-pink: #D42A69;          /* rosado de marca, contraste AA con blanco */
    --h-ink: #1D2A38;
    --h-body: #3E4A5A;          /* texto de párrafo, más oscuro que el gris original */
    --h-line: #DDE3E8;
}

/* El tamaño de texto ajustable está en accesibilidad.css */

body.home {
    background: white;
}

.home-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Barra de tamaño de letra ---------- */
.font-tools {
    background: #F5F8FA;
    border-bottom: 1px solid var(--h-line);
}

.font-tools-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 0.95rem;
    color: var(--h-body);
}

.font-tools button {
    min-width: 44px;
    height: 36px;
    border: 1px solid var(--h-line);
    background: white;
    border-radius: 6px;
    font-weight: 700;
    color: var(--h-ink);
    cursor: pointer;
    font-size: 1rem;
}

.font-tools button[data-size="grande"] { font-size: 1.15rem; }
.font-tools button[data-size="muy-grande"] { font-size: 1.3rem; }

.font-tools button[aria-pressed="true"] {
    background: var(--h-teal);
    border-color: var(--h-teal);
    color: white;
}

.font-tools button:focus-visible,
.h-btn:focus-visible,
.h-option:focus-visible,
.h-call:focus-visible,
.hb-card:focus-visible {
    outline: 3px solid #FFB020;
    outline-offset: 3px;
}

/* ---------- Portada ---------- */
.h-hero {
    background: linear-gradient(135deg, #F2FAFA 0%, #FFFFFF 60%);
    padding: 3.5rem 0 4rem;
    overflow: hidden;
}

.h-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
    align-items: center;
}

.h-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--h-line);
    color: var(--h-teal);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.4rem 0.9rem;
    border-radius: 30px;
    margin-bottom: 1.2rem;
}

.h-hero h1 {
    font-size: 3rem;
    line-height: 1.12;
    font-weight: 700;
    color: var(--h-ink);
    margin-bottom: 1.1rem;
    letter-spacing: -0.5px;
}

.h-lead {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--h-body);
    margin-bottom: 2rem;
    max-width: 34rem;
}

.h-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 2rem;
}

.h-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 60px;
    padding: 0 1.8rem;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.h-btn-main {
    background: #1E8E3E;          /* verde */
    color: white;
    box-shadow: 0 10px 22px rgba(30, 142, 62, 0.28);
    transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
}

.h-btn-main:hover,
.h-btn-main:focus-visible {
    background: #E06A00;          /* naranjo al pasar el cursor */
    box-shadow: 0 10px 22px rgba(224, 106, 0, 0.32);
    transform: translateY(-2px);
}

.h-btn-ghost {
    background: white;
    color: var(--h-teal);
    border: 2px solid var(--h-teal);
}

.h-btn-ghost:hover {
    background: var(--h-teal-soft);
}

.h-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.6rem;
}

.h-trust li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--h-ink);
}

.h-trust i {
    color: var(--h-teal);
}

.h-hero-media {
    position: relative;
}

.h-hero-img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    object-position: 65% center;
    border-radius: 24px;
    display: block;
    box-shadow: 0 25px 50px rgba(29, 42, 56, 0.18);
    background: #DDE3E8;
}

.h-hero-card {
    position: absolute;
    left: -28px;
    bottom: 28px;
    background: white;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 14px 30px rgba(29, 42, 56, 0.16);
    max-width: 300px;
    font-size: 0.95rem;
    color: var(--h-body);
}

.h-hero-card strong {
    display: block;
    color: var(--h-ink);
    font-size: 1.02rem;
}

.h-hero-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #FFF1C2;
    color: #8A6100;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

/* ---------- Secciones ---------- */
.h-section {
    padding: 4.5rem 0;
}

.h-section-alt {
    background: #F5F8FA;
}

.h-head {
    text-align: center;
    max-width: 46rem;
    margin: 0 auto 2.8rem;
}

.h-eyebrow {
    display: inline-block;
    color: var(--h-pink);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.h-head h2 {
    font-size: 2.3rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--h-ink);
}

.h-head p {
    font-size: 1.15rem;
    color: var(--h-body);
    margin-top: 0.8rem;
    line-height: 1.6;
}

/* 3 pasos */
.h-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    counter-reset: none;
}

.h-steps li {
    position: relative;
    background: white;
    border: 1px solid var(--h-line);
    border-radius: 18px;
    padding: 2.4rem 1.8rem 2rem;
    text-align: center;
}

.h-step-num {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--h-teal);
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 6px white;
}

.h-step-icon {
    font-size: 2.6rem;
    color: var(--h-teal);
    margin: 0.4rem 0 1rem;
}

.h-steps h3 {
    font-size: 1.35rem;
    color: var(--h-ink);
    margin-bottom: 0.5rem;
}

.h-steps p {
    font-size: 1.1rem;
    color: var(--h-body);
    line-height: 1.55;
}

/* Opciones de entrega */
.h-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.h-option {
    position: relative;
    display: flex;
    flex-direction: column;
    background: white;
    border: 2px solid var(--h-line);
    border-radius: 18px;
    padding: 2rem 1.8rem;
    text-decoration: none;
    color: var(--h-body);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.h-option:hover {
    border-color: var(--h-teal);
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(14, 124, 126, 0.14);
}

.h-option-featured {
    border-color: var(--h-teal);
}

.h-option-tag {
    position: absolute;
    top: -14px;
    right: 20px;
    background: var(--h-pink);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.h-option-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--h-teal-soft);
    color: var(--h-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1.2rem;
}

.h-option h3 {
    font-size: 1.35rem;
    line-height: 1.3;
    color: var(--h-ink);
    margin-bottom: 0.8rem;
}

.h-option p {
    font-size: 1.08rem;
    line-height: 1.5;
    margin-bottom: 0.4rem;
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.h-option p i {
    color: var(--h-teal);
    width: 18px;
    text-align: center;
}

.h-option-cta {
    margin-top: auto;
    padding-top: 1.2rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--h-teal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.h-option:hover .h-option-cta i {
    transform: translateX(4px);
}

.h-option-cta i {
    transition: transform 0.2s;
}

/* Beneficios */
.h-benefits {
    background: var(--h-ink);
    padding: 2.4rem 0;
}

.h-benefits-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.h-benefit {
    display: flex;
    align-items: center;
    gap: 14px;
}

.h-benefit span {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: var(--h-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.h-benefit strong {
    color: white;
    font-size: 1.02rem;
    line-height: 1.35;
    font-weight: 600;
}

/* Opiniones */
.ht-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.ht-card {
    position: relative;
    margin: 0;
    background: white;
    border: 1px solid var(--h-line);
    border-radius: 18px;
    padding: 2.2rem 2.2rem 1.8rem;
    display: flex;
    flex-direction: column;
}

.ht-mark {
    font-size: 2rem;
    color: #B9E4E5;
    margin-bottom: 0.8rem;
}

.ht-card blockquote {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--h-ink);
}

.ht-card figcaption {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ht-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--h-teal);
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ht-card figcaption strong {
    display: block;
    color: var(--h-ink);
    font-size: 1.1rem;
}

.ht-stars {
    color: #E5A800;
    font-size: 0.9rem;
    display: inline-flex;
    gap: 2px;
    margin-right: 8px;
}

.ht-card small {
    color: var(--h-body);
    font-size: 0.95rem;
}

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

.hc-card {
    position: relative;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: #DDE3E8;
}

.hc-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hc-logo {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    height: 74px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.hc-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Ayuda */
.h-help {
    background: linear-gradient(135deg, var(--h-teal) 0%, #129B9E 100%);
    color: white;
    padding: 3.2rem 0;
}

.h-help-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}

.h-help h2 {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 0.4rem;
}

.h-help p {
    font-size: 1.2rem;
    opacity: 0.95;
}

.h-help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.h-call {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    color: var(--h-ink);
    text-decoration: none;
    border-radius: 12px;
    padding: 0.9rem 1.4rem;
    font-size: 1.3rem;
    font-weight: 800;
    min-height: 64px;
    transition: transform 0.2s;
}

.h-call:hover {
    transform: translateY(-2px);
}

.h-call i {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--h-teal-soft);
    color: var(--h-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.h-call small {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--h-body);
}

/* Blog */
.hb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.hb-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--h-ink);
}

.hb-img {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 330 / 208;
    background: var(--h-teal-soft);
    margin-bottom: 0.9rem;
}

.hb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.hb-card:hover .hb-img img {
    transform: scale(1.04);
}

.hb-date {
    font-size: 0.9rem;
    color: var(--h-body);
    margin-bottom: 0.3rem;
}

.hb-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.6rem;
}

.hb-more {
    margin-top: auto;
    color: var(--h-teal);
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ---------- Nuestro laboratorio ---------- */
.h-lab {
    background: linear-gradient(180deg, #FFFFFF 0%, #F2FAFA 100%);
}

.h-lab-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
    align-items: center;
}

.h-lab-text h2 {
    font-size: 2.3rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--h-ink);
    margin: 0.3rem 0 1rem;
}

.h-lab-text > p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--h-body);
    margin-bottom: 1.6rem;
}

.h-lab-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 2rem;
}

.h-lab-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    font-size: 1.08rem;
    line-height: 1.5;
    color: var(--h-body);
}

.h-lab-list strong {
    display: block;
    color: var(--h-ink);
    font-size: 1.15rem;
}

.h-lab-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--h-teal-soft);
    color: var(--h-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.h-lab-mosaic {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 16px;
}

.h-lab-mosaic figure {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #DDE3E8;
    box-shadow: 0 16px 34px rgba(29, 42, 56, 0.12);
}

.h-lab-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s;
}

.h-lab-mosaic figure:hover img {
    transform: scale(1.05);
}

.h-lab-tall {
    grid-row: 1 / span 2;
}

.h-lab-tall img {
    object-position: 82% center;
}

.h-lab-stat {
    position: absolute;
    left: -24px;
    bottom: -22px;
    background: var(--h-pink);
    color: white;
    border-radius: 16px;
    padding: 1rem 1.3rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 14px 28px rgba(212, 42, 105, 0.3);
}

.h-lab-stat strong {
    font-size: 2.2rem;
    line-height: 1;
}

.h-lab-stat span {
    font-size: 0.95rem;
    line-height: 1.3;
    font-weight: 600;
}

@media (max-width: 900px) {
    .h-lab-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .h-lab-mosaic {
        order: -1;
        grid-template-rows: 170px 170px;
        margin-bottom: 20px;
    }

    .h-lab-stat {
        left: 12px;
    }
}

@media (max-width: 600px) {
    .h-lab-text h2 {
        font-size: 1.8rem;
    }

    .h-lab-mosaic {
        grid-template-rows: 130px 130px;
        gap: 10px;
    }

    .h-lab-mosaic figure {
        border-radius: 14px;
    }

    .h-lab-stat strong {
        font-size: 1.7rem;
    }
}

/* Sin animaciones si la persona lo prefiere */
@media (prefers-reduced-motion: reduce) {
    .home *,
    .home *::before,
    .home *::after {
        transition: none !important;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .h-benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 24px;
    }

    .hb-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .h-hero-grid,
    .h-help-grid {
        grid-template-columns: 1fr;
    }

    .h-hero h1 {
        font-size: 2.4rem;
    }

    .h-hero-img {
        height: 300px;
    }

    .h-hero-card {
        left: 16px;
        bottom: -20px;
    }

    .h-hero-media {
        margin-bottom: 20px;
    }

    .h-steps,
    .h-options {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .h-options {
        gap: 24px;
    }

    .hc-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .font-tools-inner {
        justify-content: center;
    }

    .h-hero {
        padding: 2rem 0 3rem;
    }

    .h-hero h1 {
        font-size: 2rem;
    }

    .h-lead {
        font-size: 1.15rem;
    }

    .h-btn {
        width: 100%;
    }

    .h-section {
        padding: 3.2rem 0;
    }

    .h-head h2 {
        font-size: 1.8rem;
    }

    .h-benefits-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hc-grid,
    .hb-grid,
    .ht-grid {
        grid-template-columns: 1fr;
    }

    .ht-card {
        padding: 1.6rem;
    }

    .ht-card blockquote {
        font-size: 1.12rem;
    }

    .h-call {
        width: 100%;
    }
}

/* =========================================
   AJUSTES RESPONSIVOS DE LA PORTADA (celular y tablet)
   ========================================= */
/* Tablet: aprovechar el ancho en vez de apilar todo en una columna */
@media (min-width: 601px) and (max-width: 900px) {
    .h-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    .h-options {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .h-options .h-option-featured {
        grid-column: 1 / -1;
    }
    .ht-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    /* Beneficios y clínicas en 2 columnas: menos desplazamiento */
    .h-benefits-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px 12px;
    }
    .hc-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .h-steps {
        gap: 28px;
    }
}
@media (max-width: 600px) {
    .hc-logo {
        left: 8px;
        right: 8px;
        bottom: 8px;
        height: 46px;
        padding: 6px 8px;
        border-radius: 8px;
    }
}
@media (max-width: 600px) {
    .h-benefit {
        gap: 10px;
    }
    .h-benefit span {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .h-benefit strong {
        font-size: 0.92rem;
    }
}

/* Paso N: etiqueta tipo píldora en vez del círculo con número */
.h-step-num {
    width: auto;
    min-width: 46px;
    height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 1.15rem;
    letter-spacing: .3px;
    white-space: nowrap;
}
