/* =========================================================
   Web Veterinaria Castración — castracionperrosmadrid.es
   Paleta: Verde azulado (teal) y blanco, con modo Claro/Oscuro
   ========================================================= */

:root {
  --teal-900: #0b3b36;
  --teal-800: #0f4d46;
  --teal-700: #14665c;
  --teal-600: #1b8577;
  --teal-500: #229c8c;
  --teal-400: #4db8a8;
  --teal-100: #e3f4f1;
  --teal-50:  #f2faf8;

  --bg: #ffffff;
  --bg-alt: var(--teal-50);
  --surface: #ffffff;
  --text: #163330;
  --text-muted: #52716c;
  --border: #d9ece8;
  --accent: var(--teal-600);
  --accent-strong: var(--teal-700);
  --accent-contrast: #ffffff;
  --shadow: 0 10px 30px rgba(11, 59, 54, 0.08);
  --radius: 16px;
  --whatsapp: #25d366;
  --header-bg: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] {
  --bg: #0b1f1d;
  --bg-alt: #0f2723;
  --surface: #122e2a;
  --text: #eaf6f3;
  --text-muted: #a9c9c3;
  --border: #1d443e;
  --accent: var(--teal-400);
  --accent-strong: var(--teal-400);
  --accent-contrast: #06201c;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(11, 31, 29, 0.85);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Dosis", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.25s ease, color 0.25s ease;
  line-height: 1.68;
  font-weight: 500;
}

h1, h2, h3, h4, .brand, .btn, nav.main-nav a {
  font-family: "Dosis", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
h1, h2, h3, h4 { font-weight: 700; letter-spacing: 0.01em; }

.gradient-text {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="dark"] .gradient-text {
  background: linear-gradient(135deg, var(--teal-400), #7fe0cf);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ---------- Divisores SVG (ola) ---------- */
.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
  margin-top: -2px;
}
.wave-divider svg { display: block; width: 100%; height: 44px; }

img { max-width: 100%; display: block; }
a { color: var(--accent-strong); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1140px;
  margin: 0 auto;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.96rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--accent-strong);
  border-bottom-color: var(--accent-strong);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: transform 0.2s ease;
}
.theme-toggle:hover { transform: scale(1.08); }

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  width: 42px;
  height: 40px;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--teal-800); }
[data-theme="dark"] .btn-primary { color: var(--accent-contrast); }

.btn-secondary {
  background: transparent;
  color: var(--accent-strong);
  border-color: var(--accent-strong);
}
.btn-secondary:hover { background: var(--teal-100); }
[data-theme="dark"] .btn-secondary:hover { background: rgba(77,184,168,0.12); }

.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: linear-gradient(120deg, var(--teal-100), var(--teal-50));
  color: var(--teal-800);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  animation: fade-up 0.6s ease both;
}
[data-theme="dark"] .eyebrow { background: linear-gradient(120deg, rgba(77,184,168,0.22), rgba(77,184,168,0.08)); color: var(--teal-400); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin: 0 0 16px;
  line-height: 1.2;
  color: var(--text);
  animation: fade-up 0.7s ease both;
}

.hero p.lead {
  font-size: 1.14rem;
  color: var(--text-muted);
  margin-bottom: 26px;
  max-width: 46ch;
  animation: fade-up 0.7s ease 0.08s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fade-up 0.7s ease 0.16s both;
}

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fade-up 0.8s ease 0.1s both;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-700));
  opacity: 0.35;
  border-radius: calc(var(--radius) + 10px);
  filter: blur(2px);
}
.hero-media .fa-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: var(--surface);
  color: var(--accent-strong);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-row {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.trust-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.trust-item strong { display: block; color: var(--accent-strong); font-size: 1.05rem; margin-bottom: 4px; }
.trust-item span { color: var(--text-muted); font-size: 0.86rem; }
.trust-item i { color: var(--accent-strong); font-size: 1.3rem; margin-bottom: 8px; display: block; }

/* ---------- Sections ---------- */
section { padding: 58px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin: 0 0 14px;
  position: relative;
  display: inline-block;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-600), var(--teal-400));
}
.section-head p { color: var(--text-muted); margin: 0; }

