/* ==========================================================================
   Clínica Dental Pedro Trujillo · estilos de la web pública
   ========================================================================== */
:root {
  --teal-900: #0b3b38;
  --teal-800: #115e59;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-300: #5eead4;
  --teal-100: #ccfbf1;
  --teal-50: #f0fdfa;
  --ink: #0f172a;
  --texto: #334155;
  --muted: #64748b;
  --linea: #e2e8f0;
  --fondo: #f6f9f8;
  --blanco: #ffffff;
  --estrella: #f59e0b;
  --sombra-suave: 0 2px 6px rgba(15, 23, 42, .04), 0 14px 30px -18px rgba(15, 23, 42, .3);
  --sombra: 0 26px 54px -26px rgba(15, 23, 42, .45);
  --radio: 20px;
  --radio-sm: 12px;
  --radio-pill: 999px;
  --contenedor: 1180px;
  --cabecera-alto: 76px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--blanco);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6rem; letter-spacing: -.015em; }
h1 { font-size: clamp(2.05rem, 1.25rem + 3.2vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.5vw, 2.25rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; border-radius: 6px; }

.contenedor { width: min(100% - 2.4rem, var(--contenedor)); margin-inline: auto; }
.centrado { text-align: center; }
.etiqueta {
  margin: 0 0 .5rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 800;
  color: var(--teal-600);
}
.texto-grande { font-size: 1.06rem; color: var(--texto); }
.vacio { text-align: center; color: var(--muted); }

.salto-contenido { position: absolute; left: -999px; }
.salto-contenido:focus {
  left: 1rem; top: 1rem; background: var(--blanco); padding: .6rem 1rem;
  border-radius: var(--radio-sm); z-index: 100;
}

/* --- Botones --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 2px solid transparent; border-radius: var(--radio-pill);
  padding: .68rem 1.4rem; font-weight: 700; font-size: .97rem; font-family: inherit;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primario { background: var(--teal-600); color: #fff; box-shadow: 0 12px 24px -14px rgba(13, 148, 136, .9); }
.btn-primario:hover { background: var(--teal-700); }
.btn-secundario { background: rgba(255, 255, 255, .9); color: var(--teal-800); border-color: rgba(15, 118, 110, .25); }
.btn-secundario:hover { background: #fff; }
.hero .btn-secundario { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.hero .btn-secundario:hover { background: rgba(255, 255, 255, .16); }
.btn-grande { padding: .9rem 1.9rem; font-size: 1.03rem; }

/* --- Cabecera --- */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, .9);
}
.cabecera-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--cabecera-alto); }
.marca { display: flex; align-items: center; gap: .65rem; font-weight: 800; color: var(--teal-800); }
.marca:hover { text-decoration: none; }
.marca-logo { font-size: 1.7rem; line-height: 1; }
.marca-logo img { height: 42px; width: auto; }
.marca-nombre { font-size: 1.06rem; letter-spacing: -.01em; }
.nav { display: flex; gap: 1.35rem; margin-left: auto; }
.nav a {
  position: relative; color: var(--texto); font-weight: 600; font-size: .94rem; padding: .35rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--teal-600); border-radius: 2px; transition: right .22s ease;
}
.nav a:hover { color: var(--teal-700); text-decoration: none; }
.nav a:hover::after { right: 0; }
.cabecera-acciones { display: flex; align-items: center; gap: .6rem; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--linea); border-radius: 12px;
  font-size: 1.35rem; line-height: 1; padding: .35rem .65rem; cursor: pointer; color: var(--ink);
}
.nav-toggle:hover { background: var(--teal-50); border-color: var(--teal-100); }

/* --- Portada --- */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: linear-gradient(135deg, #0b3b38 0%, var(--teal-700) 48%, var(--teal-500) 100%);
  scroll-margin-top: var(--cabecera-alto);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 90% at 85% 5%, #000 10%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 85% 5%, #000 10%, transparent 72%);
}
.hero-fondo {
  position: absolute; inset: 0; z-index: -1; opacity: 0;
  background-position: center; background-size: cover;
  transition: opacity .45s ease;
}
.hero-fondo[data-imagen] { opacity: 1; }
.hero-fondo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(6, 40, 38, .92) 8%, rgba(13, 148, 136, .62) 62%, rgba(20, 184, 166, .38));
}
.hero-decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-decor span {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, rgba(94, 234, 212, .5), rgba(94, 234, 212, 0) 70%);
}
.hero-decor span:nth-child(1) { width: 340px; height: 340px; top: -110px; right: -60px; }
.hero-decor span:nth-child(2) { width: 240px; height: 240px; bottom: -80px; left: -70px; }
.hero-decor span:nth-child(3) { width: 170px; height: 170px; top: 45%; right: 22%; opacity: .6; }

