@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #5c3a21;
    --primary-dark: #30180c;
    --sand: #c8baa6;
    --sand-2: #eee5d8;
    --ivory: #fbf7ef;
    --white: #fff;
    --ink: #201208;
    --muted: #786858;
    --line: #e6dac9;
    --success: #2f7a52;
    --success-bg: #e7f3ec;
    --shadow-sm: 0 10px 28px rgba(92,58,33,.07);
    --shadow-md: 0 22px 60px rgba(92,58,33,.12);
    --shadow-lg: 0 36px 90px rgba(92,58,33,.18);
    --r-sm: 10px;
    --r-md: 18px;
    --r-lg: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; background: var(--ivory); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: .5rem; }
.gap-4 { gap: 1rem; }
.text-center { text-align: center; }
.hidden-mobile { display: flex; }

.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid transparent; padding: .72rem 1.12rem; min-height: 42px; font-weight: 800; font-size: .9rem; cursor: pointer; transition: transform .22s ease, background .22s ease, box-shadow .22s ease, color .22s ease; }
.btn-icon { width: 1.05rem; height: 1.05rem; margin-right: .4rem; flex: 0 0 auto; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 16px 34px rgba(92,58,33,.22); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-light, .btn-outline-primary { background: rgba(255,255,255,.78); color: var(--primary); border-color: rgba(92,58,33,.18); }
.btn-light:hover, .btn-outline-primary:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-lg { min-height: 50px; padding-inline: 1.45rem; font-size: .98rem; }

.field { margin-bottom: 1rem; }
.field label { display: block; color: var(--ink); font-weight: 800; font-size: .85rem; margin-bottom: .38rem; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); padding: .74rem .9rem; outline: 0; transition: border .2s, box-shadow .2s; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--sand); box-shadow: 0 0 0 4px rgba(200,186,166,.28); }
.textarea { min-height: 104px; resize: vertical; }
.flash { padding: .85rem 1rem; background: var(--success-bg); color: var(--success); border-radius: var(--r-sm); font-weight: 800; margin-bottom: 1rem; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: var(--ivory); }
.login-wrapper { width: 100%; max-width: 420px; }
.login-brand { justify-content: center; display: flex; color: var(--primary); font-size: 1.8rem; font-weight: 900; margin-bottom: 1.5rem; }
.login-brand svg,
.login-card svg,
.login-wrapper a svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.login-brand svg { width: 32px; height: 32px; stroke-width: 2.5; margin-right: .65rem; }
.login-card .field svg { width: 18px; height: 18px; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: 2rem; }
.login-card h2 { text-align: center; margin-bottom: 1rem; }

.landing-body { background: var(--ivory); overflow-x: hidden; }
.premium-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 64px; display: flex; align-items: center; background: rgba(251,247,239,.88); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(230,218,201,.75); transition: background .18s ease, box-shadow .18s ease; }
.premium-nav.nav-scrolled { background: rgba(255,255,255,.94); box-shadow: var(--shadow-sm); }
.brand-logo { width: 112px; height: auto; object-fit: contain; }
.footer-logo { width: 168px; height: auto; }
.nav-links { align-items: center; }
.nav-links a { padding: .45rem .68rem; color: var(--muted); font-weight: 800; font-size: .9rem; border-radius: 999px; }
.nav-links a:hover, .nav-links a.is-active { color: var(--primary); background: rgba(200,186,166,.18); }

.hero { min-height: 78vh; padding: 84px 0 42px; display: flex; align-items: center; position: relative; isolation: isolate; overflow: hidden; background: var(--ink); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(32,18,8,.88) 0%, rgba(32,18,8,.62) 42%, rgba(32,18,8,.10) 100%), url('/assets/imagenes/implantes-estetica-facial.png') center / cover; transform: scale(1.02); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 32%; z-index: -1; background: linear-gradient(to bottom, transparent, rgba(32,18,8,.42)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 650px) minmax(260px, 380px); gap: 3rem; align-items: end; justify-content: space-between; }
.eyebrow { display: inline-flex; color: var(--primary); text-transform: uppercase; letter-spacing: .13em; font-size: .76rem; font-weight: 900; margin-bottom: .9rem; }
.hero .eyebrow { color: var(--sand); }
.hero h1 { color: #fff; font-size: clamp(2.55rem, 5.2vw, 5rem); line-height: .96; letter-spacing: 0; font-weight: 900; max-width: 760px; margin-bottom: 1rem; }
.hero p { color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.35vw, 1.16rem); line-height: 1.72; max-width: 570px; margin-bottom: 1.6rem; }
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; }
.hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.7rem; max-width: 620px; }
.proof-card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-md); padding: .95rem; backdrop-filter: blur(14px); }
.proof-card strong { display: block; color: #fff; font-size: 1.28rem; font-weight: 900; }
.proof-card span { color: rgba(255,255,255,.72); font-size: .82rem; font-weight: 700; }
.hero-media { align-self: center; }
.hero-card { width: 100%; background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.9); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 1.15rem; backdrop-filter: blur(18px); }
.hero-card img { width: 128px; margin-bottom: .65rem; }
.hero-card strong { display: block; margin-bottom: .35rem; font-size: 1.05rem; }
.hero-card span { display: block; color: var(--muted); font-size: .88rem; line-height: 1.55; margin-bottom: 1rem; }

