/* ============================================================
   Psiquiatría Asunción - Hoja de Estilos Principal
   Versión 2026 - Optimizada para SEO, Accesibilidad y Rendimiento
   ============================================================ */

/* RESET & BASE ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html, body, div, span, ul { margin: 0; padding: 0; border: 0; }
img {
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border-style: none;
  display: block;
}
body {
  background: #fff;
  font-family: 'Quicksand', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #4a4a4a;
  -webkit-font-smoothing: antialiased;
}

/* SKIP LINK (Accessibility WCAG 2.2) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #00acb0;
  color: #fff;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; outline: 3px solid #fff; outline-offset: 2px; }

/* TYPOGRAPHY -------------------------------------------------- */
h1 { font-family: 'Quicksand', sans-serif; font-size: 2rem; color: #008496; font-weight: bold; line-height: 1.2; margin-bottom: 0.5em; }
h2 { font-family: 'Quicksand', sans-serif; font-size: 1.6rem; color: #03acb0; font-weight: normal; line-height: 1.3; margin-bottom: 0.4em; }
h3 { font-family: 'Quicksand', sans-serif; font-size: 1.25rem; color: #03acb0; font-weight: normal; line-height: 1.4; }
h4 { font-family: 'Quicksand', sans-serif; font-size: 1rem; color: #03acb0; font-weight: lighter; }
p, li { font-family: 'Quicksand', sans-serif; font-size: 1rem; color: #6a6a6a; line-height: 1.7; }
a { color: #00acb0; text-decoration: none; }
a:hover { color: #007376; text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid #00acb0; outline-offset: 3px; border-radius: 3px; }

/* LAYOUT ------------------------------------------------------ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignright { float: right; margin-left: 10px; }
.alignleft { float: left; margin-right: 10px; }

/* HEADER ----------------------------------------------------- */
.header {
  width: 100%;
  float: left;
  height: auto;
  min-height: 90px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f5 100%);
  border-bottom: 3px solid #00acb0;
  padding: 12px 0;
}
.logo { width: 280px; height: auto; margin-top: 12px; float: left; margin-right: 60px; }
.logo a {
  display: block;
  text-decoration: none;
  padding-left: 14px;
  border-left: 3px solid #b0b0b0;
  line-height: 1.15;
  transition: opacity 0.2s ease;
}
.logo a:hover { opacity: 0.75; }
.logo .logo-top {
  display: block;
  font-family: 'Quicksand', sans-serif;
  font-size: 1.65rem;
  font-weight: 300;
  color: #00acb0;
  letter-spacing: 0.5px;
}
.logo .logo-bottom {
  display: block;
  font-family: 'Quicksand', sans-serif;
  font-size: 2.15rem;
  font-weight: 700;
  color: #3a3a3a;
  letter-spacing: 0.5px;
  margin-top: -2px;
}
.logo img { width: 100%; height: auto; }
.logo a img:hover { opacity: 0.75; }
.info { display: none; }
.header-mid { float: left; width: auto; min-height: 60px; }
.header-mid button {
  display: none;
  font-size: 22px;
  font-weight: 700;
  outline: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #00acb0;
  min-height: 48px;
  min-width: 48px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}
.header-mid button:hover { background: rgba(0,172,176,0.1); }
.social { float: right; text-align: right; margin-top: 30px; }
.social ul { list-style-type: none; margin: 0; padding: 0; }
.social ul li { display: inline-block; width: 44px; height: 44px; padding: 6px; vertical-align: middle; }
.social ul li a img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.social ul li a img:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(0,172,176,0.2);
}
.header-right { float: right; width: 200px; padding-top: 16px; }
.call-us { color: #696969; font-size: 0.85rem; margin-top: 8px; }
.number a { font-size: 1.5rem; text-decoration: none; line-height: 1.3; color: #00acb0; font-weight: bold; }
.address { color: #696969; font-size: 0.85rem; text-align: center; }

/* NAVIGATION -------------------------------------------------- */
nav#menu { margin-top: 36px; float: left; max-width: 900px; }
nav#menu ul { list-style-type: none; margin: 0; padding: 0; }
nav#menu ul li { display: inline-block; margin: 0 8px; }
nav#menu ul li a {
  font-size: 0.95rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 4px;
  display: inline-block;
  min-height: 44px;
  line-height: 28px;
  letter-spacing: 0.5px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
nav#menu ul li a:hover,
nav#menu ul li a[aria-current="page"] { border-bottom-color: #00acb0; color: #007376; text-decoration: none; }
nav#menu ul li:first-child { margin-left: 0; }
nav#menu ul li:last-child { margin-right: 0; }

/* BANNER ----------------------------------------------------- */
.full_width_banner {
  background: linear-gradient(108deg, #d6edf8 0%, #c4e1f0 55%, #b8d8ed 100%);
  width: 100%;
  height: auto;
  min-height: 380px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  position: relative;
}
.banner-flex {
  display: flex;
  align-items: center;
  gap: 3rem;
  min-height: 380px;
  overflow: visible;
}
.banner-left {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 0;
}
.banner-right {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  margin-right: -16px;
}
.banner-doctor-img {
  height: 380px;
  width: auto;
  object-fit: contain;
  object-position: bottom right;
  display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 13%, black 84%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 13%, black 84%, transparent 100%);
}
h2.dark-gray { color: #666; font-size: 2rem; }
.pt-edu-button {
  display: block; width: 300px; margin: auto; padding: 15px 0;
  border: 3px solid #91b5b6; background: #d3f0f1; border-radius: 20px;
  text-align: center; text-decoration: none; font-size: 1.25rem;
}
.banner {
  float: left;
  width: 100%;
  background: linear-gradient(135deg, #c8ebec 0%, #a8d8da 100%);
  padding: 28px 0;
  border-bottom: 3px solid #00acb0;
}
.banner h1 { color: #005f6b; text-shadow: 0 1px 2px rgba(255,255,255,0.6); }
.banner img { width: 100%; }
.banner-text { font-size: 1.6rem; font-family: 'Quicksand', sans-serif; line-height: 1.3; }
.banner-text span { display: block; color: #03acb0; font-size: 2.8rem; line-height: 1.2; }
a.book-an-appointment-banner {
  background: rgba(255,255,255,.6);
  padding: 14px 32px;
  border: 3px solid #91b5b6;
  border-radius: 24px;
  margin-top: 24px;
  text-decoration: none;
  align-self: flex-start;
  font-weight: bold;
  color: #00acb0;
  font-size: 1.05rem;
  transition: background 0.25s, color 0.25s;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
a.book-an-appointment-banner:hover { background: rgba(145,181,182,.7); color: #fff; text-decoration: none; }

/* SERVICES GRID ---------------------------------------------- */
/* SERVICES HEADING */
.services-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #005f6b;
  margin: 28px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-left: 4px solid #00acb0;
  padding-left: 10px;
}

/* SERVICES GRID */
.five-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0;
}
.service {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 10px;
  background: #f6f6f6;
  border-radius: 8px;
  text-decoration: none;
  transition: box-shadow 0.2s, background 0.2s;
  color: inherit;
}
.service:hover {
  box-shadow: 0 4px 12px rgba(0,172,176,0.15);
  background: #eef9f9;
  text-decoration: none;
}
.service-left { flex-shrink: 0; width: 44px; }
.service-left img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  transition: transform 0.2s ease;
}
.service:hover .service-left img { transform: scale(1.06); }
.service-right { flex: 1; min-width: 0; }
.service-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
  color: #00acb0;
}
.service:hover .service-title { color: #007376; }
.service-text {
  font-size: 0.8rem;
  color: #6a6a6a;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* VER TODOS CTA */
.services-more-cta {
  text-align: center;
  margin-top: 16px;
  padding-bottom: 28px;
  border-bottom: 1px dashed #d2d2d2;
}
.services-more-cta a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #00acb0;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 9px 26px;
  border: 2px solid #00acb0;
  border-radius: 22px;
  transition: background 0.2s, color 0.2s;
}
.services-more-cta a:hover { background: #00acb0; color: #fff; }

/* CONTENT AREA ----------------------------------------------- */
.contact-form { width: 240px; float: left; margin-top: 60px; margin-bottom: 30px; }
.quick-contact { color: #595a5a; font-weight: bold; font-size: 1rem; margin-left: 10px; margin-bottom: 20px; }
form.form input {
  width: 220px; min-height: 48px; background-color: #f1f1f1;
  border: 1px solid #ddd; margin-bottom: 8px; padding: 8px 12px;
  border-radius: 10px; font-size: 16px; transition: border-color 0.2s;
}
form.form input:focus { border-color: #00acb0; outline: none; }
form.form textarea {
  border-radius: 10px; min-height: 80px; width: 220px; padding: 8px 12px;
  background-color: #f1f1f1; border: 1px solid #ddd; margin-bottom: 15px;
  font-size: 16px; resize: vertical; transition: border-color 0.2s;
}
form.form textarea:focus { border-color: #00acb0; outline: none; }
input.Sub-button {
  width: auto !important; padding: 0 20px !important; float: right;
  background-color: #d3f0f1 !important; text-transform: uppercase; cursor: pointer;
  min-height: 44px; border-radius: 8px; font-weight: bold; transition: background 0.2s;
}
input.Sub-button:hover { background-color: #03acb0 !important; color: #fff !important; }
.contant-area { float: left; max-width: 860px; margin-left: 40px; margin-top: 40px; }
.contant-area h1 { font-weight: bold; font-size: 1rem; margin-top: 0; text-transform: uppercase; font-family: 'Open Sans', sans-serif; color: #008496; }
.border-area { width: 480px; float: left; border-bottom: 1px dashed #d2d2d2; margin-top: 60px; margin-bottom: 15px; }
.mid-text { float: left; width: 240px; color: #00acb0; margin-top: 60px; text-align: center; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 15px; }
.left-side-bar { float: left; width: 240px; }
/* Sidebar service items: flexbox for perfect icon+text alignment */
.service-inner {
  background: linear-gradient(to bottom, #f6f6f6 0%, #ffffff 48%, #ffffff 100%);
  border-radius: 8px;
  margin-bottom: 8px;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 8px 10px;
  min-height: 58px;
}
.service-inner:hover { box-shadow: 0 2px 8px rgba(0,172,176,0.12); }
/* Override floats for sidebar: use flex children */
.service-inner .service-left {
  float: none;
  flex: 0 0 50px;
  width: 50px;
  margin-right: 10px;
}
.service-inner .service-left img {
  width: 40px;
  height: 40px;
  max-width: 40px;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-inner .service-left img:hover {
  transform: scale(1.08);
  box-shadow: 0 2px 6px rgba(0,172,176,0.2);
}
.service-right-inner {
  float: none;
  flex: 1;
  width: auto;
  display: flex;
  align-items: center;
}
.service-right-inner a.service-title {
  font-size: 0.9rem;
  display: block;
  vertical-align: middle;
  line-height: 1.3;
  margin: 0;
  padding: 0;
  min-height: auto;
}
.contant-area-inner { width: 68%; float: left; margin-left: 40px; margin-top: 45px; }
.inner-banner { background: url(images/inner-banner.jpg) no-repeat center center; background-size: cover; float: left; width: 100%; }
.inner-banner h1 { float: left; }
a.book-an-appointment {
  float: right; background: rgba(255,255,255,.5); padding: 12px 18px;
  border: 3px solid #91b5b6; border-radius: 20px; margin-top: 25px;
  text-decoration: none; min-height: 48px; display: inline-flex; align-items: center;
  transition: background 0.2s, color 0.2s;
}
a.book-an-appointment:hover { background: rgba(145,181,182,.5); color: #fff; text-decoration: none; }
.left-aligned-list { padding-left: 20px; margin-left: 0; list-style-position: inside; }

/* INNER PAGE LAYOUT ------------------------------------------ */
/* clear: both garantiza que <main> siempre empiece DEBAJO del banner flotante */
main { clear: both; }
.content-wrapper { display: flex; flex-direction: row; gap: 30px; align-items: flex-start; padding-top: 30px; }
.main-content-area { flex: 1; min-width: 0; }
.main-content-area h2 { margin-bottom: 20px; }
.main-content-area h3 { margin-top: 24px; margin-bottom: 12px; }
.main-content-area ul { padding-left: 20px; margin-bottom: 16px; }
.main-content-area ul li { margin-bottom: 6px; }
.map-container { margin-top: 12px; border-radius: 8px; overflow: hidden; }

/* WHATSAPP CTA BUTTON ---------------------------------------- */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #25D366;
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-weight: bold;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37,211,102,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 52px;
  margin: 8px 0;
}
.btn-whatsapp:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
  color: #fff;
  text-decoration: none;
}
.btn-whatsapp::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg');
  background-size: contain;
  background-repeat: no-repeat;
}

/* FOOTER ----------------------------------------------------- */
.footer { margin-top: 60px; padding: 50px 0; float: left; width: 100%; background: linear-gradient(135deg, #03acb0 0%, #00acb0 100%); }
.footer-section { width: 400px; float: left; }
.ofc-address-title { text-align: center; color: #fff; font-size: 1.1rem; font-weight: bold; margin-bottom: 16px; }
.ofc-address-text { color: #fff; text-align: center; font-size: 0.95rem; margin-bottom: 24px; line-height: 1.7; }
.ofc-address-text p, .ofc-address-text li { color: #fff; }
.ofc-hours { text-align: center; font-size: 1rem; color: #fff; }
.ofc-hours span { font-weight: bold; font-size: 0.9rem; }
.footer-logo {
  text-align: center;
  padding: 8px 0 0;
  line-height: 1.15;
}
.footer-logo-top {
  display: block;
  font-family: 'Quicksand', sans-serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.5px;
}
.footer-logo-bottom {
  display: block;
  font-family: 'Quicksand', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.5px;
  margin-top: -2px;
}
.copyright { float: left; width: 400px; font-size: 0.85rem; text-align: right; color: #fff; margin-top: 40px; }
.copyright a { color: #fff; text-decoration: none; }
.foot-logo-list { float: left; }
.foot-logo-list .logos { width: 13%; }

/* ============================================================
   FLOATING CONTAINER: Medallion + WhatsApp
   ============================================================ */
.floating-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 1000;
}

/* MEDALLION -------------------------------------------------- */
.medallion {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe066, #ffc200 60%, #e6a800);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: medalGlow 3s infinite alternate;
  box-shadow: 0 0 14px rgba(255,215,0,0.7), 0 0 28px rgba(255,215,0,0.4);
  z-index: 1001;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
.medallion:hover {
  transform: scale(1.06);
  box-shadow: 0 0 24px rgba(255,215,0,0.9), 0 0 48px rgba(255,215,0,0.5);
}
.medallion::before {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: rgba(255,200,0,0.9);
  border-bottom-color: rgba(255,200,0,0.9);
  animation: spin 6s linear infinite;
}
.line {
  font-size: clamp(9px, 2vmin, 13px);
  font-weight: bold;
  margin: 2px 0;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
  padding: 0 6px;
}
.line-1, .line-3 { font-family: 'Georgia', serif; text-transform: uppercase; letter-spacing: 0.5px; }
.line-2 { font-family: Arial, sans-serif; }

@keyframes medalGlow {
  0%   { box-shadow: 0 0 10px rgba(255,215,0,0.7), 0 0 20px rgba(255,215,0,0.4); }
  100% { box-shadow: 0 0 22px rgba(255,215,0,0.9), 0 0 44px rgba(255,215,0,0.6); }
}
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@media (min-width: 768px) {
  .medallion { width: 176px; height: 176px; }
  .line { font-size: clamp(11px, 2.2vmin, 15px); }
}
@media (max-width: 480px) {
  .medallion { width: 112px; height: 112px; }
  .line { font-size: clamp(8px, 1.8vmin, 11px); }
}

/* WHATSAPP BUTTON ------------------------------------------- */
.floating-whatsapp-button {
  background-color: #25D366;
  color: #fff;
  padding: 0 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
  z-index: 1000;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: bold;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-width: 160px;
  max-width: 280px;
  height: 52px;
  box-sizing: border-box;
  white-space: nowrap;
}
.floating-whatsapp-button:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
}
.floating-whatsapp-button a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
}
.floating-whatsapp-button a:hover { text-decoration: none; }
.floating-whatsapp-button img { width: 26px; height: 26px; flex-shrink: 0; display: inline-block; }

/* MOBILE MENU (max-width: 900px) */
@media (max-width: 900px) {
  nav#menu ul li:first-child img { width: 22px; height: auto; }
  nav#menu ul li { margin: 0 4px; }
  nav#menu ul li a { font-size: 0.85rem; }
  nav#menu { margin-top: 16px; float: none; text-align: center; }
}

/* ============================================================
   DARK MODE
   Activa automáticamente cuando el sistema/browser está en
   modo nocturno (prefers-color-scheme: dark)
   ============================================================ */
@media (prefers-color-scheme: dark) {

  /* --- BASE --- */
  body {
    background: #0d1b2a;
    color: #dce8f2;
  }

  /* --- TIPOGRAFÍA --- */
  h1 { color: #5dd8da; }
  h2 { color: #29c4c7; }
  h3 { color: #29c4c7; }
  h4 { color: #00acb0; }
  h2.dark-gray { color: #b8cfe0; }
  p, li { color: #b8cfe0; }
  a { color: #29c4c7; }
  a:hover { color: #5dd8da; }
  a:focus-visible, button:focus-visible { outline-color: #29c4c7; }

  /* --- HEADER --- */
  .header {
    background: linear-gradient(135deg, #091420 0%, #0d1b2a 100%);
    border-bottom-color: #00acb0;
  }
  .call-us, .address { color: #8ba8bf; }
  .number a { color: #29c4c7; }
  .info span:first-child { color: #29c4c7; }
  .info span:last-child { color: #8ba8bf; }
  .header-mid button { color: #29c4c7; }
  .header-mid button:hover { background: rgba(0,172,176,0.15); }

  /* Logo: ajuste para fondo oscuro */
  .logo a { border-left-color: #4a6a7a; }
  .logo .logo-top { color: #5dd8da; }
  .logo .logo-bottom { color: #d0dce4; }
  .logo img {
    filter: brightness(1.15) drop-shadow(0 0 4px rgba(0,172,176,0.3));
  }

  /* --- NAVEGACIÓN --- */
  nav#menu ul li a { color: #29c4c7; }
  nav#menu ul li a:hover,
  nav#menu ul li a[aria-current="page"] {
    color: #5dd8da;
    border-bottom-color: #29c4c7;
    text-decoration: none;
  }

  /* --- BANNER PÁGINAS INTERNAS (sin imagen) --- */
  .banner {
    background: linear-gradient(135deg, #091420 0%, #0d2238 100%);
    border-bottom-color: #00acb0;
  }
  .banner h1 { color: #5dd8da; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }

  /* --- BANNER HERO (homepage) — desktop dark --- */
  .full_width_banner {
    background: linear-gradient(108deg, #091c2e 0%, #0d2438 55%, #0a1e30 100%);
  }
  .banner-text {
    color: #dce8f2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.85);
  }
  .banner-text span { color: #4dd8da; }
  .banner-doctor-img {
    filter: brightness(0.88) contrast(1.08);
  }
  a.book-an-appointment-banner {
    background: rgba(9, 20, 32, 0.65);
    border-color: #29c4c7;
    color: #29c4c7;
  }
  a.book-an-appointment-banner:hover {
    background: rgba(0, 172, 176, 0.5);
    color: #fff;
  }

  /* --- BANNER INTERIOR (páginas internas) --- */
  .inner-banner { position: relative; }
  .inner-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(9, 20, 32, 0.65);
    pointer-events: none;
  }
  .inner-banner .container { position: relative; z-index: 1; }
  .inner-banner h1 {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
  }
  a.book-an-appointment {
    background: rgba(9, 20, 32, 0.6);
    border-color: #29c4c7;
    color: #29c4c7;
  }
  a.book-an-appointment:hover {
    background: rgba(0, 172, 176, 0.45);
    color: #fff;
  }

  /* --- SERVICIOS HOME (grid) --- */
  .services-heading { color: #4dd8da; border-left-color: #29c4c7; }
  .service {
    background: #132233;
    border: 1px solid #1e3347;
  }
  .service:hover {
    background: #0f2a40;
    box-shadow: 0 4px 18px rgba(0, 172, 176, 0.25);
    border-color: #00acb0;
  }
  .service-title { color: #29c4c7; }
  .service:hover .service-title { color: #5dd8da; }
  .service-text { color: #8ba8bf; }
  .services-more-cta { border-bottom-color: #1e3347; }
  .services-more-cta a { color: #29c4c7; border-color: #29c4c7; }
  .services-more-cta a:hover { background: #29c4c7; color: #091420; }

  /* --- SIDEBAR (páginas internas) --- */
  .service-inner {
    background: #132233;
    border: 1px solid #1e3347;
  }
  .service-inner:hover {
    box-shadow: 0 2px 12px rgba(0, 172, 176, 0.22);
    border-color: #00acb0;
  }

  /* --- ÁREA DE CONTENIDO --- */
  .contant-area h1 { color: #5dd8da; }
  .border-area { border-bottom-color: #1e3347; }
  .contant-area-inner h1,
  .contant-area-inner h2 { color: #5dd8da; }
  .main-content-area h2 { color: #29c4c7; }
  .main-content-area h3 { color: #5dd8da; }
  .main-content-area ul li,
  .main-content-area p { color: #b8cfe0; }
  .left-aligned-list li { color: #b8cfe0; }

  /* --- PÁGINAS DE CONTACTO / INFO --- */
  .contact-info ul li,
  .session-info p,
  .session-details p,
  .session-details ul li,
  .contant-area-inner p,
  .contant-area-inner li { color: #b8cfe0; }
  .contact-info ul li strong,
  .contant-area-inner strong,
  .contant-area-inner b { color: #dce8f2; }
  .contact-info ul li a,
  .contant-area-inner a { color: #29c4c7; }

  /* --- FOOTER --- */
  .footer {
    background: linear-gradient(135deg, #032a2b 0%, #043a3c 100%);
  }
  /* Footer links ya son blancos, se mantienen */

  /* --- SKIP LINK --- */
  .skip-link { background: #007376; }

  /* --- MAPA en content-page --- */
  .map-container iframe {
    filter: invert(0.9) hue-rotate(180deg) brightness(0.85) contrast(0.9);
    border-radius: 8px;
  }

  /* --- MOBILE MENU DARK --- */
  .header-mid nav#menu ul {
    background: #091420;
    border-top: 1px solid #1e3347;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  }
  .header-mid nav#menu ul li a {
    color: #29c4c7;
    border-bottom-color: #1e3347;
  }
  .header-mid nav#menu ul li a:hover {
    background: #132233;
    color: #5dd8da;
  }
  .header-mid button {
    background-color: #007376;
    color: #fff;
  }
  .header-mid button:hover { background-color: #00acb0; }

  /* --- MEDALLÓN: intensificar el glow en dark mode --- */
  .medallion {
    box-shadow:
      0 0 20px rgba(255,215,0,0.85),
      0 0 50px rgba(255,180,0,0.45),
      0 0 90px rgba(255,150,0,0.2);
  }
  @keyframes medalGlowDark {
    0%   { box-shadow: 0 0 16px rgba(255,215,0,0.9), 0 0 40px rgba(255,180,0,0.5); }
    100% { box-shadow: 0 0 32px rgba(255,215,0,1),   0 0 80px rgba(255,180,0,0.7); }
  }
  .medallion { animation: medalGlowDark 3s infinite alternate; }

  /* --- BOTÓN WHATSAPP flotante: añadir glow --- */
  .floating-whatsapp-button {
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  }
  .floating-whatsapp-button:hover {
    box-shadow: 0 6px 30px rgba(37,211,102,0.65);
  }

  /* --- BOTÓN WHATSAPP CTA (páginas) --- */
  .btn-whatsapp {
    box-shadow: 0 4px 18px rgba(37,211,102,0.4);
  }

  /* --- TABLAS / LISTAS en páginas de contenido --- */
  table { background: #132233; }
  td { color: #b8cfe0; padding: 4px 8px; }

} /* fin @media (prefers-color-scheme: dark) */

/* DARK MODE + MOBILE: gradiente oscuro (sin imagen de fondo) ---- */
@media (prefers-color-scheme: dark) and (max-width: 900px) {
  .full_width_banner {
    background: linear-gradient(108deg, #091c2e 0%, #0d2438 55%, #0a1e30 100%) !important;
  }
}
