/* Home page — extracted from the "Dentist clinic general landing" v2 prototype.
   Every value here comes from that prototype's inline styles; only the layout
   is generalised so a variable number of services or schedule rows still fits. */

.home {
    --accent: #40a0b0;
    --accent-dark: #2c7f8c;
    --accent-pale: #eaf5f7;
    --tint: #f4fafb;
    --ink: #1f2a2e;
    --body: #4a5a5f;
    --muted: #7a8a8f;
    --muted-soft: #8b9a9e;
    --border: #e6ecee;
    --divider: #eef3f4;

    --font-heading: 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-dark); }
.home a:hover { color: var(--accent); }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 24px;
    border-radius: 999px;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; }

.btn--sm {
    font-size: 13px;
    letter-spacing: .02em;
    padding: 11px 18px;
    white-space: nowrap;
}

.btn--ghost {
    background: none;
    border: 1.5px solid #cfe2e6;
    color: var(--ink);
    font-weight: 600;
    padding: 13px 22px;
}
.btn--ghost:hover { background: none; border-color: var(--accent); color: var(--accent-dark); }

.btn--invert { background: #fff; color: var(--accent-dark); font-size: 16px; padding: 15px 30px; }
.btn--invert:hover { background: var(--accent-pale); color: var(--accent-dark); }

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

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

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

.site-header__brand { display: block; line-height: 0; }
.site-header__logo { height: 26px; 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);
}

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

.section { padding-top: 56px; }

.eyebrow {
    font: 600 12px/1 var(--font-body);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 12px;
}

.section__heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(24px, 4.4vw, 34px);
    margin: 0 0 8px;
}

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

/* Placeholder frame, so a missing image still holds its slot instead of
   collapsing the grid. */
.media {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--accent-pale);
    display: grid;
    place-items: center;
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media span {
    font: 600 11px/1.5 var(--font-body);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #6b9aa3;
    text-align: center;
    padding: 0 12px;
}
.media--4x3 { aspect-ratio: 4 / 3; }
.media--square { aspect-ratio: 1 / 1; max-width: 380px; border-radius: 16px; }

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

.hero { background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); }

.hero__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 36px;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 56px;
}

.hero__headline {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(30px, 6vw, 48px);
    line-height: 1.1;
    letter-spacing: -.01em;
    margin: 0 0 16px;
    text-wrap: balance;
}

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

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { font-size: 13px; color: var(--muted); margin: 18px 0 0; }

/* --- Card grid (services, visit) ---------------------------------------- */

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

.card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    transition: border-color .2s ease;
}
.card:hover { border-color: var(--accent); }

.card__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 19px;
    margin: 0 0 8px;
}
.card__text { font-size: 14.5px; line-height: 1.6; color: var(--body); margin: 0 0 12px; }
.card__link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
}

/* --- Feature band ------------------------------------------------------- */

.panel {
    background: var(--tint);
    border-radius: 20px;
    padding: 32px 24px;
}

.panel--split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    align-items: center;
}

.panel__heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(23px, 4.2vw, 31px);
    line-height: 1.2;
    margin: 0 0 14px;
    text-wrap: balance;
}
.panel__text { font-size: 15.5px; line-height: 1.65; color: var(--body); margin: 0 0 18px; }

.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bullets li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    font-size: 15px;
    line-height: 1.5;
}
.bullets__mark { color: var(--accent); font-weight: 700; }

/* --- Team --------------------------------------------------------------- */

.team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    align-items: center;
}
.team__body { font-size: 15.5px; line-height: 1.7; color: var(--body); }
.team__body p { margin: 0 0 12px; }
.team__body p:last-child { margin-bottom: 0; }

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

.card__address { font-size: 15px; line-height: 1.6; margin: 0 0 4px; }
.card__note { font-size: 13px; color: var(--muted); margin: 0 0 12px; }

.schedule__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
    padding: 8px 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-soft); }

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

.cta {
    background: var(--accent);
    border-radius: 20px;
    padding: 40px 26px;
    text-align: center;
    color: #fff;
}

.cta__heading {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(24px, 4.6vw, 34px);
    line-height: 1.15;
    margin: 0 0 12px;
    text-wrap: balance;
}
.cta__text {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 auto 24px;
    max-width: 46ch;
    color: rgba(255, 255, 255, .9);
}

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

.site-footer { margin-top: 48px; }

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    padding-bottom: 44px;
    border-top: 1px solid var(--border);
}

.site-footer__logo { height: 22px; 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: 14px;
    font-size: 12.5px;
    color: var(--muted);
}
.site-footer__links a { text-decoration: none; }

/* --- Anchors ------------------------------------------------------------ */

#servicios, #visita { scroll-margin-top: 70px; }