.hero-inner { position: relative; padding: clamp(3.2rem, 7vw, 6rem) 0 clamp(5rem, 9vw, 7.5rem); max-width: 900px; }
.hero-eslogan {
  display: inline-block; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .32); border-radius: var(--radio-pill);
  padding: .38rem 1.05rem; font-size: .84rem; font-weight: 700; letter-spacing: .02em; margin: 0 0 1.1rem;
}
.hero-titulo { margin: 0 0 .9rem; text-wrap: balance; }
.hero-subtitulo { font-size: clamp(1.03rem, 1rem + .45vw, 1.28rem); color: rgba(255, 255, 255, .92); margin-bottom: 2rem; max-width: 640px; }
.hero-botones { display: flex; gap: .85rem; flex-wrap: wrap; }

.hero-datos {
  list-style: none; margin: 2.8rem 0 0; padding: 1.15rem 1.35rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem 1.6rem;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radio); backdrop-filter: blur(8px);
}
.hero-datos li { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.hero-dato-icono {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 13px; background: rgba(255, 255, 255, .16); font-size: 1.2rem;
}
.hero-dato-texto { display: grid; gap: .1rem; min-width: 0; font-size: .95rem; }
.hero-dato-texto strong {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .14em;
  font-weight: 800; color: rgba(255, 255, 255, .78);
}
.hero-dato-texto a { color: #fff; font-weight: 700; }
.hero-dato-texto a:hover { color: #fff; }

.hero-onda { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-onda svg { display: block; width: 100%; height: clamp(44px, 6vw, 78px); }
.hero-onda path { fill: var(--blanco); }

/* --- Secciones --- */
.seccion { padding: clamp(3.2rem, 6.5vw, 5.6rem) 0; scroll-margin-top: calc(var(--cabecera-alto) + 10px); }
.seccion-alterna { background: var(--fondo); }
.seccion-contacto { background: linear-gradient(180deg, var(--teal-50) 0%, #fff 78%); }

.encabezado { max-width: 700px; margin-bottom: 2.6rem; }
.encabezado.centrado { margin-inline: auto; text-align: center; }
.encabezado.centrado h2 { position: relative; padding-bottom: .85rem; }
.encabezado.centrado h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 60px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-700));
}
.encabezado .etiqueta { margin-bottom: .5rem; }

.dos-columnas {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4.5vw, 3.6rem); align-items: center;
}
.columna-texto h2 { margin-bottom: 1rem; }
.columna-texto .btn { margin-top: 1.6rem; }
.imagen-redondeada {
  width: 100%; border-radius: var(--radio); box-shadow: var(--sombra); object-fit: cover;
  aspect-ratio: 4 / 3; background: var(--teal-100);
}
.lista-puntos { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .7rem; }
.lista-puntos li { position: relative; padding-left: 2rem; color: var(--texto); }
.lista-puntos li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 1.35rem; height: 1.35rem;
  display: grid; place-items: center; border-radius: 50%; font-size: .78rem;
  background: var(--teal-100); color: var(--teal-800); font-weight: 800;
}

/* --- Rejillas y tarjetas --- */
.rejilla { display: grid; gap: 1.5rem; }
.rejilla-servicios { grid-template-columns: repeat(auto-fit, minmax(262px, 1fr)); }
.rejilla-equipo { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rejilla-testimonios { grid-template-columns: repeat(auto-fit, minmax(266px, 1fr)); }
.rejilla-galeria { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }

.tarjeta {
  position: relative; overflow: hidden; height: 100%;
  background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 1.7rem 1.5rem; box-shadow: var(--sombra-suave);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tarjeta::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; opacity: 0;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-700));
  transition: opacity .2s ease;
}
.tarjeta:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: var(--teal-100); }
.tarjeta:hover::before { opacity: 1; }
.tarjeta-icono {
  width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.65rem;
  border-radius: 15px; background: var(--teal-50); border: 1px solid var(--teal-100); margin-bottom: 1.1rem;
}
.tarjeta h3 { margin-bottom: .45rem; }
.tarjeta p:last-child { margin-bottom: 0; }
.tarjeta > p { color: #475569; }
.tarjeta-precio { display: inline-block; margin-top: .9rem; font-weight: 800; color: var(--teal-700); }

/* --- Equipo --- */
.miembro { text-align: center; }
.miembro-foto, .miembro-foto-vacia {
  width: 118px; height: 118px; border-radius: 50%; margin: 0 auto 1.1rem;
  box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--teal-100);
}
.miembro-foto { object-fit: cover; background: var(--teal-100); }
.miembro-foto-vacia {
  display: grid; place-items: center; font-size: 2.3rem; font-weight: 800; color: #fff;
  background: linear-gradient(150deg, var(--teal-500), var(--teal-700));
}
.miembro h3 { margin-bottom: .1rem; }
.miembro-puesto { color: var(--teal-700); font-weight: 700; font-size: .9rem; margin: 0 0 .55rem; }
.miembro p:last-child { color: var(--muted); font-size: .95rem; margin-bottom: 0; }

