/* ==========================================================================
   Clínica Dental Puerto Naos — Hoja de estilos
   Paleta basada en el logotipo: azul acero + gris, tema náutico
   ========================================================================== */

:root {
  --blue:        #4f9dc4;
  --blue-dark:   #2e6f93;
  --blue-deep:   #1f5573;
  --blue-soft:   #eaf4f9;
  --blue-soft-2: #d6ebf3;
  --ink:         #454a4e;
  --ink-soft:    #6c7378;
  --line:        #e3e9ed;
  --bg:          #ffffff;
  --bg-alt:      #f5fafc;
  --white:       #ffffff;
  --star:        #f4b942;
  --shadow-sm:   0 2px 10px rgba(31, 85, 115, .06);
  --shadow-md:   0 10px 30px rgba(31, 85, 115, .10);
  --shadow-lg:   0 24px 60px rgba(31, 85, 115, .16);
  --radius:      16px;
  --radius-sm:   10px;
  --maxw:        1160px;
  --font-head:   'Poppins', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--blue-deep); line-height: 1.2; font-weight: 600; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(79,157,196,.35); }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(46,111,147,.4); }
.btn--ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: #fff; color: var(--blue-dark); transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--lg { padding: 15px 32px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ===== Barra superior ===== */
.topbar { background: var(--blue-deep); color: #cfe6f1; font-size: .86rem; }
.topbar__inner { display: flex; gap: 26px; align-items: center; padding-block: 9px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item svg { width: 15px; height: 15px; fill: var(--blue); }
.topbar__item a:hover { color: #fff; text-decoration: underline; }
.topbar__hours { margin-left: auto; }

/* ===== Navegación ===== */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.nav.is-scrolled { box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 12px; }
.nav__logo { height: 48px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-family: var(--font-head); font-weight: 500; font-size: .96rem; color: var(--ink); transition: color .2s; }
.nav__links a:not(.nav__cta):hover { color: var(--blue); }
.nav__cta { color: #fff; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 3px; background: var(--blue-deep); border-radius: 3px; transition: .3s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; color: #fff; padding-top: 70px; padding-bottom: 150px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(135deg, #2e6f93 0%, #4f9dc4 55%, #7bbcd8 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 15%, rgba(255,255,255,.22), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(31,85,115,.35), transparent 50%);
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero__eyebrow {
  display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35);
  padding: 6px 15px; border-radius: 999px; font-size: .82rem; font-weight: 600; letter-spacing: .3px;
  margin-bottom: 20px; font-family: var(--font-head);
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; margin-bottom: 20px; }
.hero__lead { font-size: 1.12rem; max-width: 30em; color: rgba(255,255,255,.94); margin-bottom: 30px; }
.hero__lead strong { color: #fff; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero__rating { display: flex; align-items: center; gap: 12px; }
.hero__rating-text { font-size: .95rem; color: rgba(255,255,255,.92); }
.hero__rating-text strong { color: #fff; }
.stars { color: var(--star); letter-spacing: 2px; font-size: 1.05rem; }

.hero__card {
  background: #fff; color: var(--ink); border-radius: var(--radius);
  padding: 32px 30px; box-shadow: var(--shadow-lg);
}
.hero__card-logo { height: 62px; width: auto; margin: 0 auto 22px; }
.hero__card-list { list-style: none; display: grid; gap: 14px; margin-bottom: 22px; }
.hero__card-list li { display: flex; align-items: center; gap: 11px; font-weight: 500; font-size: 1rem; }
.tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-soft);
  color: var(--blue-dark); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem;
}
.hero__card-link { color: var(--blue-dark); font-weight: 600; font-family: var(--font-head); }
.hero__card-link:hover { color: var(--blue); }

.wave-divider { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.wave-divider svg { width: 100%; height: 110px; display: block; }
.wave-divider path { fill: var(--bg); }

/* ===== Barra de confianza ===== */
.trust { background: var(--bg); padding-block: 10px 46px; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust__item {
  text-align: center; background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 22px 16px;
}
.trust__num { display: block; font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--blue); }
.trust__label { font-size: .9rem; color: var(--ink-soft); }

/* ===== Secciones ===== */
.section { padding-block: 84px; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section__eyebrow {
  display: inline-block; color: var(--blue); font-family: var(--font-head); font-weight: 600;
  font-size: .82rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px;
}
.section__head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 14px; }
.section__head p { color: var(--ink-soft); font-size: 1.06rem; }

/* ===== Servicios ===== */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue-soft-2); }
.service__icon {
  width: 58px; height: 58px; border-radius: 14px; background: var(--blue-soft);
  display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 18px;
}
.service h3 { font-size: 1.14rem; margin-bottom: 8px; }
.service p { color: var(--ink-soft); font-size: .95rem; }

/* ===== Nosotros ===== */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: center; }
.about__media { position: relative; }
.about__logo {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 46px 34px; box-shadow: var(--shadow-md);
}
.about__badge {
  position: absolute; bottom: -20px; right: 18px; background: #fff; border-radius: 999px;
  box-shadow: var(--shadow-md); padding: 10px 20px; display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--blue-deep);
}
.about__content h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 6px 0 16px; }
.about__content > p { color: var(--ink-soft); margin-bottom: 22px; font-size: 1.04rem; }
.about__list { list-style: none; display: grid; gap: 13px; margin-bottom: 28px; }
.about__list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }

