/* =========== RESET & BASICS =========== */
/* Resetea márgenes, paddings y box-sizing para consistencia entre navegadores */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Estilos generales del body */
body {
  font-family: 'Century Gothic', sans-serif;
  background-color: #EBEBEB;
  color: #333;
  scroll-behavior: smooth; /* Scroll suave al hacer anchor */
  line-height: 1.2;
  padding-top: 90px; /* espacio para el header fijo */
}

/* Estilo global para enlaces */
a {
  text-decoration: none;
  color: inherit;
  font-family: 'Tahoma';
  transition: color 0.3s ease;
}

a:hover {
  color: #00c37a; /* color al pasar el cursor */
}

/* Imágenes responsivas */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* =========== PRELOADER =========== */
/* Contenedor del preloader*/ 
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #007a63, #004d);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 2s ease, visibility 5s ease;
}

/* Ocultar preloader al terminar la carga */
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Animación del círculo giratorio */
.loader-circle {
  width: 90px;
  height: 90px;
  border: 10px solid rgba(255,255,255,0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Texto animado dentro del preloader */
.loader-text {
  position: absolute;
  font-size: 1.3rem;
  color: white;
  font-weight: bold;
  letter-spacing: 2px;
  animation: fadeText 1.5s ease-in-out infinite alternate;
}
/* Animaciones keyframes */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeText {
  from { opacity: .5; transform: scale(.9); }
  to { opacity: 1; transform: scale(1.05); }
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.5);
}
.hero {
  height: calc(100vh - 90px); /* resta el header */
}
.hero {
  height: 100vh;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: white;
  text-shadow:
    0 4px 20px rgba(0,0,0,0.6),
    0 0 40px rgba(56,189,248,0.35);
  animation: titleGlow 2.5s ease-in-out infinite alternate;
}

.hero-title span {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-top: 10px;
  background: linear-gradient(135deg, #38bdf8, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero-subtitle {
  margin-top: 20px;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 500;
  color: #e0f2fe;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.5);
  animation: fadeUp 1.6s ease forwards;
}

/* =========== HEADER =========== */
/* Header fijo con fondo semitransparente y blur */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    rgba(6,136,183,0.75),
    rgba(3,175,175,0.75)
  );
  backdrop-filter: blur(8px);
  z-index: 1000;
  transition: all .4s ease;
  overflow: visible;
}

/* Header reducido al hacer scroll */
header.contraido {
  padding: 8px 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

/* Colchón de hover para evitar que se pegue el submenú al pasar */
nav ul > li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 18px;
}

/* Logo circular con sombra */
.logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border-radius: 60px;
  box-shadow: 0 4px 15px rgba(0,0,0,.25);
}
.logo {
  flex-shrink: 0;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none !important;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

/* Reducir tamaño del logo al contraer header 
header.contraido .logo img {
  transform: scale(.7);
}*/

/* Espaciado del menú principal en desktop */
nav ul {
    gap: 18px;
}

nav ul > li > a {
  padding: 12px 20px;
}

/* Pequeña animación al pasar el mouse sobre items */
nav ul > li:hover > a {
  transform: translateY(-2px);
}

/* =========== NAV =========== */
/* Estilos básicos del nav */
nav {
  display: flex;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

nav ul > li {
  position: relative; /* necesario para submenús absolutos */
}

nav ul > li > a {
  color: white;
  padding: 10px 16px;
  font-weight: bold;
  border-radius: 12px;
  transition: all .3s ease;
}

nav ul > li > a:hover {
  background: rgba(255,255,255,.18);
}

/* ======= STRIPE DROPDOWN ======= */
/* Submenú estilo tarjeta */
nav ul > li > ul {
  margin-top: 8px;
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 320px;


  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;

  padding: 18px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.96),
    rgba(240,248,247,.96)
  );

  border-radius: 20px;
  box-shadow:
    0 50px 100px rgba(0,0,0,.25),
    0 15px 35px rgba(0,0,0,.15);

  opacity: 0; /* invisible por defecto */
  pointer-events: none; /* no clickeable hasta hover */
  transition: all .35s cubic-bezier(.4,0,.2,1);
  z-index: 3000;
}

/* Flechita superior del dropdown */
nav ul > li > ul::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 18px;
  height: 18px;
  background: white;
  transform: translateX(-50%) rotate(45deg);
}