/* --- Testimonios --- */
.testimonio::after {
  content: "\201C"; position: absolute; top: .1rem; right: 1.1rem;
  font-family: Georgia, "Times New Roman", serif; font-size: 5rem; line-height: 1;
  color: var(--teal-50); pointer-events: none;
}
.testimonio-estrellas { color: var(--estrella); letter-spacing: .12em; margin-bottom: .7rem; font-size: 1.02rem; }
.testimonio-texto { font-style: italic; color: var(--texto); position: relative; }
.testimonio-nombre { font-weight: 800; margin: .9rem 0 0; color: var(--teal-800); }

/* --- Galería --- */
.item-galeria {
  position: relative; margin: 0; border-radius: var(--radio); overflow: hidden; cursor: pointer;
  box-shadow: var(--sombra-suave); background: #0b1220; aspect-ratio: 4 / 3;
}
.item-galeria img, .item-galeria video {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease;
}
.item-galeria::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .25s ease;
  background: linear-gradient(transparent 42%, rgba(2, 6, 23, .78));
}
.item-galeria:hover img, .item-galeria:focus-visible img { transform: scale(1.06); }
.item-galeria:hover::after, .item-galeria:focus-visible::after { opacity: 1; }
.item-galeria .item-pie {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0;
  padding: .9rem 1rem; color: #fff; font-size: .93rem; font-weight: 600;
}
.item-galeria .item-badge {
  position: absolute; top: .65rem; left: .65rem; z-index: 2;
  background: rgba(2, 6, 23, .72); color: #fff; border-radius: var(--radio-pill);
  padding: .18rem .65rem; font-size: .74rem; font-weight: 700;
}