.section { padding: 5.5rem 0; background: #fff; }
.section.alt { background: var(--ivory); }
.section-head { max-width: 740px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.04; letter-spacing: 0; font-weight: 900; margin-bottom: .9rem; }
.section-head p { color: var(--muted); font-size: 1.04rem; line-height: 1.75; }
.clinic-split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 3rem; align-items: center; }
.image-panel { border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); height: 460px; }
.image-panel img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { display: grid; gap: .85rem; }
.feature-list li { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem; color: var(--muted); font-weight: 650; }
.feature-list strong { color: var(--ink); display: block; margin-bottom: .2rem; }

.service-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.service-card img { width: 100%; height: 235px; object-fit: cover; }
.service-card div { padding: 1.1rem; }
.service-card h3 { margin-bottom: .45rem; }
.service-card p { color: var(--muted); margin: 0; line-height: 1.65; }

.booking-section { padding: 5.5rem 0; background: #fff; }
.booking-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 3rem; align-items: start; }
.booking-copy h2 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.04; letter-spacing: 0; margin-bottom: .9rem; }
.booking-copy p { color: var(--muted); line-height: 1.8; }
.contact-card { display: flex; gap: .9rem; align-items: flex-start; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem; margin-top: .85rem; }
.contact-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.contact-icon svg { width: 20px; height: 20px; display: block; }
.contact-card span { color: var(--muted); }
.maps-link { display: inline-flex; margin-top: .35rem; color: var(--primary); font-weight: 900; border-bottom: 2px solid var(--sand); }
.maps-link:hover { color: var(--primary-dark); border-color: var(--primary); }
.booking-form-wrapper { background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-lg); padding: 1.5rem; }
.disclaimer { color: var(--muted); text-align: center; font-size: .8rem; margin: .8rem 0 0; }

.page-hero { padding: 110px 0 48px; background: linear-gradient(135deg, #fffdf8, #f0e4d2); }
.page-hero h1 { font-size: clamp(2.3rem, 5.5vw, 5.2rem); line-height: 1; letter-spacing: 0; font-weight: 900; max-width: 900px; margin-bottom: 1rem; }
.page-hero p { color: var(--muted); font-size: 1.1rem; line-height: 1.75; max-width: 700px; }

.services-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: #fff; }
.services-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(32,18,8,.88), rgba(32,18,8,.44)), url('/assets/imagenes/estetica-dental.png') center / cover; transform: scale(1.03); }
.services-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 74% 24%, rgba(200,186,166,.34), transparent 34%); }
.services-hero .eyebrow { color: var(--sand); }
.services-hero h1 { color: #fff; }
.services-hero p { color: rgba(255,255,255,.76); margin-top: 2rem; }
.services-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .7fr); gap: 2.5rem; align-items: end; }
.services-overview { padding-top: 4.6rem; }

