/* ========== GLOBAL RESET & VARIABLES ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-deep: #1a6b8a;
  --blue-mid: #3ea8c7;
  --blue-bright: #5bc8e0;
  --blue-light: #d4f1f9;
  --blue-pale: #edf8fc;
  --white: #ffffff;
  --gray-50: #f7f9fc;
  --gray-100: #e9edf5;
  --gray-600: #4a5568;
  --gray-800: #1a202c;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

/* ========== HEADER ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--blue-light);
  transition: box-shadow 0.3s;
}

header.scrolled {
  box-shadow: 0 2px 20px rgba(26, 107, 138, 0.1);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--blue-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 700;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text strong {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-deep);
}

.logo-text span {
  font-size: 9px;
  font-weight: 400;
  color: var(--blue-bright);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover,
nav a.active {
  background: var(--blue-pale);
  color: var(--blue-deep);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue-deep);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--blue-light);
  padding: 16px 24px;
  flex-direction: column;
  gap: 4px;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(26, 107, 138, 0.08);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
}

.mobile-menu a:hover {
  background: var(--blue-pale);
  color: var(--blue-deep);
}

@media (max-width: 900px) {
  nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* ========== FADE UP ========== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== HERO (quienes somos) ========== */
.hero-band {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-mid) 60%, var(--blue-bright) 100%);
  padding: 130px 24px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  position: relative;
}

.hero-band h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 800;
  color: white;
  margin-bottom: 14px;
  line-height: 1.1;
}

.hero-band p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 580px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.7;
}

/* ========== MISSION CARDS ========== */
.mission-strip {
  background: var(--blue-pale);
  padding: 0 24px 40px;
}

.mission-cards {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  transform: translateY(-36px);
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(26, 107, 138, 0.1);
  overflow: hidden;
}

.mission-card {
  padding: 30px 26px;
  border-right: 1px solid var(--gray-100);
  text-align: center;
}

.mission-card:last-child {
  border-right: none;
}

.mission-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-light);
  color: var(--blue-mid);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.mission-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 8px;
}

.mission-card p {
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ========== ABOUT SECTION ========== */
.about-section {
  max-width: 900px;
  margin: 0 auto 48px;
  padding: 0 24px;
  text-align: center;
}

.about-section h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 16px;
}

.about-section p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 14px;
}

/* ========== ACCORDION ========== */
.accordion-section {
  max-width: 900px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.accordion-title {
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 32px;
}

.accordion-item {
  background: white;
  border: 1px solid var(--blue-light);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.2s;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  background: white;
  transition: background 0.2s;
}

.accordion-header:hover {
  background: var(--blue-pale);
}

.accordion-header h3 {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--blue-deep);
  margin: 0;
}

.accordion-icon {
  font-size: 20px;
  color: var(--blue-mid);
  transition: transform 0.2s;
}

.accordion-content {
  max-height: 0;
  padding: 0 24px;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--blue-pale);
  border-top: 1px solid transparent;
}

.accordion-content.active {
  max-height: 300px;
  padding: 20px 24px;
  border-top-color: var(--blue-light);
}

.accordion-content p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-600);
  margin: 0;
}

/* ========== FOOTER ========== */
footer {
  background: #051428;
  color: white;
}

.footer-top {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--blue-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.footer-logo-text strong {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  color: white;
  display: block;
}

.footer-logo-text span {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  text-decoration: none;
}

.footer-socials a:hover {
  background: var(--blue-mid);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 9px;
}

.footer-col ul li a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a i {
  font-size: 11px;
  color: var(--blue-bright);
}

.footer-col ul li a:hover {
  color: white;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-contact-item .icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(62, 168, 199, 0.2);
  color: var(--blue-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.footer-contact-item p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: white;
}

/* ========== NEWSLETTER EN FOOTER (mejorado) ========== */
.newsletter-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin-bottom: 16px;
}

.btn-newsletter-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue-mid);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 18px;
  border: none;
  border-radius: 30px;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-newsletter-footer:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer-top {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr; /* todas las columnas mismo ancho */
  gap: 40px; /* separación uniforme entre columnas */
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ========== CHATBOT ========== */
.chatbot-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  font-family: 'DM Sans', sans-serif;
}

.chatbot-button {
  width: 60px;
  height: 60px;
  background: linear-gradient(145deg, var(--blue-mid), var(--blue-bright));
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(62, 168, 199, 0.35);
  transition: all 0.25s ease;
  border: none;
  color: white;
  font-size: 28px;
}