/* ---------- Cards / Servicios ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(11, 59, 54, 0.14);
  border-color: var(--teal-400);
}
[data-theme="dark"] .card:hover { box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45); }
.card img { width: 100%; height: 190px; object-fit: cover; }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card-body h3 { margin: 0; font-size: 1.12rem; }
.card-body p { margin: 0; color: var(--text-muted); font-size: 0.95rem; flex: 1; }
.card-body .price-tag {
  align-self: flex-start;
  background: var(--teal-100);
  color: var(--teal-800);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 999px;
}
[data-theme="dark"] .card-body .price-tag { background: rgba(77,184,168,0.15); color: var(--teal-400); }

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--teal-100), var(--teal-50));
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 6px;
  transition: transform 0.25s ease;
}
.card:hover .icon-badge { transform: scale(1.08) rotate(-3deg); }
[data-theme="dark"] .icon-badge { background: linear-gradient(150deg, rgba(77,184,168,0.22), rgba(77,184,168,0.08)); color: var(--teal-400); }

.icon-badge-lg {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-800));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  margin: 0 auto 18px;
  box-shadow: var(--shadow);
}

.species-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.species-hero .emoji-lead { font-size: 2.4rem; display: block; margin-bottom: 6px; }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--accent-strong); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: 0.7rem; margin: 0 6px; }

/* ---------- Testimonios ---------- */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.testimonial p.quote {
  font-style: italic;
  margin: 0 0 16px;
  color: var(--text);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.testimonial-author strong { display: block; font-size: 0.92rem; }
.testimonial-author span { color: var(--text-muted); font-size: 0.82rem; }
.stars { color: #e0a527; margin-bottom: 8px; letter-spacing: 2px; }

/* ---------- CTA banda ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-900));
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-banner h2 { margin: 0 0 10px; font-size: 1.6rem; }
.cta-banner p { margin: 0 0 22px; opacity: 0.9; }
.cta-banner .btn-primary { background: #fff; color: var(--teal-800); }
.cta-banner .btn-primary:hover { background: var(--teal-100); }

/* ---------- Nosotros ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.about-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.about-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-muted); }
.about-list li strong { color: var(--text); }
.check { color: var(--accent-strong); font-weight: 700; }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.contact-info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-info-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.contact-info-list .ic {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--teal-100); color: var(--teal-700);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
[data-theme="dark"] .contact-info-list .ic { background: rgba(77,184,168,0.15); color: var(--teal-400); }
.contact-info-list strong { display: block; font-size: 0.92rem; }
.contact-info-list span, .contact-info-list a { color: var(--text-muted); font-size: 0.92rem; }

.pending {
  color: #b45309;
  font-size: 0.78rem;
  font-weight: 600;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
}
[data-theme="dark"] .pending { background: #3a2a0c; color: #f2c14e; }

form.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}
.field { display: grid; gap: 6px; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(34,156,140,0.15);
}
.form-note { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: linear-gradient(160deg, var(--teal-900), #082622 70%);
  color: #dff3ef;
  padding: 46px 0 22px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 28px;
}
.footer-grid h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand h4 { margin: 0; }
.footer-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.1), 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.25s ease;
}
.footer-brand:hover .footer-logo { transform: rotate(-6deg) scale(1.05); }
.footer-grid p { color: #a9d4cb; font-size: 0.9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: #cdeae4; text-decoration: none; font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #9dc9bf;
}

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(37,211,102,0.45);
  text-decoration: none;
  font-size: 1.7rem;
  animation: pulse-wa 2.4s infinite;
}
.whatsapp-float:hover { transform: scale(1.06); }

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Página legal ---------- */
.legal-content h2 { margin-top: 34px; font-size: 1.2rem; }
.legal-content p, .legal-content li { color: var(--text-muted); }
.legal-hero {
  background: var(--bg-alt);
  padding: 40px 0;
  text-align: center;
}
.legal-hero h1 { margin: 0 0 8px; }
.legal-hero p { color: var(--text-muted); margin: 0; }
.legal-updated { font-size: 0.82rem; color: var(--text-muted); margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-grid { direction: ltr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .brand { font-size: 0.98rem; }
  .brand-mark { width: 32px; height: 32px; font-size: 1rem; }
  .header-actions .btn-primary { display: none; }
  .header-inner { flex-wrap: nowrap; }
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 14px;
    display: none;
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .trust-row, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0; }
  .cta-banner { padding: 28px 20px; }
}

/* =========================================================
   Accesibilidad, idioma y consentimiento de cookies
   ========================================================= */

html { font-size: 107%; }

[data-a11y-contrast="high"] {
  --bg: #ffffff;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --text: #000000;
  --text-muted: #000000;
  --border: #000000;
  --accent: #003d33;
  --accent-strong: #003d33;
  --accent-contrast: #ffffff;
}
[data-theme="dark"][data-a11y-contrast="high"] {
  --bg: #000000;
  --bg-alt: #000000;
  --surface: #000000;
  --text: #ffffff;
  --text-muted: #ffffff;
  --border: #ffffff;
  --accent: #7fe0cf;
  --accent-strong: #7fe0cf;
  --accent-contrast: #000000;
}
[data-a11y-contrast="high"] .card,
[data-a11y-contrast="high"] .testimonial,
[data-a11y-contrast="high"] .contact-info-list li,
[data-a11y-contrast="high"] form.contact-form,
[data-a11y-contrast="high"] .tools-panel,
[data-a11y-contrast="high"] .cookie-modal { border-width: 2px; }

.a11y-underline-links a { text-decoration: underline !important; }

.a11y-reduce-motion *,
.a11y-reduce-motion *::before,
.a11y-reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

/* Respeta también la preferencia de movimiento reducido del sistema operativo */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Foco visible para navegación por teclado */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--accent-strong);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  z-index: 500;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* ---------- Botones flotantes de herramientas (accesibilidad / idioma) ---------- */
.tools-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.tools-fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--accent-strong);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
  position: relative;
}
.tools-fab:hover { transform: scale(1.07); }
[data-theme="dark"] .tools-fab { color: var(--accent-contrast); }

