/* Home page — ported from "Landing Mora Odontologia v6" on the Claude Design
   canvas (new_design_6/), where every rule lived inline. The values are that
   design's; only the layout is generalised so a variable number of cards,
   steps or schedule rows still fits. */

.home {
    --accent: #2a7b94;
    --accent-dark: #1f6177;
    --highlight: #f7931e;     /* the brand's orange: rules, trust marks */
    --ink: #1f2a2e;
    --body: #4a5a5f;
    --body-soft: #3e4f54;     /* text on the teal cards */
    --muted: #5b6b70;
    --border: #e3eaec;
    --teal-line: #bfe0e5;     /* card borders */
    --divider: #edf1f2;
    --wash: #f6f9f9;          /* the method band */
    --teal: #eaf5f7;          /* cards, the trust band, the planning note */
    --placeholder: #f1f5f6;   /* empty media frames */

    --radius: 10px;
    --section-gap: clamp(72px, 10vw, 104px);

    /* Gilroy is the brand face; Montserrat stands in until the web font
       files are licensed. */
    --font-heading: Gilroy, Montserrat, sans-serif;
    --font-body: "Open Sans", sans-serif;

    font-family: var(--font-body);
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.home *,
.home *::before,
.home *::after { box-sizing: border-box; }

.home a { color: var(--accent); }
.home a:hover { color: var(--accent-dark); }
.home a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Text and media side by side, stacking on narrow screens. */
.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 48px;
    align-items: center;
}

#necesitas, #tratamientos, #planificacion, #ubicacion { scroll-margin-top: 72px; }

/* --- Buttons ------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    gap: 10px;                        /* between the WhatsApp mark and the label */
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn .wa-icon { flex-shrink: 0; }
.home .btn { color: #fff; }
.home .btn:hover { background: var(--accent-dark); color: #fff; }

.btn--sm { font-size: 13.5px; padding: 0 18px; white-space: nowrap; min-height: 46px; }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn--xl { min-height: 56px; padding: 0 30px; font-size: 17px; }

.home .btn--ghost {
    background: #fff;
    border: 1.5px solid var(--accent);
    color: var(--accent);
}
.home .btn--ghost:hover { background: var(--teal); border-color: var(--accent); color: var(--accent-dark); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Header ------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--divider);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.site-header__brand { display: flex; }
.site-header__logo { height: 46px; width: auto; display: block; }
.site-header__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.2;
    color: var(--ink);
}

.site-header__nav { display: flex; align-items: center; gap: 22px; }
.site-header__links {
    display: flex;
    gap: 22px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13.5px;
}
.home .site-header__links a { color: var(--ink); text-decoration: none; }
.home .site-header__links a:hover { color: var(--accent); }

/* On a phone the section links would crowd out the one action that matters. */
@media (max-width: 760px) {
    .site-header__links { display: none; }
    .site-header__logo { height: 34px; }
}
/* Just above the cut-off the links and the button need a little less room. */
@media (max-width: 900px) {
    .site-header__nav, .site-header__links { gap: 16px; }
}
/* As on the campaign pages: on narrow phones the header tightens, then the
   button keeps its words and drops the WhatsApp mark, then it shrinks. */
@media (max-width: 420px) {
    .site-header__inner { gap: 12px; }
    .site-header__logo { height: 26px; }
    .site-header .btn--sm { padding: 0 14px; }
}
@media (max-width: 380px) {
    .site-header .btn--sm .wa-icon { display: none; }
}
@media (max-width: 340px) {
    .site-header__logo { height: 22px; }
    .site-header .btn--sm { padding: 0 10px; font-size: 12px; }
}

/* --- Shared section pieces ---------------------------------------------- */

.section { padding-top: var(--section-gap); }

.eyebrow {
    font: 700 12px/1.4 var(--font-heading);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 20px;
}

.section__heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(28px, 3.8vw, 38px);
    line-height: 1.15;
    margin: 0 0 36px;
    text-wrap: balance;
}
.carousel__head .section__heading { margin: 0; }
.carousel__head .section__intro { margin-top: 8px; }

.section__intro {
    font-size: 17px;
    line-height: 1.6;
    color: var(--body);
    margin: 0;
    max-width: 44ch;
}

/* Photo or video frame. The placeholder keeps the slot when neither exists,
   instead of collapsing the grid. */
.media {
    position: relative;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--placeholder);
    display: grid;
    place-items: center;
}
.media__fill {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.media__placeholder {
    font: 600 11px/1.6 var(--font-body);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
    padding: 0 16px;
}
.media--4x5 { aspect-ratio: 4 / 5; }
.media--16x10 { aspect-ratio: 16 / 10; }
/* Shown whole: the frame shrinks to the media's own shape, centred in its
   column, and never taller than the screen. */
.media--whole { background: none; border-radius: 0; }
.media--whole .media__fill {
    position: static;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(80vh, 760px);
    object-fit: contain;
    border-radius: var(--radius);
}

/* --- Hero --------------------------------------------------------------- */

.hero { padding-top: clamp(40px, 7vw, 64px); }

/* The hero's eyebrow is larger than the method band's, and ruled in orange. */
.hero .eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    line-height: 1.3;
    letter-spacing: .14em;
}
.hero .eyebrow::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: var(--highlight);
    flex-shrink: 0;
}

.hero__headline {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(34px, 5.4vw, 56px);
    line-height: 1.08;
    letter-spacing: -.015em;
    margin: 0 0 22px;
    text-wrap: balance;
}

.hero__intro {
    font-size: 19px;
    line-height: 1.65;
    color: var(--body);
    margin: 0 0 32px;
    max-width: 50ch;
    text-wrap: pretty;
}

