@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --naranja: #ff4d01;
  --naranja-oscuro: #e04300;
  --azul: #00abff;
  --azul-oscuro: #0089cc;
  --marino: #243673;
  --texto: #4a4a4a;
  --texto-suave: #6b6b6b;
  --gris: #f6f9f9;
  --blanco: #fff;
  --whatsapp: #25d366;
  --radio: 10px;
  --sombra: 0 6px 24px rgba(36, 54, 115, .10);
  --alto-cabecera: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--alto-cabecera); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--blanco); color: var(--texto); font: 400 17px/1.65 "Lato", system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul-oscuro); }
h1, h2, h3 { font-family: "Montserrat", system-ui, sans-serif; color: var(--marino); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
svg { width: 1.4em; height: 1.4em; fill: currentColor; flex: none; }

.contenedor { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--marino); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Cabecera */
.cabecera { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; height: var(--alto-cabecera); gap: 16px; }
.cabecera__logo img { width: 112px; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a { color: var(--texto); text-decoration: none; font-family: "Montserrat", sans-serif; font-weight: 600; font-size: .95rem; }
.menu a:hover { color: var(--naranja); }
.menu .menu__tel { display: inline-flex; align-items: center; gap: 8px; background: var(--naranja); color: #fff; padding: 10px 18px; border-radius: 999px; }
.menu .menu__tel:hover { background: var(--naranja-oscuro); color: #fff; }
.menu .menu__tel svg { width: 1.1em; height: 1.1em; }
.cabecera__menu { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.cabecera__menu span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--marino); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* Portada */
.hero { position: relative; color: #fff; background: #1c2333 url("../img/clinica-badalona.jpg") center / cover no-repeat; padding: clamp(70px, 12vw, 140px) 0 clamp(60px, 9vw, 110px); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 22, 40, .82) 0%, rgba(15, 22, 40, .55) 60%, rgba(15, 22, 40, .35) 100%); }
.hero__texto { position: relative; max-width: 1180px; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero__ante { font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 1.05rem; color: #cfeeff; margin-bottom: .8em; }
.hero__cita { font-family: "Montserrat", sans-serif; font-size: 1.2rem; margin-bottom: 1.4em; }
.hero__nota { max-width: 46ch; margin-top: 1.6em; color: #e6eef6; }

/* Botones */
.botones { display: flex; flex-wrap: wrap; gap: 14px; }
.boton { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: var(--radio); text-decoration: none; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1.05rem; line-height: 1.2; transition: background-color .15s, transform .15s; }
.boton:hover { transform: translateY(-1px); }
.boton small { display: block; font-weight: 600; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
.boton--naranja { background: var(--naranja); color: #fff; }
.boton--naranja:hover { background: var(--naranja-oscuro); }
.boton--whatsapp { background: var(--whatsapp); color: #fff; }
.boton--whatsapp:hover { background: #1fb457; }
.boton--azul { background: var(--azul); color: #fff; }
.boton--azul:hover { background: var(--azul-oscuro); }
.boton--blanco { background: #fff; color: var(--marino); }
.boton--bloque { width: 100%; }

/* Secciones */
.seccion { padding: clamp(60px, 8vw, 100px) 0; }
.seccion--gris { background: var(--gris); }
.seccion--azul { background: var(--marino); color: #dfe6f5; }
.seccion--azul h2, .seccion--azul h3 { color: #fff; }
.antetitulo { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--naranja); margin-bottom: .6em; }
.antetitulo--centro { text-align: center; }
.antetitulo--claro { color: #7fd3ff; }
.titulo-centrado { text-align: center; }
.intro { text-align: center; max-width: 60ch; margin: 0 auto 2.4em; color: var(--texto-suave); }

/* Nosotros */
.nosotros { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; margin-bottom: clamp(60px, 8vw, 90px); }
.visita { background: var(--gris); border-top: 5px solid var(--azul); border-radius: var(--radio); padding: 28px; display: grid; gap: 12px; box-shadow: var(--sombra); }
.visita h3 { font-size: 1.4rem; margin: 0; }
.visita p { margin: 0 0 6px; }
.equipo { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.equipo li { text-align: center; }
.equipo img { border-radius: var(--radio); margin-bottom: 14px; aspect-ratio: 480 / 487; object-fit: cover; width: 100%; }
.equipo h3 { margin: 0 0 4px; font-size: 1.02rem; }
.equipo p { margin: 0; font-size: .92rem; color: var(--texto-suave); }

/* Técnicas */
.tecnicas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tecnicas > li { background: #fff; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); display: flex; flex-direction: column; }
.tecnicas > li > img { aspect-ratio: 678 / 381; object-fit: cover; width: 100%; }
.tecnicas h3 { margin: 20px 22px 8px; text-transform: uppercase; font-size: 1rem; letter-spacing: .02em; }
.tecnicas p { margin: 0 22px 22px; font-size: .97rem; }
.tecnicas h3.kids { display: flex; align-items: center; gap: 8px; }
.tecnicas h3.kids img { height: 1.3em; width: auto; }

/* Clientes */
.clientes__google { width: 200px; margin: 0 auto 18px; }
.resenas { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.resenas li { background: var(--gris); border-radius: var(--radio); padding: 26px; display: flex; flex-direction: column; }
.estrellas { color: #fbbc04; font-size: 1.3rem; letter-spacing: .1em; margin: 0 0 8px; }
.resenas blockquote { margin: 0 0 18px; font-size: 1.05rem; font-style: italic; flex: 1; }
.resenas__autor { display: flex; align-items: center; gap: 12px; margin: 0; font-size: .9rem; color: var(--texto-suave); }
.resenas__autor img { width: 40px; height: 40px; }
.resenas__autor strong { display: block; color: var(--marino); font-size: 1rem; }
.opinion { text-align: center; margin-top: 50px; }
.opinion h3 { font-size: 1.4rem; margin-bottom: .3em; }

/* Contacto */
.contacto { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.contacto__datos { font-style: normal; background: rgba(255, 255, 255, .06); border-radius: var(--radio); padding: 28px; }
.contacto__datos p { color: #fff; font-size: 1.1rem; }
.contacto__tel { margin: 22px 0 0; }
.contacto__tel a { color: #7fd3ff; text-decoration: none; font-weight: 700; }
.contacto__tel a:hover { text-decoration: underline; }

/* Pie */
.pie { background: #18244d; color: #aab6d6; padding: 28px 0; font-size: .9rem; }
.pie__fila { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pie img { width: 90px; background: #fff; border-radius: 6px; padding: 6px; }
.pie p { margin: 0; }

.subir { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--naranja); color: #fff; display: grid; place-items: center; box-shadow: var(--sombra); opacity: 0; pointer-events: none; transition: opacity .2s; }
.subir.visible { opacity: 1; pointer-events: auto; }

/* Móvil y tableta */
@media (max-width: 1024px) {
  .equipo { grid-template-columns: repeat(3, 1fr); }
  .tecnicas, .resenas { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --alto-cabecera: 64px; }
  .cabecera__logo img { width: 92px; }
  .cabecera__menu { display: block; }
  .menu { position: absolute; top: var(--alto-cabecera); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 8px 20px 20px; box-shadow: 0 12px 20px rgba(0, 0, 0, .08); display: none; }
  .menu.abierto { display: flex; }
  .menu a { padding: 14px 0; border-bottom: 1px solid #eef1f3; }
  .menu .menu__tel { margin-top: 14px; justify-content: center; border-bottom: 0; }
  .cabecera__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .cabecera__menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .cabecera__menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nosotros, .contacto { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .contenedor { padding: 0 16px; }
  .equipo { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .tecnicas, .resenas { grid-template-columns: 1fr; }
  .botones .boton { flex: 1 1 100%; }
  .pie__fila { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boton, .subir { transition: none; }
}