.chatbot-button:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(62, 168, 199, 0.45);
}

.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 40px);
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.2s ease, visibility 0.2s, transform 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  display: flex;
  flex-direction: column;
}

.chatbot-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-avatar {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.chat-header-info {
  flex: 1;
}

.chat-header-info strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #c8effa;
  margin-top: 2px;
}

.chat-status i {
  font-size: 8px;
  color: #2ecc71;
}

.close-chat {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.close-chat:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.chat-messages {
  flex: 1;
  min-height: 320px;
  max-height: 420px;
  overflow-y: auto;
  padding: 18px 16px;
  background: #fcfcfe;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  display: flex;
  max-width: 85%;
  animation: fadeSlideUp 0.2s ease;
}

.message.bot {
  align-self: flex-start;
}

.message.user {
  align-self: flex-end;
}

.bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.45;
  word-wrap: break-word;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.bot .bubble {
  background: #e6f6fb;
  color: #1a3a46;
  border-bottom-left-radius: 4px;
}

.user .bubble {
  background: var(--blue-mid);
  color: white;
  border-bottom-right-radius: 4px;
}

.quick-buttons {
  padding: 12px 16px 16px;
  background: #ffffff;
  border-top: 1px solid #e6f4f8;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-btn {
  background: var(--blue-pale);
  border: 1px solid #b4dfe9;
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-deep);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quick-btn i {
  font-size: 12px;
}

.quick-btn:hover {
  background: var(--blue-mid);
  color: white;
  border-color: var(--blue-mid);
  transform: translateY(-1px);
}

.chat-input-area {
  display: flex;
  border-top: 1px solid #e6f4f8;
  padding: 12px 16px;
  background: white;
  gap: 10px;
}

.chat-input-area input {
  flex: 1;
  border: 1px solid #c8e8f0;
  border-radius: 24px;
  padding: 10px 15px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

.chat-input-area input:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 2px rgba(62, 168, 199, 0.15);
}

.chat-input-area button {
  background: var(--blue-mid);
  border: none;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-input-area button:hover {
  background: var(--blue-deep);
  transform: scale(1.05);
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-messages::-webkit-scrollbar {
  width: 5px;
}

.chat-messages::-webkit-scrollbar-track {
  background: #e6f4f8;
  border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #9ed5e5;
  border-radius: 4px;
}

@media (max-width: 480px) {
  .chatbot-window {
    width: 320px;
    right: 0;
    bottom: 75px;
  }
  .quick-btn {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* ========== MODALES ========== */
.modal-privacidad,
.modal-terminos,
.modal-newsletter {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 20, 40, 0.85);
  backdrop-filter: blur(4px);
  z-index: 10001;
  align-items: center;
  justify-content: center;
}

.modal-contenido {
  background: white;
  width: 90%;
  max-width: 520px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.modal-header h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

.cerrar-modal {
  font-size: 28px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.cerrar-modal:hover {
  opacity: 1;
}

.modal-body {
  padding: 24px;
  font-family: 'DM Sans', sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  font-size: 14px;
}

.modal-body strong {
  color: var(--blue-deep);
}

.modal-body hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid var(--blue-light);
}

/* Formulario dentro del modal */
.modal-newsletter .sib-form {
  text-align: center;
  background: transparent;
}

.modal-newsletter input:not([type="hidden"]) {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1.5px solid var(--blue-light);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  background: white;
  outline: none;
  transition: all 0.2s;
}

.modal-newsletter input:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(62, 168, 199, 0.1);
}

.modal-newsletter button {
  background: var(--blue-mid);
  border: none;
  color: white;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-newsletter button:hover {
  background: var(--blue-deep);
}

.aviso-spam {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  margin-top: 16px;
}

.error-message,
.success-message {
  display: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  text-align: center;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
}

.error-message {
  color: #661d1d;
  background-color: #ffeded;
}

.success-message {
  color: #085229;
  background-color: #e7faf0;
}

/* ========== INDEX HERO (si se usa en index) ========== */
.hero-home {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-mid) 60%, var(--blue-bright) 100%);
  padding: 140px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-home h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  position: relative;
}

.hero-home p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
  margin: 0 auto 28px;
  position: relative;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: var(--blue-deep);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-family: 'Sora', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Servicios, stats, etc (si se usan en index) */
.services-section {
  max-width: 1180px;
  margin: 60px auto;
  padding: 0 24px;
}

.section-title {
  text-align: center;
  font-family: 'Sora', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--blue-pale);
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid var(--blue-light);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(26, 107, 138, 0.12);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 30px;
  color: var(--blue-mid);
}

.service-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--blue-deep);
}