/* Mostrar submenú al hover */
nav ul > li:hover > ul {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1.02);
  pointer-events: auto;
  transition: opacity 0.50s ease, transform 0.50s ease; /* control de aparición/desaparición */
}

/* Items del submenú estilo tarjeta */
nav ul > li > ul > li > a {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  color: #0f172a;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 600;
  transition: all .25s ease;
}

/* Hover sobre items del submenú */
nav ul > li > ul > li > a:hover {
  background: linear-gradient(135deg, #38bdf8, #22d3ee);
  color: #020617;
  transform: translateX(6px);
  box-shadow: 0 10px 25px rgba(56,189,248,.35);
}

/* Botón de login en header */
.login-header-btn {
  background: #5fe33e;
  color: black;
  padding: 8px 20px;
  border-radius: 5px;
  font-weight: bold;
  box-shadow: 0 3px 12px rgba(0,0,0,.25);
}

.login-header-btn:hover {
  background: #d1f7e3;
  color: #5fe33e;
}

/* =========== HERO =========== */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  border-bottom: 8px solid #007a63;
}

.hero-video {
  position: absolute;
  inset: 0;
  object-fit: cover;
  filter: brightness(.5);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  text-align: center;
  color: white;
  animation: fadeIn 1.8s ease forwards;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  text-shadow: 3px 5px 25px rgba(0,0,0,.7);
  transform: scaleX(.85);
}

.hero p {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  text-shadow: 2px 3px 18px rgba(0,0,0,.6);
}

/* =========== ANIMATIONS =========== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =========== RESPONSIVE =========== */
/* Botón para desplegar menú móvil */
.menu-toggle {
  display: none;
}

/* ======= MENU MÓVIL ======= */
@media (max-width: 1024px) {

  /* Ajuste padding del header */
  header {
    padding: 14px 20px;
  }

  /* Botón toggle visible solo móvil */
  .menu-toggle {
    display: block;
    color: white;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(135deg, #38bdf8, #22d3ee);
    padding: 10px 18px;
    border-radius: 7px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
  }

  /* Nav ocupa todo el ancho móvil */
  nav {
    width: 100%;
  }

  /* Menú principal móvil (oculto hasta toggle) */
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: linear-gradient(
      180deg,
      rgba(255,255,255,0.95),
      rgba(240,248,247,0.95)
    );
    position: absolute;
    top: 100%;
    left: 0;
    padding: 18px 14px;
    border-radius: 0 0 22px 22px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
    animation: menuDrop 0.1s ease;
  }

  /* Items del menú principal móvil */
  nav ul > li > a {
    color: #0f172a;
    padding: 14px;
    border-radius: 14px;
    font-size: 1.05rem;
  }

  nav ul > li > a:hover {
    background: rgba(56,189,248,0.15);
  }

  /* Submenú móvil */
  nav ul > li > ul {
    position: static; /* no absoluto en móvil */
    margin-top: 10px;
    padding: 10px;
    background: rgba(56,189,248,0.1);
    border-radius: 16px;
  }

  /* Items dentro del submenú móvil */
  nav ul > li > ul > li > a {
    padding: 12px 14px;
    font-size: .95rem;
  }
}

/* Animación del menú desplegable móvil */
@keyframes menuDrop {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= STRIPE DROPDOWN MEJORADO ================= */
/* Submenú desktop con efecto stripe */
nav ul li ul {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 18px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25), 0 10px 20px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: all 0.50s ease;
  z-index: 2000;
}

/* Flechita del submenú */
nav ul li ul::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 18px;
  height: 18px;
  background: white;
}

/* Mostrar submenú al hover */
nav ul li:hover > ul {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Items internos del submenú */
nav ul li ul li a {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  color: #0f172a;
  font-weight: 600;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  transition: all 0.25s ease;
}

/* Hover tipo stripe en submenú */
nav ul li ul li a:hover {
  background: linear-gradient(135deg, #38bdf8, #22d3ee);
  color: #020617;
  transform: translateX(6px);
  box-shadow: 0 10px 25px rgba(56,189,248,0.35);
}

/* Texto secundario opcional en submenú */
nav ul li ul li a span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.7;
}

/* ===== SECCIONES ===== */
section { padding: 80px 10%; position: relative; }
section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #0C5E00;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 2px 15px rgba(0,0,0,0.2);
}
section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #007a63;
    margin: 12px auto 0;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ===== TEXT BLOCK ===== */