/* ===== Casos ===== */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); background: #fff; position: relative;
}
.case img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .4s ease; }
.case:hover img { transform: scale(1.05); }
.case figcaption {
  padding: 14px 18px; font-size: .92rem; font-weight: 500; color: var(--blue-deep);
  font-family: var(--font-head);
}
.cases__note { text-align: center; color: var(--ink-soft); font-size: .9rem; margin-top: 22px; font-style: italic; }

/* ===== Opiniones ===== */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative;
}
.review .stars { font-size: 1.1rem; margin-bottom: 14px; display: block; }
.review p { font-size: 1.02rem; color: var(--ink); margin-bottom: 16px; }
.review cite { font-style: normal; font-weight: 600; color: var(--ink-soft); font-size: .92rem; }

/* ===== Contacto ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.info-item__icon {
  flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--blue-soft);
  display: grid; place-items: center;
}
.info-item__icon svg { width: 22px; height: 22px; fill: var(--blue-dark); }
.info-item h3 { font-size: 1.08rem; margin-bottom: 3px; }
.info-item p { color: var(--ink-soft); }
.info-item a:hover { color: var(--blue); }
.contact__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-top: 8px; }
.contact__map iframe { width: 100%; height: 260px; border: 0; display: block; }

.contact__form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-md);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-family: var(--font-head); font-size: .9rem; margin-bottom: 7px; color: var(--blue-deep); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .98rem; color: var(--ink); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft);
}
.field textarea { resize: vertical; }
.form__hint { font-size: .84rem; color: var(--ink-soft); margin-top: 14px; text-align: center; }
.form__hint a { color: var(--blue-dark); font-weight: 600; }
.form__status { font-size: .92rem; margin-top: 12px; text-align: center; font-weight: 600; color: var(--blue-dark); }

/* ===== Footer ===== */
.footer { background: var(--blue-deep); color: #cfe6f1; padding-top: 56px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer__logo { height: 56px; width: auto; background: #fff; border-radius: 10px; padding: 8px 12px; margin-bottom: 16px; }
.footer__col p { color: rgba(255,255,255,.78); font-size: .94rem; }
.footer__col h4 { color: #fff; font-size: 1.02rem; margin-bottom: 14px; }
.footer__col a { display: block; color: rgba(255,255,255,.78); font-size: .94rem; padding: 4px 0; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.15); padding-block: 18px; }
.footer__bar-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .84rem; color: rgba(255,255,255,.65); }

/* ===== Botón flotante ===== */
.fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--blue);
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(46,111,147,.5);
  transition: transform .2s, background .2s;
}
.fab svg { width: 26px; height: 26px; fill: #fff; }
.fab:hover { transform: scale(1.08); background: var(--blue-dark); }

/* ===== Animación de aparición ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-bottom: 120px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .contact { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .cases, .reviews { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .topbar__hours { display: none; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: 14px 22px 22px; gap: 4px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__cta { text-align: center; margin-top: 8px; }
}

@media (max-width: 540px) {
  .services { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1; }
  .footer__bar-inner { flex-direction: column; text-align: center; }
  .topbar__item span { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  * { animation: none !important; }
}