.services-horizontal { margin-top: 2rem; }
.services-horizontal-viewport { overflow: hidden; width: 100%; }
.services-index { display: flex; gap: 1rem; width: max-content; }
.services-track { will-change: transform; }
.service-tile { position: relative; width: min(34vw, 360px); min-width: 300px; aspect-ratio: 1.42 / 1; border-radius: 24px; overflow: hidden; color: #fff; box-shadow: var(--shadow-sm); isolation: isolate; transform: translateZ(0); }
.service-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(32,18,8,.82), rgba(32,18,8,.18)); }
.service-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .55s ease; }
.service-tile:hover img { transform: scale(1.1); }
.service-tile span { position: absolute; left: 1rem; top: 1rem; font-weight: 900; color: rgba(255,255,255,.72); }
.service-tile strong { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; font-size: 1.05rem; line-height: 1.1; }
.services-progress { height: 4px; width: min(440px, 100%); margin: 1.35rem auto 0; border-radius: 999px; background: rgba(92,58,33,.14); overflow: hidden; }
.services-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left center; background: var(--primary); border-radius: inherit; }
.service-showcase { background: #fff; }
.service-row { position: relative; display: grid; grid-template-columns: .98fr 1.02fr; gap: 3rem; align-items: center; min-height: 78vh; padding: 4rem 0; border-bottom: 1px solid var(--line); }
.service-row:nth-child(even) .service-copy { order: 2; }
.service-row h2 { font-size: clamp(2.1rem, 4.7vw, 5rem); line-height: .98; letter-spacing: 0; margin-bottom: .8rem; }
.service-row p { color: var(--muted); line-height: 1.75; font-size: 1.02rem; max-width: 580px; }
.service-media { position: relative; height: min(560px, 62vh); border-radius: 34px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); clip-path: inset(0 0 0 0 round 34px); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.tag-list span { background: var(--ivory); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: .45rem .65rem; font-weight: 700; font-size: .82rem; }
.service-cta { display: inline-flex; margin-top: 1.1rem; color: var(--primary); font-weight: 900; border-bottom: 2px solid var(--sand); padding-bottom: .18rem; }
.service-cta:hover { color: var(--primary-dark); border-color: var(--primary); }
.center-action { display: flex; justify-content: center; margin-top: 2rem; }

.premium-footer { background: var(--ivory); border-top: 1px solid var(--line); padding: 3rem 0 0; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { margin-bottom: .8rem; }
.footer-col h4 { color: var(--ink); margin-bottom: .75rem; }
.footer-col ul { display: grid; gap: .45rem; }
.footer-col a:hover { color: var(--primary); }
.social-links { display: flex; gap: .6rem; margin-top: .85rem; }
.social-links a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--primary); }
.social-links svg { width: 18px; height: 18px; display: block; }
.schedule-list li, .footer-bottom { display: flex; justify-content: space-between; gap: 1rem; }
.schedule-list li { border-bottom: 1px solid var(--line); padding-bottom: .45rem; }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.2rem 0; flex-wrap: wrap; font-size: .85rem; }

.gsap-reveal, .gsap-card, .service-row { will-change: transform, opacity; }
.js .home-animate .gsap-title,
.js .home-animate .gsap-reveal,
.js .home-animate .gsap-card,
.js .home-animate .gsap-media { opacity: 0; visibility: hidden; transform: translate3d(0, 14px, 0); }
.js .home-animate .gsap-title { transform: translate3d(0, 18px, 0); }
.js .home-animate .gsap-media { transform: translate3d(0, 16px, 0) scale(.985); }
.animations-ready .home-animate .gsap-title,
.animations-ready .home-animate .gsap-reveal,
.animations-ready .home-animate .gsap-card,
.animations-ready .home-animate .gsap-media { visibility: visible; }
.js .clinic-animate .gsap-title,
.js .clinic-animate .gsap-reveal,
.js .clinic-animate .gsap-card { opacity: 0; visibility: hidden; transform: translate3d(0, 14px, 0); }
.js .clinic-animate .gsap-title { transform: translate3d(0, 18px, 0); }
.animations-ready .clinic-animate .gsap-title,
.animations-ready .clinic-animate .gsap-reveal,
.animations-ready .clinic-animate .gsap-card { visibility: visible; }

@media (prefers-reduced-motion: reduce) {
    .js .home-animate .gsap-title,
    .js .home-animate .gsap-reveal,
    .js .home-animate .gsap-card,
    .js .home-animate .gsap-media,
    .js .clinic-animate .gsap-title,
    .js .clinic-animate .gsap-reveal,
    .js .clinic-animate .gsap-card {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

@media (max-width: 980px) {
    .hidden-mobile { display: none !important; }
    .container { width: min(100% - 28px, 720px); }
    .premium-nav { height: 62px; }
    .brand-logo { width: 104px; }
    .hero { min-height: auto; padding-top: 82px; }
    .hero-grid, .clinic-split, .booking-grid, .service-row, .service-row:nth-child(even) { grid-template-columns: 1fr; }
    .service-row:nth-child(even) .service-copy { order: initial; }
    .hero-card { display: none; }
    .hero-proof, .grid-3, .footer-grid { grid-template-columns: 1fr; }
    .services-horizontal-viewport { overflow-x: auto; padding-bottom: .3rem; scrollbar-width: none; }
    .services-horizontal-viewport::-webkit-scrollbar { display: none; }
    .services-index { width: max-content; padding-right: 1rem; }
    .service-tile { width: min(72vw, 340px); min-width: 270px; }
    .services-progress { display: none; }
    .services-hero-grid { grid-template-columns: 1fr; }
    .service-row:nth-child(even) .service-copy { order: initial; }
}

@media (max-width: 620px) {
    .hero h1 { font-size: 2.75rem; }
    .service-tile { width: 78vw; min-width: 250px; border-radius: 20px; }
    .section, .booking-section { padding: 4rem 0; }
    .image-panel, .service-media { height: 300px; }
    .booking-form-wrapper { padding: 1rem; border-radius: 22px; }
}