.service-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}

.stats-bar {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  padding: 50px 24px;
  text-align: center;
  color: white;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-item h3 {
  font-size: 38px;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
}

.stat-item p {
  opacity: 0.85;
}

.coverage-section {
  padding: 60px 24px;
  background: var(--gray-50);
  text-align: center;
}

.coverage-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.coverage-tag {
  background: white;
  border: 1px solid var(--blue-light);
  padding: 8px 20px;
  border-radius: 40px;
  font-weight: 500;
  color: var(--blue-deep);
}

.cta-final {
  background: var(--blue-deep);
  padding: 60px 24px;
  text-align: center;
  color: white;
}

.cta-final h2 {
  font-family: 'Sora', sans-serif;
  margin-bottom: 16px;
}

.cta-final p {
  margin-bottom: 24px;
  opacity: 0.85;
}

.btn-outline-light {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 10px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.btn-outline-light:hover {
  background: white;
  color: var(--blue-deep);
}

/* ========== CONTACTO ========== */
.contact-section {
  padding: 60px 0 80px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  background: var(--blue-pale);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--blue-light);
}

.contact-info h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-mid);
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(26, 107, 138, 0.1);
  flex-shrink: 0;
}

.info-item strong {
  display: block;
  color: var(--blue-deep);
  font-weight: 600;
  margin-bottom: 2px;
}

.info-item a {
  color: var(--gray-600);
  text-decoration: none;
}

.info-item a:hover {
  color: var(--blue-deep);
}

.contact-form-wrap h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--gray-800);
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--blue-light);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s;
  background: white;
  color: var(--gray-800);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(62, 168, 199, 0.12);
}

.btn-submit {
  background: var(--blue-mid);
  color: white;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 2rem;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 107, 138, 0.25);
}

.alert {
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  display: none;
  font-size: 14px;
}

.alert.success {
  background: #d1fae5;
  color: #065f46;
  display: block;
}

.alert.error {
  background: #fee2e2;
  color: #991b1b;
  display: block;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== EQUIPO ========== */
.team-section {
  background: #f0fafc;
  padding: 60px 24px 80px;
}

.team-header {
  text-align: center;
  margin-bottom: 50px;
}

.team-header h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  color: var(--blue-deep);
  margin-bottom: 12px;
}

.filter-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.filter-btn {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 20px;
  border: 1.5px solid var(--blue-light);
  background: white;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  color: white;
}

.team-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.prof-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26, 107, 138, 0.08);
  transition: transform 0.25s;
  display: flex;
  flex-direction: column;
}

.prof-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(26, 107, 138, 0.16);
}

.prof-card-header {
  background: linear-gradient(145deg, var(--blue-bright) 0%, var(--blue-deep) 100%);
  padding: 28px 24px 0;
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
}

.prof-card-header::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(26, 107, 138, 0.45);
}

.prof-card-header::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -20px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(26, 107, 138, 0.35);
}

.cross-deco {
  position: absolute;
  top: 10px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 2;
}

.cross-deco span {
  display: block;
  width: 18px;
  height: 18px;
  background: rgba(91, 200, 224, 0.7);
  clip-path: polygon(38% 0%, 62% 0%, 62% 38%, 100% 38%, 100% 62%, 62% 62%, 62% 100%, 38% 100%, 38% 62%, 0% 62%, 0% 38%, 38% 38%);
}

.prof-photo-wrap {
  position: absolute;
  right: 18px;
  bottom: 0;
  width: 130px;
  height: 130px;
  z-index: 3;
}

.prof-photo-ring {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid var(--blue-deep);
  overflow: hidden;
  background: #c8ecf5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prof-photo-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.prof-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #5bc8e0, #1a6b8a);
  color: white;
  font-size: 32px;
  font-weight: 800;
}

.prof-name-block {
  position: relative;
  z-index: 3;
  padding-bottom: 16px;
  max-width: 58%;
}

.prof-prefix {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.prof-name {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
}

.prof-card-body {
  padding: 18px 22px 0;
  flex: 1;
}

.prof-specialty {
  font-family: 'Sora', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--blue-light);
}

.prof-detail {
  display: flex;
  gap: 8px;
  margin-bottom: 9px;
  font-size: 13px;
  color: var(--gray-600);
}

.prof-detail i {
  color: var(--blue-mid);
  margin-top: 2px;
  width: 14px;
}

.prof-matricula {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-pale);
  border: 1px solid var(--blue-light);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-deep);
  margin-top: 4px;
}