/* --- Contacto --- */
.datos-contacto { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .8rem; }
.datos-contacto li {
  display: flex; align-items: center; gap: .9rem; color: var(--texto);
  padding: .7rem .9rem; background: var(--blanco); border: 1px solid var(--linea);
  border-radius: var(--radio-sm); box-shadow: var(--sombra-suave);
}
.dato-icono {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 11px; background: var(--teal-50); font-size: 1.05rem;
}
.form-contacto {
  background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio);
  padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--sombra);
}
.campo { display: grid; gap: .4rem; margin-bottom: 1.05rem; }
.campo-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.campo label { font-weight: 700; font-size: .9rem; color: var(--texto); }
.campo input, .campo textarea {
  width: 100%; padding: .72rem .9rem; border: 1px solid var(--linea); border-radius: var(--radio-sm);
  font: inherit; color: var(--ink); background: #fbfdfd; transition: border-color .18s ease, box-shadow .18s ease;
}
.campo input::placeholder, .campo textarea::placeholder { color: #94a3b8; }
.campo input:focus, .campo textarea:focus {
  outline: none; border-color: var(--teal-500); background: #fff;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .16);
}
.campo textarea { resize: vertical; min-height: 120px; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-contacto button[type="submit"] { width: 100%; }
.form-estado { margin: .9rem 0 0; font-weight: 700; min-height: 1.25rem; font-size: .95rem; }
.form-estado.ok { color: var(--teal-700); }
.form-estado.error { color: #dc2626; }

/* --- Pie --- */
.pie {
  background: linear-gradient(160deg, #0a3532 0%, var(--teal-800) 100%);
  color: #d1fae5; padding: clamp(2.8rem, 5vw, 3.8rem) 0 1.3rem;
}
.pie-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.2rem; }
.pie-nombre { display: block; color: #fff; font-size: 1.2rem; font-weight: 800; margin-bottom: .5rem; }
.pie p { color: #99f6e4; margin: 0 0 .9rem; }
.pie-titulo {
  color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em;
  font-weight: 800; margin: 0 0 .9rem;
}
.pie-lista { list-style: none; padding: 0; margin: 0 0 1.1rem; display: grid; gap: .55rem; }
.pie-lista li { display: flex; gap: .55rem; align-items: flex-start; color: #99f6e4; }
.pie a { color: #a7f3d0; }
.pie a:hover { color: #fff; }
.pie-redes { display: flex; gap: .6rem; flex-wrap: wrap; }
.pie-redes a {
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radio-pill); padding: .3rem .9rem; font-weight: 600; font-size: .88rem;
}
.pie-redes a:hover { background: rgba(255, 255, 255, .22); text-decoration: none; }
.pie-legal {
  margin-top: 2.2rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .16);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; color: #6ee7b7;
}
.pie-legal-enlace a { color: #99f6e4; }

/* --- Lightbox --- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(2, 6, 23, .92); padding: 1.5rem;
}
.lightbox-contenido img, .lightbox-contenido video {
  max-width: min(92vw, 1100px); max-height: 86vh; border-radius: var(--radio-sm);
}
.lightbox-contenido video { background: #000; }
.lightbox-cerrar {
  position: absolute; top: 1rem; right: 1.2rem; background: rgba(255, 255, 255, .15); color: #fff;
  border: none; border-radius: 50%; width: 46px; height: 46px; font-size: 1.3rem; cursor: pointer;
}
.lightbox-cerrar:hover { background: rgba(255, 255, 255, .32); }

/* --- Botón flotante --- */
.btn-flotante {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  display: inline-flex; align-items: center; gap: .5rem; padding: .78rem 1.25rem;
  border-radius: var(--radio-pill); background: #22c55e; color: #fff; font-weight: 700;
  box-shadow: 0 18px 34px -14px rgba(2, 6, 23, .55); transition: transform .18s ease, background .18s ease;
}
.btn-flotante:hover { transform: translateY(-2px); background: #16a34a; color: #fff; text-decoration: none; }

/* --- Aparición al hacer scroll --- */
.revelar { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.revelar.visible { opacity: 1; transform: none; }

/* --- Responsive --- */
@media (max-width: 1000px) {
  .hero-datos { grid-template-columns: 1fr 1fr; }
  .pie-grid { grid-template-columns: 1.2fr 1fr; }
}
@media (max-width: 900px) {
  .dos-columnas { grid-template-columns: 1fr; }
  .columna-media { order: -1; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--blanco); border-bottom: 1px solid var(--linea); padding: .4rem 1.2rem 1rem;
    display: none; box-shadow: var(--sombra-suave);
  }
  .nav.abierto { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--linea); }
  .nav a::after { display: none; }
  .nav a:last-child { border-bottom: none; }
  .nav-toggle { display: inline-block; }
  .cabecera-inner { position: relative; }
  .cabecera-acciones { margin-left: auto; }
  .btn-cabecera { padding: .55rem 1rem; font-size: .9rem; }
}
@media (max-width: 700px) {
  .hero-datos { grid-template-columns: 1fr; gap: .85rem; padding: 1rem 1.1rem; margin-top: 2.2rem; }
  .hero-inner { padding-bottom: clamp(4rem, 12vw, 6rem); }
  .pie-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}
@media (max-width: 560px) {
  .marca-nombre { font-size: .95rem; line-height: 1.2; }
  .marca-logo { font-size: 1.45rem; }
  .campo-fila { grid-template-columns: 1fr; }
  .hero-botones .btn, .columna-texto .btn { width: 100%; }
  .pie-legal { flex-direction: column; gap: .5rem; }
}
@media (max-width: 420px) {
  .btn-cabecera { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .revelar { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Bloques nuevos: traductor, cookies, WhatsApp, información, proyectos,
   redes sociales, medios y mapa.
   ========================================================================== */

/* --- Cabecera: traductor (solo se muestra tras aceptar las cookies) --- */
.traductor {
  display: flex; align-items: center; gap: .35rem; position: relative;
  background: var(--teal-50); border: 1px solid var(--teal-100);
  border-radius: var(--radio-pill); padding: .16rem .5rem .16rem .6rem;
}
.traductor-label { font-size: .95rem; line-height: 1; }
.traductor-select {
  font: inherit; font-size: .85rem; font-weight: 700; color: var(--teal-800);
  background: transparent; border: none; padding: .18rem .1rem; max-width: 8.8rem; cursor: pointer;
}
.traductor-select:focus { outline: none; }
.traductor-widget { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.btn-cabecera { padding: .58rem 1.15rem; font-size: .92rem; }

/* El traductor de Google añade una barra superior y un globo propio: se ocultan. */
.goog-te-banner-frame, .goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }
#goog-gt-tt { display: none !important; }

/* --- Casillas de verificación --- */
.checkbox { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--texto); cursor: pointer; }
.checkbox input { flex: none; width: 1.05rem; height: 1.05rem; margin-top: .22rem; accent-color: var(--teal-600); }
.checkbox span { line-height: 1.5; }
.checkbox a { font-weight: 700; }

/* --- Botones auxiliares --- */
.btn-whatsapp { background: #25d366; color: #06331c; box-shadow: 0 12px 24px -14px rgba(37, 211, 102, .9); }
.btn-whatsapp:hover { background: #1ea952; color: #fff; }
.pie-btn { margin-top: .5rem; }
.pie-enlaces { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.enlace-boton {
  background: none; border: 0; padding: 0; font: inherit; font-size: .85rem;
  color: #99f6e4; cursor: pointer;
}
.enlace-boton:hover { color: #fff; text-decoration: underline; }

/* --- Información --- */
.informacion-sobre-mi {
  margin: 1.1rem 0 1.5rem; padding-left: 1rem;
  border-left: 3px solid var(--teal-300); color: var(--texto);
}
.ficha {
  display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.1rem; margin: 0;
  padding: 1.1rem 1.25rem; background: var(--blanco); border: 1px solid var(--linea);
  border-radius: var(--radio-sm); box-shadow: var(--sombra-suave);
}
.ficha dt {
  font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--teal-700); align-self: center;
}
.ficha dd { margin: 0; color: var(--texto); }

/* --- Mosaico de medios (información, proyectos y contacto) --- */
.medios-cuadricula {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: .8rem;
}
.medios-cuadricula .item-galeria { border-radius: var(--radio-sm); }

/* --- Proyectos --- */
.proyectos { display: grid; gap: 1.5rem; }
.proyecto { display: grid; gap: .8rem; }
.proyecto h3 { margin-bottom: 0; }
.proyecto-texto { margin: 0; color: var(--muted); }
.proyecto .medios-cuadricula { margin-top: .3rem; }

/* --- Redes sociales --- */
.rejilla-redes { grid-template-columns: repeat(auto-fit, minmax(206px, 1fr)); }
.tarjeta-red { display: grid; justify-items: center; text-align: center; gap: .2rem; color: var(--ink); }
.tarjeta-red:hover { text-decoration: none; }
.red-icono {
  width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: .35rem;
  border-radius: 50%; background: var(--teal-50); color: var(--teal-700);
  font-size: 1.3rem; font-weight: 800;
}
.red-nombre { font-size: 1.02rem; }
.red-usuario { color: var(--teal-700); font-weight: 700; font-size: .9rem; }
.red-descripcion { color: var(--muted); font-size: .92rem; }
.red-facebook .red-icono { background: #e7f0fd; color: #1877f2; }
.red-instagram .red-icono { background: #fdeaf3; color: #d6249f; }
.red-tiktok .red-icono { background: #eef0f3; color: #111827; }
.red-whatsapp .red-icono { background: #e6f9ee; color: #1ea952; }
.red-youtube .red-icono { background: #fdecec; color: #dc2626; }
.red-google .red-icono { background: #eaf1fe; color: #1a73e8; }
.red-topdentistas .red-icono { background: #fff7e6; color: #b45309; }

/* --- Contacto: medios y mapa --- */
.contacto-extra { margin-top: clamp(2.2rem, 4vw, 3.2rem); }
.contacto-extra-titulo { margin: 0 0 1rem; }
.mapa {
  position: relative; margin-top: 1.2rem; min-height: 240px; overflow: hidden;
  background: var(--blanco); border: 1px solid var(--linea);
  border-radius: var(--radio-sm); box-shadow: var(--sombra-suave);
}
.mapa iframe { display: block; width: 100%; height: 340px; border: 0; }
.mapa-aviso { display: grid; justify-items: center; gap: .55rem; text-align: center; padding: 2.2rem 1.4rem; }
.mapa-aviso-titulo { margin: 0; font-weight: 800; color: var(--teal-800); }
.mapa-nota { margin: 0; max-width: 52ch; font-size: .82rem; color: var(--muted); }

/* --- Pre-formulario de WhatsApp --- */
.wa-pre {
  display: grid; gap: 1.2rem; margin-top: clamp(2.2rem, 4vw, 3.2rem);
  background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio);
  padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--sombra);
}
.wa-pre-cabecera h3 { margin-bottom: .35rem; }
.wa-pre-cabecera p { margin: 0; color: var(--muted); }
.wa-pre-pasos { display: grid; gap: .7rem; }
.wa-pre-paso { margin: .5rem 0 0; font-weight: 800; font-size: .95rem; color: var(--teal-800); }
.wa-pre-preguntas { display: flex; flex-wrap: wrap; gap: .5rem; }
.wa-pregunta {
  display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  padding: .45rem .85rem; font-size: .9rem; color: var(--texto);
  background: #fbfdfd; border: 1px solid var(--linea); border-radius: var(--radio-pill);
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.wa-pregunta:hover { border-color: var(--teal-300); }
.wa-pregunta input { accent-color: var(--teal-600); }
.wa-pregunta:has(input:checked) { background: var(--teal-50); border-color: var(--teal-500); color: var(--teal-800); font-weight: 700; }
.wa-pre-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wa-pre-campos .campo { margin-bottom: 0; }
.wa-pre-vista {
  margin: 0; padding: 1rem 1.1rem; white-space: pre-wrap; word-break: break-word;
  font-family: inherit; font-size: .95rem; color: #064e3b;
  background: #ecfdf5; border: 1px dashed var(--teal-300); border-radius: var(--radio-sm);
}
.wa-pre-nota { margin: 0; font-size: .82rem; color: var(--muted); }

/* --- Aviso de cookies --- */
.cookies {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; gap: .9rem;
  padding: 1.1rem 1.2rem calc(1.1rem + env(safe-area-inset-bottom));
  background: var(--blanco); border-top: 1px solid var(--linea);
  box-shadow: 0 -22px 44px -30px rgba(15, 23, 42, .7);
}
.cookies-caja {
  width: min(100%, var(--contenedor)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap;
}
.cookies-texto h2 { margin: 0 0 .3rem; font-size: 1.08rem; }
.cookies-texto p { margin: 0; max-width: 80ch; font-size: .92rem; color: var(--muted); }
.cookies-acciones { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookies-detalle {
  width: min(100%, var(--contenedor)); margin-inline: auto;
  display: grid; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--linea);
}
.cookies-detalle .btn { justify-self: start; }

/* --- Páginas legales (legal.html) --- */
.legal { padding: clamp(2rem, 5vw, 3.6rem) 0 4rem; }
.legal-cabecera {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 1.6rem;
}
.legal-contenido {
  max-width: 82ch; margin: 0 auto; background: var(--blanco);
  border: 1px solid var(--linea); border-radius: var(--radio);
  padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--sombra-suave);
}
.legal-contenido h1 { margin-bottom: .35rem; }
.legal-fecha { color: var(--muted); font-size: .88rem; margin-bottom: 1.4rem; }
.legal-contenido p { color: var(--texto); }
.legal-titular {
  display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem;
  margin: 0 0 1.6rem; padding: 1rem 1.2rem; background: var(--teal-50);
  border: 1px solid var(--teal-100); border-radius: var(--radio-sm);
}
.legal-titular dt { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--teal-700); align-self: center; }
.legal-titular dd { margin: 0; color: var(--texto); }
.legal-titular a { font-weight: 700; }
.legal-aviso { color: var(--muted); font-size: .9rem; margin-top: 2rem; }
.legal-nav { display: flex; gap: .6rem; flex-wrap: wrap; margin: 0 0 1.6rem; }
.legal-nav .activo { background: var(--teal-600); color: #fff; border-color: transparent; }
body.legal-pagina { background: var(--fondo); }

/* --- Responsive de los bloques nuevos --- */
@media (max-width: 900px) {
  .wa-pre-campos { grid-template-columns: 1fr; }
  .traductor { order: -1; }
}
@media (max-width: 700px) {
  .ficha, .legal-titular { grid-template-columns: 1fr; gap: .15rem 1rem; }
  .ficha dt + dd, .legal-titular dt + dd { margin-bottom: .55rem; }
  .cookies-caja { flex-direction: column; align-items: stretch; }
  .cookies-acciones { justify-content: stretch; }
  .cookies-acciones .btn { flex: 1 1 auto; }
  .mapa iframe { height: 280px; }
  .medios-cuadricula { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
}