.trust {
    list-style: none;
    margin: 44px 0 0;
    padding: 22px 26px;
    background: var(--teal);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 14px 28px;
    font: 700 16.5px/1.35 var(--font-heading);
}
.trust__item { display: flex; gap: 10px; align-items: center; }
.trust__item svg { color: var(--highlight); flex: none; }

/* --- Cards -------------------------------------------------------------- */

.grid { display: grid; gap: 16px; }
.grid--steps { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }

.card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.card--white { background: #fff; padding: 26px; gap: 0; }

.card__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 21px;
    line-height: 1.3;
    margin: 0;
}
.card__text { font-size: 16px; line-height: 1.6; color: var(--body); margin: 0; }
.card__link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

/* "¿Qué necesitas?" — the whole card is the link, on a teal card. */
.home .need {
    min-height: 200px;
    padding: 28px;
    gap: 12px;
    background: var(--teal);
    border: 1.5px solid #40a0b0;
    color: var(--ink);
    text-decoration: none;
    transition: background .2s ease;
}
.home .need:hover { background: #dceff2; color: var(--ink); }
.need__rule { width: 32px; height: 4px; border-radius: 2px; background: var(--highlight); }
.need__title { font-family: var(--font-heading); font-weight: 700; font-size: 21px; line-height: 1.3; text-wrap: balance; }
.need__text { font-size: 16px; color: var(--body-soft); }
.need__link {
    margin-top: auto;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--accent-dark);
}

/* A treatment: its before & after pair on top, each an empty 4:5 frame until
   its photo is uploaded, or one 16:10 main photo of the same height. Two cards
   across on a desktop rather than three, so the photos read at a useful size. */
.treatments .carousel__track { grid-auto-columns: minmax(min(270px, 85%), calc((100% - 16px) / 2)); }
.treatment { padding: 0; gap: 0; border: 1.5px solid var(--teal-line); overflow: hidden; background: #fff; }
/* A linked treatment: its link covers the whole card. */
.treatment--linked { position: relative; transition: border-color .2s ease, box-shadow .2s ease; }
.treatment--linked:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(31, 42, 46, .08); }
.treatment__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.home .treatment__link:focus-visible { outline: none; }
.treatment--linked:has(.treatment__link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.treatment__photos {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2px;
    background: var(--teal-line);
}
.treatment__photos--single { grid-template-columns: minmax(0, 1fr); }
.treatment__photo { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--placeholder); }
.treatment__photos--single .treatment__photo { aspect-ratio: 16 / 10; }
.treatment__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.treatment__tag {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 5px 8px;
    border-radius: 5px;
    background: rgba(31, 42, 46, .8);
    color: #fff;
    font: 700 10.5px/1 Montserrat, sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.treatment__tag--after { background: var(--accent); }
.treatment__body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex: 1; }

.treatment__foot { margin-top: auto; display: grid; gap: 8px; }
.treatment__plan {
    font: 600 14px/1.5 Montserrat, sans-serif;
    margin: 0;
    padding: 12px 14px;
    background: var(--teal);
    border-radius: 8px;
}
.treatment__plan span { color: var(--accent-dark); }

/* --- Method band -------------------------------------------------------- */

.band { margin-top: var(--section-gap); background: var(--wash); }
.band__inner { padding-top: clamp(64px, 9vw, 88px); padding-bottom: clamp(64px, 9vw, 88px); }

.band__heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(30px, 4.4vw, 44px);
    line-height: 1.1;
    margin: 0 0 18px;
    text-wrap: balance;
}
.band__text { font-size: 19px; line-height: 1.65; color: var(--body); margin: 0; max-width: 46ch; }
.band .eyebrow { margin-bottom: 18px; }

.steps { list-style: none; margin: 56px 0 0; padding: 0; }
.steps__number { font: 700 13px/1 Montserrat, sans-serif; color: var(--accent); margin: 0 0 14px; }
.steps .card__title { font-size: 20px; margin-bottom: 8px; }
.steps .card__text { font-size: 16.5px; }

/* --- Evaluation --------------------------------------------------------- */

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__step {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 26px;
    background: #fff;
    border: 1.5px solid var(--teal-line);
    border-top: 4px solid var(--highlight);
    border-radius: var(--radius);
}
.timeline__label {
    font: 700 14px/1 Montserrat, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-dark);
}
.timeline .card__title { font-size: 22px; }
.timeline .card__text { font-size: 16.5px; }

/* --- Visit -------------------------------------------------------------- */

.visit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 40px;
    align-items: start;
}
.visit .section__heading { margin-bottom: 20px; }
.visit__address { font-size: 17px; line-height: 1.6; margin: 0 0 24px; }

.schedule { font-size: 16.5px; margin: 0 0 24px; max-width: 380px; }
.schedule__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--divider);
}
.schedule__row span + span { color: var(--body); }
.schedule__row:last-child { border-bottom: none; }
.schedule__row--closed,
.schedule__row--closed span + span { color: var(--muted); }

.visit__map {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: block;
}

/* --- Closing call to action --------------------------------------------- */

.section--cta { padding-top: clamp(80px, 11vw, 120px); }

.cta {
    text-align: center;
    padding: 72px 24px;
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
}

.cta__heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(30px, 4.4vw, 44px);
    line-height: 1.12;
    margin: 0 0 14px;
    text-wrap: balance;
}
.cta__text {
    font-size: 19px;
    line-height: 1.6;
    color: var(--body);
    margin: 0 auto 32px;
    max-width: 42ch;
}

/* --- Footer ------------------------------------------------------------- */

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    padding-bottom: 48px;
}

.site-footer__logo { height: 26px; width: auto; display: block; }
.site-footer__name { font-family: var(--font-heading); font-weight: 700; font-size: 15px; }

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--body);
}
.site-footer__links a { text-decoration: none; }