.prof-card-footer {
  margin-top: 18px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  display: flex;
  align-items: center;
  gap: 10px;
}

.prof-card-footer .phone-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prof-card-footer .phone-icon i {
  color: white;
}

.prof-card-footer div strong {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.prof-card-footer div a {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

/* ========== MODALES MEJORADOS ========== */
.modal-body ul {
  margin: 12px 0 16px 20px;
  padding-left: 0;
  list-style-type: disc;
  color: var(--gray-600);
  line-height: 1.6;
}

.modal-body li {
  margin-bottom: 6px;
}

.modal-body hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid #e2e8f0;
}

.modal-body a {
  color: var(--blue-mid);
  text-decoration: none;
}

.modal-body a:hover {
  text-decoration: underline;
  color: var(--blue-deep);
}

.modal-body small {
  font-size: 11px;
  color: #94a3b8;
}


.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-col h4 {
  margin-bottom: 20px; /* un poco más de espacio debajo del título */
}

.footer-col ul, .footer-col p, .footer-contact-item {
  width: 100%;
}



.btn-newsletter-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px; /* menos redondeado */
  padding: 6px 12px; /* más pequeño */
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 12px;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  transition: all 0.2s ease;
  width: auto; /* que no ocupe todo el ancho */
  min-width: 100px;
  background-color: rgba(62, 168, 199, 0.2);
}

.btn-newsletter-footer:hover {
  background-color: var(--blue-mid);
  border-color: var(--blue-mid);
  color: white;
}