.tools-panel {
  position: absolute;
  bottom: 62px;
  left: 0;
  width: 290px;
  max-width: calc(100vw - 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px;
  display: none;
}
.tools-panel.open { display: block; }
.tools-panel h5 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tools-panel .close-x {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
}
.tools-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text);
}
.tools-row:first-of-type { border-top: none; }
.tools-row button.tools-toggle {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 600;
}
.tools-row button.tools-toggle[aria-pressed="true"] {
  background: var(--accent-strong);
  color: #fff;
  border-color: var(--accent-strong);
}
.tools-fontsize { display: flex; gap: 6px; }
.tools-fontsize button {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}
.tools-reset {
  margin-top: 10px;
  width: 100%;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 7px;
  font-size: 0.8rem;
  cursor: pointer;
}
.tools-panel .lang-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 10px;
}
.lang-list { display: grid; gap: 6px; }
.lang-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: none;
  color: var(--text);
  font-size: 0.88rem;
  cursor: pointer;
}
.lang-list button:hover { background: var(--bg-alt); border-color: var(--border); }

/* Oculta la barra nativa de Google Translate mientras conservamos nuestro propio botón */
.goog-te-banner-frame, .skiptranslate > iframe { display: none !important; }
body { top: 0 !important; }
#google_translate_element { display: none !important; }

/* ---------- Banner de consentimiento de cookies ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  background: var(--teal-900);
  color: #eaf6f3;
  padding: 18px 20px;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.25);
}
.cookie-banner-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner p { margin: 0; font-size: 0.88rem; color: #cdeae4; flex: 1; min-width: 240px; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button {
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.cookie-btn-accept { background: var(--teal-400); color: #06201c; border: none; }
.cookie-btn-reject { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.cookie-btn-config { background: transparent; color: #cdeae4; border: none; text-decoration: underline; }

.cookie-modal-backdrop {
  position: fixed; inset: 0; z-index: 401;
  background: rgba(6,20,18,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.cookie-modal {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  padding: 26px;
  box-shadow: var(--shadow);
  max-height: 86vh;
  overflow-y: auto;
  border: 1px solid var(--border);
}
.cookie-modal h3 { margin: 0 0 6px; }
.cookie-modal p { color: var(--text-muted); font-size: 0.9rem; }
.cookie-cat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.cookie-cat:first-of-type { border-top: none; }
.cookie-cat-info strong { display: block; font-size: 0.92rem; }
.cookie-cat-info span { color: var(--text-muted); font-size: 0.82rem; }
.switch {
  position: relative;
  width: 44px; height: 24px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .slider {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}
.switch .slider::before {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.switch input:checked + .slider { background: var(--accent-strong); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:disabled + .slider { opacity: 0.6; cursor: not-allowed; }
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.cookie-modal-actions .btn { flex: 1; }
.cookie-footer-link {
  background: none;
  border: none;
  color: #cdeae4;
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.cookie-footer-link:hover { color: #fff; text-decoration: underline; }

body.has-cookie-banner .whatsapp-float,
body.has-cookie-banner .tools-float {
  bottom: 100px;
}

/* ---------- Franja de confianza ---------- */
.trust-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.trust-strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
  padding: 0 16px;
}
.trust-strip-item i { color: var(--accent-strong); font-size: 1.1rem; }
.trust-strip-item strong { color: var(--accent-strong); }
.trust-strip-sep { width: 1px; height: 22px; background: var(--border); }

@media (max-width: 680px) {
  .tools-float { bottom: 90px; left: 16px; }
  body.has-cookie-banner .whatsapp-float,
  body.has-cookie-banner .tools-float { bottom: 150px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions button { flex: 1; }
  .trust-strip-sep { display: none; }
  .trust-strip-item { padding: 0; }
}