.text-block {
    max-width: 500px;
    line-height: 1.9;
    font-size: 1.05rem;
    color: #444;
    text-align: justify;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* ===== MISION Y VISION ===== */
.mision, .vision {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
}
.mision img, .vision img {
    max-width: 250px;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.25);
    transition: transform 0.4s, box-shadow 0.4s, filter 0.4s;
}
.mision img:hover, .vision img:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 55px rgba(0,0,0,0.35);
    filter: brightness(1.1);
}
/* ===== AUTORIDADES ===== */
.autoridades-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 por fila en desktop */
    gap: 30px;
    justify-items: center;
    padding: 20px;
}

/* Tarjetas */
.autoridad-card {
    background: linear-gradient(145deg, #f4f7f6, #e0f2ea);
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    width: 100%;
    max-width: 260px;
}

.autoridad-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 55px rgba(0,0,0,0.25);
}

/* Imagen */
.autoridad-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-bottom: 4px solid #007a63;
    transition: transform 0.4s ease;
}

.autoridad-card:hover img {
    transform: scale(1.05);
}

/* Nombre */
.autoridad-card h3 {
    color: #007a63;
    margin: 14px 0 6px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Cargo */
.autoridad-card p {
    color: #444;
    font-size: 1.05rem;
    margin-bottom: 18px;
}

/* ===== Título de la sección ===== */
#autoridades h2 {
    text-align: center;
    font-size: 2rem;
    color: #0C5E00;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

#autoridades p {
    text-align: center;
    color: #555;
    max-width: 700px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
}

/* ===== Responsivo ===== */
@media (max-width: 1024px) {
    .autoridades-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 por fila en tablets */
    }
}

@media (max-width: 1024px) {
    .autoridades-grid {
        grid-template-columns: 1fr; /* 1 por fila en móviles */
    }
}

/* ----- SECCIÓN DE ESPECIALIDADES ----- */
#especialidades {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #EBEBEB 0%, #EBEBEB 100%);
    font-family: 'Poppins', sans-serif;
}

#especialidades h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #117500;
    position: relative;
}

#especialidades h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: #007a63;
    margin: 10px auto;
    border-radius: 2px;
}

.contenedor-especialidades {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* Todas las tarjetas */
.especialidad {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    width: calc(33.333% - 30px); /* EXACTO: 3 por fila */
    max-width: 320px;
    transition: all 0.3s ease;
    overflow: hidden;
    text-align: left;
}

/* Las dos últimas BAJAN juntas */
.especialidad:nth-child(4),
.especialidad:nth-child(5) {
    width: calc(30.300% - 30px); /* MISMO tamaño */
}
@media (max-width: 768px) {
    .especialidad {
        width: 90%; /* una por fila en móvil */
    }
}
/* ==== FORZAR 3 ARRIBA Y 2 ABAJO ==== */
#especialidades .contenedor-especialidades {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Forzamos tamaño exacto */
#especialidades .especialidad {
    max-width: 33.333%;
    box-sizing: border-box;
}

/* Espaciado */
#especialidades .especialidad {
    padding: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    #especialidades .especialidad {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


.especialidad:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.especialidad img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.especialidad h3 {
    font-size: 1.4rem;
    color: #0078ff;
    margin: 15px 20px 10px;
}

.especialidad p {
    font-size: 0.95rem;
    color: #333;
    padding: 0 20px 20px;
    line-height: 1.6;
    text-align: justify;
}

/* ----- Responsive (Móvil) ----- */
@media (max-width: 768px) {
    .contenedor-especialidades {
        flex-direction: column;
        align-items: center;
    }

    .especialidad {
        max-width: 90%;
    }
}
/* ===== Galería ===== */
.galeria-justificada {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    max-width: 900px;
    margin: 0 auto;
}

.galeria-justificada .item {
    flex-grow: 1;
    flex-basis: calc(33.333% - 6px); /* 4 imágenes por fila */
    height: 160px;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
}

.galeria-justificada .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 6px;
}

.galeria-justificada .item img:hover {
    transform: scale(1.1);
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.modal img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 5px;
}

.cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-flecha {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 15px;
    cursor: pointer;
    user-select: none;
    padding: 25px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    transform: translateY(-50%);
    transition: background 0.3s;
}

.modal-flecha:hover {
    background: rgba(0,0,0,0.9);
}

#modal-prev { left: 30px; }
#modal-next { right: 30px; }

/* ===== Encabezado de sección ===== */
#galeria h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* ===== AVISOS ===== */
.avisos {
    background: #e8f8f2;
    border-left: 6px solid #007a63;
    padding: 25px;
    border-radius: 12px;
    max-width: 900px;
    margin: auto;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}
.aviso-item {
    margin-bottom: 15px;
    padding: 18px;
    background: linear-gradient(90deg, #fff, #e6f4ee);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}
.aviso-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.2);
    background: linear-gradient(90deg, #d1f7e3, #b6efd5);
}
.aviso-item button {
    background: #d9534f; 
    color: white; 
    border: none; 
    padding: 8px 14px; 
    border-radius: 8px; 
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}
}
.aviso-item button {
    background: #d9534f; 
    color: white; 
    border: none; 
    padding: 8px 14px; 
    border-radius: 8px; 
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}
.aviso-item button:hover { background: #b52b27; }
.btn-agregar {
    display: block; 
    margin: 25px auto; 
    background: #007a63; 
    color: white;
    border: none; 
    padding: 14px 28px; 
    border-radius: 12px; 
    font-size: 1.15rem; 
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
.btn-agregar:hover { 
    background: #005f4f; 
    transform: scale(1.05);
}

/* ===== MODALES ===== */
.modal {
    display: none; 
    position: fixed; 
    top: 0; left: 0;
    width: 100%; height: 100%; 
    background: rgba(0,0,0,0.7);
    justify-content: center; 
    align-items: center; 
    z-index: 1000;
}
.modal-content {
    background: white; 
    padding: 30px; 
    border-radius: 20px;
    text-align: center; 
    width: 90%; max-width: 450px; 
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
    font-size: 1rem;
}
.modal-content input, .modal-content textarea {
    width: 100%; 
    padding: 12px; 
    margin: 12px 0; 
    border: 1px solid #ccc; 
    border-radius: 10px;
    font-size: 1rem;
}
.modal-content button {
    background: #007a63; 
    color: white; 
    border: none; 
    padding: 12px 22px; 
    border-radius: 10px; 
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}
.modal-content button:hover { 
    background: #005f4f; 
    transform: scale(1.05);
}

/* ===== FOOTER ===== */
footer { 
    background: #004e3c; 
    color: white; 
    text-align: center; 
    padding: 40px; 
    margin-top: 50px; 
    font-size: 1rem; 
    letter-spacing: 0.5px;
    font-weight: 500;
    border-radius: 5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    header { flex-direction: column; text-align: center; padding: 15px 20px; }
    .mision, .vision { flex-direction: column; }
    nav a { display: block; margin: 10px 0; }
    .hero h1 { font-size: clamp(2rem, 7vw, 3.5rem); }
    .hero p { font-size: clamp(1rem, 3vw, 1.2rem); }
}
/* ===== Sección Contacto ===== */
#contacto {
  text-align: center;
  padding: 60px 0.1px;
  background: #EBEBEB;
  font-family: 'Century Gothic', sans-serif;
}

#contacto h2 {
  color: #007a63;
  font-size: 2.3rem;
  margin-bottom: 20px;
}

#contacto a {
  color: #007a63;
  font-weight: bold;
}

.contenedor-mapas {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
}

.mapa {
  text-align: center;
  max-width: 300px;
  flex: 1 1 50px;
}

.mapa h3 {
  margin-bottom: 10px;
  color: #000;
  font-size: 1.2rem;
}

.mapa iframe {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive (pantallas pequeñas) */
@media (max-width: 1024px) {

    nav ul {
        flex-direction: column;   /* se apilan */
        width: 100%;
    }

    nav ul li {
        width: auto;              /* NO 100% */
        text-align: center;
    }

    nav ul li a {
        width: auto;              /* NO ocupar todo */
    }
}
}

/* ===== BOTONES DEL MENÚ FIJOS ===== */
nav a {
    font-size: 16px !important;
    padding: 10px 16px !important;
    line-height: 1;
    white-space: nowrap;
}