/* ========== MODAL V2 ========== */
.modal-v2 { border-radius: 20px; overflow: hidden; }
.modal-header-v2 {
  background: linear-gradient(135deg, #1a6b8a 0%, #3ea8c7 100%);
  padding: 22px 26px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
}
.modal-header-v2::before {
  content:''; position:absolute; top:-28px; right:-28px;
  width:110px; height:110px; border-radius:50%;
  background:rgba(255,255,255,0.08);
}
.modal-header-left { display:flex; align-items:center; gap:12px; position:relative; }
.modal-header-icon {
  width:40px; height:40px; border-radius:12px;
  background:rgba(255,255,255,0.18);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.modal-title { font-family:'Sora',sans-serif; font-size:17px; font-weight:700; color:white; }
.modal-subtitle { font-size:11px; color:rgba(255,255,255,0.65); margin-top:3px; letter-spacing:0.5px; }

.modal-body-v2 { padding: 26px 28px 28px; }
.modal-banner {
  background:#edf8fc; border-left:3px solid #3ea8c7;
  border-radius:0 10px 10px 0; padding:14px 16px; margin-bottom:20px;
}
.modal-banner-title { font-family:'Sora',sans-serif; font-size:13px; font-weight:700; color:#1a6b8a; margin-bottom:4px; }
.modal-banner p { font-size:13px; color:#4a5568; line-height:1.55; margin:0; }
.modal-text { font-size:13.5px; color:#374151; line-height:1.7; margin:0 0 18px; }
.modal-text strong { color:#1a6b8a; }

.modal-checks { display:flex; flex-direction:column; gap:10px; margin-bottom:20px; }
.check-item { display:flex; align-items:flex-start; gap:10px; }
.check-icon {
  width:22px; height:22px; border-radius:6px; background:#d1fae5;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; font-size:12px; font-weight:700; color:#059669; margin-top:1px;
}
.check-item span { font-size:13px; color:#374151; line-height:1.55; }

.modal-footer-v2 {
  border-top:1px solid #e2e8f0; padding-top:18px;
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:10px;
}
.modal-footer-label { font-size:11px; color:#94a3b8; text-transform:uppercase; letter-spacing:0.8px; margin-bottom:3px; }
.modal-email-link { font-size:13px; color:#3ea8c7; text-decoration:none; font-weight:600; }
.modal-email-link:hover { color:#1a6b8a; }
.modal-btn-ok {
  background:linear-gradient(135deg, #1a6b8a, #3ea8c7);
  border:none; color:white; padding:10px 20px; border-radius:30px;
  font-size:13px; font-weight:600; cursor:pointer; font-family:'DM Sans',sans-serif;
  transition:opacity .2s;
}
.modal-btn-ok:hover { opacity: 0.88; }


/* Variantes modal v2 */
.modal-section-label {
  font-family: 'Sora', sans-serif;
  font-size: 12px; font-weight: 700;
  color: #1a6b8a; letter-spacing: 0.6px;
  text-transform: uppercase; margin-bottom: 12px;
}
.check-blue {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
}
.modal-banner-warning {
  background: #fff7ed !important;
  border-left-color: #f59e0b !important;
  margin-top: 4px;
}
.modal-banner-warning p { margin: 0; }
.modal-phone-link {
  color: #3ea8c7; font-weight: 700; text-decoration: none;
}
.modal-phone-link:hover { color: #1a6b8a; }
.modal-body-v2 { max-height: 75vh; overflow-y: auto; }
/* ===== FIX DEFINITIVO MODAL V2 ===== */

/* X: blanca, sin herencia del body */
.modal-header-v2 > .cerrar-modal,
.modal-header-v2 .cerrar-modal {
  color: white !important;
  background: rgba(255,255,255,0.15) !important;
  border: none !important;
  outline: none !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 2 !important;
  transition: background 0.2s !important;
  padding: 0 !important;
}
.modal-header-v2 > .cerrar-modal:hover,
.modal-header-v2 .cerrar-modal:hover {
  background: rgba(255,255,255,0.30) !important;
  color: white !important;
  opacity: 1 !important;
}

/* Botón Entendido: sólido, sin transparencia */
.modal-footer-v2 .modal-btn-ok,
.modal-footer-v2 button.cerrar-modal,
button.modal-btn-ok {
  background: #1a6b8a !important;
  background-image: linear-gradient(135deg, #1a6b8a, #3ea8c7) !important;
  color: white !important;
  border: none !important;
  outline: none !important;
  opacity: 1 !important;
  padding: 10px 22px !important;
  border-radius: 30px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  font-family: 'DM Sans', sans-serif !important;
  line-height: normal !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: opacity 0.2s !important;
}
.modal-footer-v2 .modal-btn-ok:hover,
button.modal-btn-ok:hover {
  opacity: 0.85 !important;
}

/* ========== SERVICIOS ========== */
.servicios-completos {
  padding: 60px 0;
  background: var(--white);
}

.servicio-bloque {
  margin-bottom: 60px;
  padding: 32px;
  background: var(--blue-pale);
  border-radius: 24px;
  border: 1px solid var(--blue-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-bloque:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(26, 107, 138, 0.1);
}

.servicio-icono {
  font-size: 48px;
  color: var(--blue-mid);
  margin-bottom: 16px;
}

.servicio-titulo {
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 16px;
}

.servicio-descripcion {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 20px;
}

.lista-doble {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.lista-doble li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}

.lista-doble li i {
  color: var(--blue-mid);
  font-size: 16px;
  width: 20px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .lista-doble {
    grid-template-columns: 1fr;
  }
  
  .servicio-bloque {
    padding: 24px;
  }
  
  .servicio-titulo {
    font-size: 24px;
  }
}

/* ========================================
   MODO NOCTURNO — Dark Mode
   ======================================== */

/* Botón luna/sol */
#darkModeBtn {
  position: fixed;
  top: 18px;
  right: 72px;
  z-index: 200;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(8px);
}
#darkModeBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}

/* Variables dark mode */
body.dark-mode {
  --white:     #0f172a;
  --gray-50:   #1e293b;
  --gray-100:  #273449;
  --gray-600:  #94a3b8;
  --gray-800:  #e2e8f0;
  --blue-pale: #1a2d3d;
  --blue-light:#1e3d52;
}

/* Body y fondo general */
body.dark-mode {
  background: #0f172a;
  color: #e2e8f0;
}

/* Header */
body.dark-mode header {
  background: rgba(15,23,42,0.97);
  border-bottom-color: #1e3d52;
}
body.dark-mode nav a        { color: #94a3b8; }
body.dark-mode nav a:hover,
body.dark-mode nav a.active { background: #1e293b; color: #5bc8e0; }
body.dark-mode #darkModeBtn {
  background: rgba(30,41,59,0.95);
  color: #f1c40f;
}

/* Mobile menu */
body.dark-mode .mobile-menu {
  background: #1e293b;
  border-bottom-color: #334155;
}
body.dark-mode .mobile-menu a { color: #94a3b8; }
body.dark-mode .mobile-menu a:hover { background: #273449; color: #5bc8e0; }

/* Tarjetas de servicios */
body.dark-mode .service-card {
  background: #1e293b;
  border-color: #334155;
}
body.dark-mode .service-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.4); }
body.dark-mode .service-icon { background: #273449; }
body.dark-mode .service-card h3 { color: #5bc8e0; }
body.dark-mode .service-card p  { color: #94a3b8; }

/* Coverage tags */
body.dark-mode .coverage-section { background: #1e293b; }
body.dark-mode .coverage-tag {
  background: #273449;
  border-color: #334155;
  color: #5bc8e0;
}

/* Section titles */
body.dark-mode .section-title { color: #5bc8e0; }
body.dark-mode .section-sub   { color: #94a3b8; }

/* Footer */
body.dark-mode footer { background: #080f1e; }
body.dark-mode .footer-divider { border-top-color: rgba(255,255,255,0.04); }
body.dark-mode .footer-col ul li a,
body.dark-mode .footer-contact-item p,
body.dark-mode .footer-contact-item a,
body.dark-mode .footer-brand p { color: rgba(255,255,255,0.45); }
body.dark-mode .footer-bottom p,
body.dark-mode .footer-bottom-links a { color: rgba(255,255,255,0.25); }

/* Modales */
body.dark-mode .modal-contenido,
body.dark-mode [id^="modal"] > div { background: #1e293b !important; }
body.dark-mode .modal-body,
body.dark-mode .modal-body-v2 { color: #e2e8f0; }
body.dark-mode .modal-body p,
body.dark-mode .modal-body-v2 p { color: #94a3b8; }
body.dark-mode .modal-banner {
  background: #1a2d3d !important;
  border-left-color: #3ea8c7 !important;
}
body.dark-mode .modal-banner p,
body.dark-mode .modal-banner-title { color: #94a3b8 !important; }
body.dark-mode .modal-footer-v2 { border-top-color: #334155; }
body.dark-mode .check-item span  { color: #94a3b8; }

/* Newsletter modal body */
body.dark-mode #modalNewsletter > div { background: #1e293b !important; }
body.dark-mode #modalNewsletter input {
  background: #273449 !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
body.dark-mode #modalNewsletter input::placeholder { color: #64748b !important; }
body.dark-mode #modalNewsletter label { color: #64748b !important; }

/* Chatbot */
body.dark-mode .chatbot-window { background: #1e293b; }
body.dark-mode .chat-messages  { background: #16202e; }
body.dark-mode .bot .bubble    { background: #273449; color: #e2e8f0; }
body.dark-mode .quick-buttons  { background: #1e293b; border-top-color: #334155; }
body.dark-mode .quick-btn {
  background: #273449;
  border-color: #334155;
  color: #5bc8e0;
}
body.dark-mode .quick-btn:hover { background: #3ea8c7; color: white; }
body.dark-mode .chat-input-area {
  background: #1e293b;
  border-top-color: #334155;
}
body.dark-mode .chat-input-area input {
  background: #273449;
  border-color: #334155;
  color: #e2e8f0;
}

/* Accordion (quienes somos) */
body.dark-mode .accordion-item    { border-color: #334155; }
body.dark-mode .accordion-header  { background: #1e293b; color: #e2e8f0; }
body.dark-mode .accordion-content { background: #16202e; color: #94a3b8; }

/* Mission cards */
body.dark-mode .mission-card { background: #1e293b; }
body.dark-mode .mission-icon { background: #273449; }

/* About section */
body.dark-mode .about-section { background: #16202e; color: #94a3b8; }
body.dark-mode .about-section h2 { color: #5bc8e0; }

/* Contact form */
body.dark-mode .contact-form-wrap,
body.dark-mode .contact-info { background: #1e293b; }
body.dark-mode .contact-form-wrap input,
body.dark-mode .contact-form-wrap select,
body.dark-mode .contact-form-wrap textarea {
  background: #273449 !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

/* Team cards */
body.dark-mode .prof-card { background: #1e293b; border-color: #334155; }
body.dark-mode .prof-specialty,
body.dark-mode .prof-detail span { color: #94a3b8; }

/* Transición suave global */
body, header, .service-card, .coverage-section, .coverage-tag,
.mission-card, .about-section, footer, .chatbot-window,
.chat-messages, .accordion-header, .accordion-content,
.modal-contenido, nav a, .mobile-menu {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.team-section {
  background: var(--gray-50);
  padding: 48px 24px 60px;
}

/* Dark mode — filtros equipo */
body.dark-mode .filter-btn {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}
body.dark-mode .filter-btn:hover {
  background: #273449;
  color: #5bc8e0;
  border-color: #3ea8c7;
}
body.dark-mode .filter-btn.active {
  background: #3ea8c7;
  border-color: #3ea8c7;
  color: white;
}

#darkModeBtn {
  color: #1a6b8a;
}
body.dark-mode #darkModeBtn {
  background: rgba(30,41,59,0.95) !important;
  color: #94a3b8;
}
body.dark-mode #darkModeBtn:hover {
  color: #e2e8f0;
}


/* ===== CONTACTO — fix mobile y dark mode ===== */

/* Light mode: card en el form */
.contact-form-wrap {
  background: var(--blue-pale);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--blue-light);
}

/* Dark mode */
body.dark-mode .contact-section  { background: #0f172a; }
body.dark-mode .contact-info     {
  background: #1e293b !important;
  border-color: #334155 !important;
}
body.dark-mode .contact-form-wrap {
  background: #1e293b !important;
  border-color: #334155 !important;
}
body.dark-mode .contact-info h3,
body.dark-mode .contact-form-wrap h3 { color: #5bc8e0; }
body.dark-mode .info-item strong      { color: #e2e8f0; }
body.dark-mode .info-item a           { color: #94a3b8; }
body.dark-mode .info-icon {
  background: #273449;
  box-shadow: none;
}
body.dark-mode .form-group label      { color: #94a3b8; }
body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
  background: #0763f7 !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group textarea::placeholder { color: #64748b !important; }
body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
  border-color: #3ea8c7 !important;
  box-shadow: 0 0 0 3px rgba(62,168,199,0.15) !important;
}

/* Mobile: las dos columnas apiladas con padding */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  .contact-section .container {
    padding: 0 16px;
  }
}

/* ===== CONTACT FORM WRAP — fix completo ===== */
.contact-form-wrap {
  background: var(--blue-pale);
  padding: 2rem 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--blue-light);
}

.contact-form-wrap h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--blue-light);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  background: white;
  color: var(--gray-800);
  transition: all 0.2s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(62,168,199,0.12);
}

.btn-submit {
  background: var(--blue-mid);
  color: white;
  padding: 0.85rem 2.5rem;
  border: none;
  border-radius: 2rem;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  width: auto;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.btn-submit:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26,107,138,0.25);
}

/* Dark mode contacto */
body.dark-mode .contact-form-wrap {
  background: #1e293b !important;
  border-color: #334155 !important;
}
body.dark-mode .contact-form-wrap h3 { color: #5bc8e0 !important; }
body.dark-mode .form-group label { color: #94a3b8 !important; }
body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
  background: #273449 !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
  border-color: #3ea8c7 !important;
  box-shadow: 0 0 0 3px rgba(62,168,199,0.15) !important;
}

/* ===== MOBILE — quienes somos ===== */
@media (max-width: 768px) {
  .mission-cards {
    grid-template-columns: 1fr !important;
    padding: 0 16px;
  }

  .mission-card {
    width: 100% !important;
    box-sizing: border-box;
  }

  .mission-strip {
    padding: 24px 0;
    overflow-x: hidden;
  }
}
/* ===== DARK MODE — unificación de colores ===== */

/* Fondo general de todas las secciones */
body.dark-mode .contact-section,
body.dark-mode .coverage-section,
body.dark-mode .team-section,
body.dark-mode .about-section,
body.dark-mode .accordion-section,
body.dark-mode .mission-strip,
body.dark-mode .services-section,
body.dark-mode .stats-bar + *,
body.dark-mode .cta-final + *,
body.dark-mode section:not(.hero-band):not(.stats-bar):not(.cta-final) {
  background: #0f172a !important;
}

/* Cards y elementos elevados — todos #1a2d3d */
body.dark-mode .service-card,
body.dark-mode .mission-card,
body.dark-mode .coverage-tag,
body.dark-mode .contact-info,
body.dark-mode .contact-form-wrap,
body.dark-mode .accordion-item,
body.dark-mode .accordion-header,
body.dark-mode .prof-card,
body.dark-mode .about-section,
body.dark-mode .chat-messages,
body.dark-mode .quick-buttons,
body.dark-mode .chat-input-area,
body.dark-mode .chatbot-window {
  background: #1a2d3d !important;
  border-color: #1e3d52 !important;
}

/* Inputs y selects */
body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea,
body.dark-mode .chat-input-area input {
  background: #0f172a !important;
  border-color: #1e3d52 !important;
  color: #e2e8f0 !important;
}

/* Accordion contenido abierto */
body.dark-mode .accordion-content {
  background: #0f172a !important;
  color: #94a3b8 !important;
}

/* Quienes somos — fondo unificado */
body.dark-mode .mission-strip { background: #0f172a !important; }
body.dark-mode .mission-card  { background: #1a2d3d !important; }
body.dark-mode .mission-icon  { background: #0f172a !important; }

/* Coverage tags */
body.dark-mode .coverage-section { background: #0f172a !important; }
body.dark-mode .coverage-tag {
  background: #1a2d3d !important;
  border-color: #1e3d52 !important;
  color: #5bc8e0 !important;
}

/* Chatbot bubble bot */
body.dark-mode .bot .bubble { background: #1a2d3d !important; }
body.dark-mode .quick-btn {
  background: #0f172a !important;
  border-color: #1e3d52 !important;
}

/* Modales */
body.dark-mode .modal-contenido,
body.dark-mode #modalNewsletter > div {
  background: #1a2d3d !important;
}
body.dark-mode .modal-banner {
  background: #0f172a !important;
  border-left-color: #3ea8c7 !important;
}
body.dark-mode .modal-footer-v2 { border-top-color: #1e3d52 !important; }
body.dark-mode #modalNewsletter input {
  background: #0f172a !important;
  border-color: #1e3d52 !important;
}

/* Textos */
body.dark-mode .service-card h3,
body.dark-mode .mission-card h3,
body.dark-mode .contact-info h3,
body.dark-mode .contact-form-wrap h3 { color: #5bc8e0 !important; }

body.dark-mode .service-card p,
body.dark-mode .mission-card p,
body.dark-mode .info-item strong,
body.dark-mode .form-group label     { color: #94a3b8 !important; }

body.dark-mode .info-item a,
body.dark-mode .check-item span      { color: #94a3b8 !important; }

/* Info icon */
body.dark-mode .info-icon {
  background: #0f172a !important;
  box-shadow: none !important;
}


/* ===== DARK MODE — cards sin sombra oscura, con resplandor celeste ===== */
body.dark-mode .service-card:hover,
body.dark-mode .mission-card:hover,
body.dark-mode .prof-card:hover,
body.dark-mode .coverage-tag:hover {
  box-shadow: 0 8px 24px rgba(62, 168, 199, 0.25) !important;
  border-color: #3ea8c7 !important;
  transform: translateY(-4px);
}

/* ===== DARK MODE — mission strip separada del hero ===== */
body.dark-mode .mission-strip {
  background: #0f172a !important;
  padding: 60px 24px !important;
}

body.dark-mode .mission-cards {
  margin-top: 0 !important;
}

/* Light mode también por si acaso */
.mission-strip {
  padding: 60px 24px;
}

.logo-icon {
  background: transparent !important;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* esto recorta la imagen para que llene el círculo */
  transform: scale(0.9); /* acerca el logo para que se vea más grande */
}

/* En modo oscuro, asegurarse que no haya fondo blanco */
body.dark-mode .logo-icon {
  background: transparent !important;
}

/* ===== FIX HERO INDEX — mismo gradiente que las demás páginas ===== */
.hero-home {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-mid) 60%, var(--blue-bright) 100%) !important;
}

/* ===== FIX MISSION CARDS — sin divisiones, más separadas del hero ===== */
.mission-strip {
  background: var(--blue-pale);
  padding: 40px 24px 40px !important;
}

.mission-cards {
  transform: translateY(0) !important;
  margin-top: 0 !important;
  box-shadow: 0 8px 40px rgba(26,107,138,0.1) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

.mission-card {
  border-right: none !important;
  border-bottom: none !important;
}

/* ===== DARK MODE — hero celeste en TODAS las páginas ===== */
body.dark-mode .hero-home,
body.dark-mode .hero-band {
  background: linear-gradient(135deg, #0d4f6e 0%, #1a6b8a 60%, #2d9ab8 100%) !important;
}

/* Dark mode — mission cards sin líneas ni sombras extrañas */
body.dark-mode .mission-cards {
  background: transparent !important;
  box-shadow: none !important;
  gap: 16px !important;
  overflow: visible !important;
  transform: translateY(0) !important;
}

body.dark-mode .mission-card {
  border-right: none !important;
  border-bottom: none !important;
  border: 1px solid #1e3d52 !important;
  border-radius: 16px !important;
  background: #1a2d3d !important;
}

body.dark-mode .mission-strip {
  background: #0f172a !important;
  padding: 40px 24px !important;
}

/* ===== DARK MODE — hero sin gradiente celeste ===== */
body.dark-mode .hero-home,
body.dark-mode .hero-band {
  background: linear-gradient(135deg, #0d1b2a 0%, #0f2235 60%, #112840 100%) !important;
}


body.dark-mode .hero-home,
body.dark-mode .hero-band {
  background: #0f172a !important;
}