/* ==========================================================================
   1. VARIABLES DE COLOR
   ========================================================================== */
:root {
  --color-primary: #94B742;       /* Verde Oliva Claro (DOMINANTE Y FONDOS MARCO) */
  --color-primary-dark: #3E531B;  /* Verde Oliva Oscuro / Profundo */
  --color-secondary: #C3D88C;     /* Verde Oliva Suave */
  --color-accent: #698327;        /* Verde Oliva Medio */
  --color-bg-light: #F7F5EE;      /* Beige Suave / Crema Warm */
  --color-bg-card: #FFFFFF;       /* Blanco para Tarjetas */
  --color-text-dark: #1F2710;     /* Texto Oscuro */
  --color-text-muted: #535E43;    /* Texto Secundario */
}

body {
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   2. NAVBAR CON FONDO VERDE OLIVA (#94B742)
   ========================================================================== */
.navbar-custom {
  background-color: var(--color-primary) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar-custom .navbar-brand {
  color: #ffffff !important;
  font-weight: 700;
}

.navbar-custom .nav-link {
  color: #ffffff !important;
  font-weight: 600;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  opacity: 1 !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Botón de Contacto en Navbar sobre fondo Verde */
.navbar-custom .btn-nav-accent {
  background-color: #ffffff !important;
  color: var(--color-primary-dark) !important;
  font-weight: 700;
  border: none;
}

.navbar-custom .btn-nav-accent:hover {
  background-color: var(--color-bg-light) !important;
  color: var(--color-accent) !important;
}

/* Toggler / Menú Hamburguesa en Móvil */
.navbar-custom .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar-custom .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

/* Dropdown sobre Navbar Verde */
.navbar-custom .dropdown-menu {
  background-color: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
}

.navbar-custom .dropdown-item {
  color: var(--color-text-dark);
}

.navbar-custom .dropdown-item:hover {
  background-color: var(--color-bg-light);
  color: var(--color-accent);
}

/* ==========================================================================
   3. BOTONES Y ELEMENTOS DE CONTENIDO
   ========================================================================== */
.btn-primary, .btn-success {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #ffffff !important;
  font-weight: 600;
}

.btn-primary:hover, .btn-primary:focus,
.btn-success:hover, .btn-success:focus {
  background-color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: #ffffff !important;
}

.btn-outline-primary, .btn-outline-success {
  color: var(--color-primary-dark) !important;
  border-color: var(--color-primary) !important;
  font-weight: 600;
}

.btn-outline-primary:hover, .btn-outline-success:hover {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #ffffff !important;
}

.text-primary, .text-success {
  color: var(--color-primary) !important;
}

.text-primary-dark {
  color: var(--color-primary-dark) !important;
}

.bg-primary, .bg-success {
  background-color: var(--color-primary) !important;
}

.badge.bg-success-subtle, .badge.bg-primary-subtle {
  background-color: var(--color-secondary) !important;
  color: var(--color-primary-dark) !important;
  border: 1px solid var(--color-primary) !important;
}

/* ==========================================================================
   4. FOOTER CON FONDO VERDE OLIVA (#94B742)
   ========================================================================== */
.footer-custom {
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
}

.footer-custom h6 {
  color: #ffffff !important;
  font-weight: 700;
}

.footer-custom a {
  color: rgba(255, 255, 255, 0.9) !important;
  transition: color 0.2s ease;
}

.footer-custom a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

.footer-custom .text-muted-footer {
  color: rgba(255, 255, 255, 0.85) !important;
}

.footer-custom .btn-social {
  border-color: rgba(255, 255, 255, 0.6) !important;
  color: #ffffff !important;
}

.footer-custom .btn-social:hover {
  background-color: #ffffff !important;
  color: var(--color-primary-dark) !important;
}

.footer-custom .btn-footer-action {
  background-color: #ffffff !important;
  color: var(--color-primary-dark) !important;
  border: none;
  font-weight: 700;
}

.footer-custom .btn-footer-action:hover {
  background-color: var(--color-bg-light) !important;
  color: var(--color-accent) !important;
}

.object-fit-cover {
  object-fit: cover;
}
/* ==========================================================================
   3. SECCIÓN NOSOTROS (Módulo Sobre Nosotros)
   ========================================================================== */

/* Hero Banner Institucional */
.nosotros-hero {
  background: linear-gradient(rgba(31, 39, 16, 0.75), rgba(31, 39, 16, 0.75)), 
              url('/assets/img/Foto\ fachada\ Tenjo\ dia.jpeg') center/cover no-repeat;
  color: #ffffff;
}

.nosotros-hero .badge-hero {
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
  letter-spacing: 1px;
}

/* Tarjetas Misión, Visión y Valores */
.card-nosotros-item {
  border: none;
  background-color: var(--color-bg-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-nosotros-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.icon-box-nosotros {
  width: 60px;
  height: 60px;
  background-color: var(--color-bg-light) !important;
  color: var(--color-primary-dark) !important;
  border: 3px solid #ffffff;
}

.badge-valor {
  background-color: var(--color-secondary) !important;
  color: var(--color-primary-dark) !important;
  border: 1px solid var(--color-primary) !important;
  font-weight: 600;
}

/* Tarjeta Historia / Dirección */
.card-historia-wrapper {
  background-color: #ffffff;
  border-radius: 20px;
}

.text-subtitulo-nosotros {
  color: var(--color-accent) !important;
  letter-spacing: 1px;
}

/* Módulo de Equipo Interdisciplinario */
.card-equipo-area {
  min-height: 180px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-equipo-area:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.card-equipo-area .icon-equipo {
  color: var(--color-secondary) !important;
}

/* Marco Legal */
.box-marco-legal {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 20px;
}

.icon-marco-legal {
  color: var(--color-primary) !important;
}
/* ==========================================================================
   4. SECCIÓN PLANES FULLSCREEN (PALETA DE COLOR INSTITUCIONAL)
   ========================================================================== */
.planes-container {
  display: flex;
  height: calc(100vh - 70px);
  width: 100%;
  overflow: hidden;
  background-color: var(--color-bg-light);
}

.plan-card {
  position: relative;
  flex: 1 1 33.333%;
  text-decoration: none;
  color: #ffffff;
  overflow: hidden;
  transition: flex 0.5s ease, filter 0.5s ease, transform 0.5s ease;
  background-size: cover;
  background-position: center;
}

/* Rutas a imágenes de fondo */
.plan-permanente {
  background-image: url('/assets/img/Opcion1PV.jpg');
}

.plan-temporal {
  background-image: url('/assets/img/Opcion2PV.jpg');
}

.plan-pasadia {
  background-image: url('/assets/img/Opcion3PV.jpeg');
}

/* Capa oscura con degradado en tonos oscuros verde-oliva para lectura óptima */
.plan-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(20, 24, 29, 0.3) 0%, rgba(20, 24, 29, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 2rem;
  transition: background 0.4s ease;
  z-index: 2;
}

/* Badges adaptados al color de la marca */
.plan-card .badge-plan-permanente {
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
}

.plan-card .badge-plan-temporal {
  background-color: var(--color-accent) !important;
  color: #ffffff !important;
}

.plan-card .badge-plan-pasadia {
  background-color: var(--color-secondary) !important;
  color: var(--color-primary-dark) !important;
}

/* Botones dentro de las tarjetas */
.plan-card .btn-plan-action {
  background-color: #ffffff !important;
  color: var(--color-primary-dark) !important;
  border: none;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.plan-card .btn-plan-action:hover {
  background-color: var(--color-bg-light) !important;
  color: var(--color-accent) !important;
}

/* Efecto hover */
.planes-container:hover .plan-card {
  filter: grayscale(80%) brightness(0.6);
  flex: 1 1 28%;
}

.planes-container .plan-card:hover {
  filter: grayscale(0%) brightness(1);
  flex: 1 1 44%;
}

.planes-container .plan-card:hover .plan-overlay {
  background: linear-gradient(180deg, rgba(20, 24, 29, 0.1) 0%, rgba(20, 24, 29, 0.7) 100%);
}

.plan-content {
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.plan-card:hover .plan-content {
  transform: translateY(-8px);
}

/* Sombra de texto para asegurar legibilidad */
.plan-card h2, .plan-card p {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}
/* ==========================================================================
   SECCIÓN ESTADÍA PERMANENTE - OPCIONES DE ALOJAMIENTO Y PESTAÑAS
   ========================================================================== */
#habitaciones .nav-pills .nav-link {
  color: var(--color-primary-dark);
  background-color: #ffffff;
  border: 1px solid var(--color-secondary);
  transition: all 0.3s ease;
}

#habitaciones .nav-pills .nav-link:hover {
  background-color: var(--color-bg-light);
  color: var(--color-accent);
}

#habitaciones .nav-pills .nav-link.active {
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 4px 12px rgba(148, 183, 66, 0.3);
}

.bg-success-subtle-custom {
  background-color: var(--color-secondary) !important;
  color: var(--color-primary-dark) !important;
  border: 1px solid var(--color-primary);
}
/* ==========================================================================
   SECCIÓN ESTADÍA TEMPORAL - OPCIONES DE ALOJAMIENTO Y PESTAÑAS
   ========================================================================== */
#habitaciones .nav-pills .nav-link {
  color: var(--color-text-dark);
  background-color: transparent;
  border: 1px solid var(--color-secondary);
  transition: all 0.3s ease;
}

#habitaciones .nav-pills .nav-link:hover {
  background-color: var(--color-bg-light);
  color: var(--color-primary-dark);
}

#habitaciones .nav-pills .nav-link.active {
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 4px 12px rgba(148, 183, 66, 0.3);
}

.bg-success-subtle-custom {
  background-color: var(--color-secondary) !important;
  color: var(--color-primary-dark) !important;
  border: 1px solid var(--color-primary);
}
/* ==========================================================================
   SECCIÓN PLAN PASA DÍA - CARACTERÍSTICAS Y TARJETAS
   ========================================================================== */
.card-pasadia-item {
  border: none;
  background-color: var(--color-bg-card);
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-pasadia-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.card-pasadia-adicional {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card-pasadia-adicional:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06) !important;
}
/* ==========================================================================
   SECCIÓN RUTA DE INGRESO (TIMELINE & SELECCIÓN DE FASES)
   ========================================================================== */
.phase-btn {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  overflow: hidden;
}

.phase-btn.active {
  transform: scale(1.04) !important;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2) !important;
}

.phase-btn-content {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border-radius: 12px;
}
/* ==========================================================================
   4. NAVEGACIÓN DROPDOWN MEJORADA
   ========================================================================== */

.dropdown-menu {
  border-radius: 12px;
  padding: 0.75rem 0;
}

.dropdown-item {
  padding: 0.6rem 1.5rem;
  color: var(--color-primary-dark);
  font-weight: 500;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--color-bg-light);
  color: var(--color-accent) !important;
  padding-left: 1.75rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   5. SECCION DE ACTIVIDADES
   ========================================================================== */
/* Contenedor principal de la barra al 90% de ancho */
  .actividades-nav-bar {
    width: 90%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  }

  /* Botón de categoría con fondo de imagen (Ancho de ~22.5%) */
  .btn-categoria {
    width: 23.5%;
    height: 90px;
    border: none;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-size: cover;
    background-position: center;
  }

  /* Capa de contraste oscuro sobre la imagen */
  .btn-categoria::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.75) 100%);
    transition: background 0.3s ease;
  }

  .btn-categoria:hover, .btn-categoria.active {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  }

  /* Estado activo destacado */
  .btn-categoria.active::before {
    background: linear-gradient(180deg, rgba(25, 135, 84, 0.8) 0%, rgba(15, 81, 50, 0.95) 100%);
  }

  .btn-categoria span {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  }

  /* ESTRUCTURA FLIP CARD (TARJETA GIRATORIA INTERACTIVA) */
  .flip-card {
    background-color: transparent;
    width: 100%;
    height: 190px;
    perspective: 1000px;
    cursor: pointer;
  }

  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  }

  /* Efecto giratorio al hacer clic o al pasar el mouse */
  .flip-card.flipped .flip-card-inner,
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }

  .flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* Frente de la Card (Ícono lineal SVG + Título) */
  .flip-card-front {
    background-color: #ffffff;
    border: 1px solid #eef2f6;
    color: #2c3e50;
  }

  .flip-card-front svg {
    width: 42px;
    height: 42px;
    stroke: #198754;
    margin-bottom: 12px;
  }

  /* Reverso de la Card (Información detallada) */
  .flip-card-back {
    background-color: #198754;
    color: #ffffff;
    transform: rotateY(180deg);
  }

  /*opcion 2*/
  /* Barra contenedor de botones con Íconos (90% de ancho) */
  .actividades-nav-bar-op2 {
    width: 90%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  }

  /* Botón de categoría con Ícono y Borde */
  .btn-categoria-op2 {
    width: 23.5%;
    height: 80px;
    border: 2px solid #eef2f6;
    border-radius: 12px;
    background-color: #ffffff;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .btn-categoria-op2 svg {
    width: 26px;
    height: 26px;
    stroke: #198754;
    transition: all 0.3s ease;
  }

  .btn-categoria-op2:hover {
    border-color: #198754;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  }

  .btn-categoria-op2.active {
    background-color: #198754;
    border-color: #198754;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(25, 135, 84, 0.25);
  }

  .btn-categoria-op2.active svg {
    stroke: #ffffff;
  }

  /* ESTRUCTURA FLIP CARD OPCIÓN 2 (FOTOS EN EL FRENTE) */
  .flip-card-op2 {
    background-color: transparent;
    width: 100%;
    height: 200px;
    perspective: 1000px;
    cursor: pointer;
  }

  .flip-card-inner-op2 {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  }

  .flip-card-op2.flipped .flip-card-inner-op2,
  .flip-card-op2:hover .flip-card-inner-op2 {
    transform: rotateY(180deg);
  }

  .flip-card-front-op2, .flip-card-back-op2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

  /* Frente con Imagen de Fondo + Overlay Oscuro */
  .flip-card-front-op2 {
    background-size: cover;
    background-position: center;
    color: #ffffff;
    position: relative;
  }

  .flip-card-front-op2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.75) 100%);
    z-index: 1;
  }

  .flip-card-front-op2 h5 {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  }

  /* Reverso con Texto Detallado */
  .flip-card-back-op2 {
    background-color: #2c3e50;
    color: #ffffff;
    transform: rotateY(180deg);
  }
  /* ==========================================
   ESTILOS GENERALES Y CONTENEDOR DE LA SEDE
   ========================================== */
.sede-module {
  padding: 4rem 1.5rem;
  background-color: #f8faf9;
  color: #2d3748;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.sede-container {
  max-width: 1200px;
  margin: 0 auto;
}

.margin-top-large {
  margin-top: 3.5rem;
}

.text-center {
  text-align: center;
}

/* Badges y Títulos */
.badge-tag {
  display: inline-block;
  background-color: #e6f4ea;
  color: #1e7e34;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.badge-tag-sub {
  display: inline-block;
  background-color: #e8f0fe;
  color: #1a73e8;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  color: #1b4332;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #5a6578;
  max-width: 680px;
  margin: 0 auto 2rem auto;
}

/* ==========================================
   BLOQUE 1: GRID INFORMACIÓN DE TENJO
   ========================================== */
.tenjo-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.tenjo-card-desc h3 {
  font-size: 1.4rem;
  color: #2d6a4f;
  margin-bottom: 1rem;
}

.tenjo-card-desc p {
  line-height: 1.65;
  color: #4a5568;
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.tenjo-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: center;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background-color: #f4f8f5;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.highlight-item:hover {
  transform: translateY(-2px);
}

.highlight-icon {
  background: #ffffff;
  color: #2d6a4f;
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.highlight-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.05rem;
  color: #1b4332;
}

.highlight-content p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.4;
}

/* ==========================================
   BLOQUE 2: CARD PRINCIPAL SEDE Y MAPA
   ========================================== */
.sede-card-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.sede-main-details {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sede-main-details h3 {
  font-size: 1.6rem;
  color: #1b4332;
  margin-bottom: 1rem;
}

.sede-main-details p {
  color: #4a5568;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.sede-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
}

.sede-features-list li {
  font-size: 0.92rem;
  color: #2d3748;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.list-icon {
  color: #2d6a4f;
  flex-shrink: 0;
}

/* Botones de Navegación GPS */
.sede-action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-waze, .btn-gmaps {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-waze {
  background-color: #33ccff;
  color: #003344;
}

.btn-waze:hover {
  background-color: #28b8e6;
  transform: translateY(-1px);
}

.btn-gmaps {
  background-color: #ea4335;
  color: #ffffff;
}

.btn-gmaps:hover {
  background-color: #d3382b;
  transform: translateY(-1px);
}

/* Contenedor del Mapa */
.sede-map-wrapper {
  position: relative;
  width: 100%;
  min-height: 380px;
}

.map-container {
  width: 100%;
  height: 100%;
  min-height: 380px;
  background-color: #e5e3df;
}

/* ==========================================
   BLOQUE 3: TARJETAS DE CONVENIOS
   ========================================== */
.convenios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.convenio-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #edf2f7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.convenio-badge {
  align-self: flex-start;
  background-color: #f0fdf4;
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.convenio-title {
  font-size: 1.2rem;
  color: #1b4332;
  margin: 0 0 0.5rem 0;
}

.convenio-text {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.convenio-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.convenio-location {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-convenio-map {
  background: transparent;
  border: 1px solid #2d6a4f;
  color: #2d6a4f;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-convenio-map:hover {
  background-color: #2d6a4f;
  color: #ffffff;
}

/* Configuración de botones con imagen de fondo directa */
  .phase-btn {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    overflow: hidden;
  }

  /* Efecto de agrandado leve al seleccionar la fase activa */
  .phase-btn.active {
    transform: scale(1.06) !important;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2) !important;
  }

  /* Ajuste de legibilidad del texto sobre las fotos */
  .phase-btn-content {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(0px);
  }

#galeria-habitaciones {
    scroll-margin-top: 200px; /* Offset para evitar solapamiento con el Navbar */
  }
  .nav-pills .nav-link.active .room-card {
    border: 2px solid #198754 !important;
    transform: translateY(-4px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
  }
  .nav-pills .nav-link.active .badge {
    background-color: #198754 !important;
    color: #fff !important;
  }
  .transition-all {
    transition: all 0.25s ease-in-out;
  }

/* ==========================================================================
   MEDIA QUERIES - DISEÑO RESPONSIVO POR RANGOS DE PANTALLA
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. MENOS DE 576px (EXTRA PEQUEÑO: Teléfonos móviles en modo retrato)
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
  /* Tipografía y Espaciados Globales */
  body {
    font-size: 0.95rem;
  }
  
  h1, .display-4 {
    font-size: 1.85rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.25rem !important;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Navbar Móvil */
  .navbar-custom .logo-nav {
    height: 55px !important;
  }

  /* Sección Planes (Fullscreen) en Móvil */
  .planes-container {
    flex-direction: column;
    height: auto;
  }

  .plan-card {
    height: 50vh;
    flex: 1 1 100% !important;
  }

  .plan-overlay {
    padding: 1.5rem 1rem;
  }

  /* Navegación por Pestañas de Habitaciones */
  #habitaciones .nav-pills {
    flex-direction: column;
    width: 100%;
  }

  #habitaciones .nav-pills .nav-link {
    width: 100%;
    text-align: center;
  }

  /* Videos Verticales (Reels / Shorts 9:16) */
  .ratio-9x16-wrapper {
    max-width: 100% !important;
  }

  /* Módulo de Actividades */
  .actividades-nav-bar,
  .actividades-nav-bar-op2 {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .btn-categoria,
  .btn-categoria-op2 {
    width: 100% !important;
    height: 70px;
  }

  /* Módulo Nuestra Sede */
  .tenjo-info-grid,
  .sede-card-main {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .sede-main-details {
    padding: 1.25rem;
  }

  .sede-action-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-waze, .btn-gmaps {
    width: 100%;
    justify-content: center;
  }

  /* Botones Generales */
  .btn-lg {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   2. DE 576px A 767px (PEQUEÑO: Teléfonos grandes / Modo Paisaje)
   -------------------------------------------------------------------------- */
@media (min-width: 576px) and (max-width: 767.98px) {
  h1, .display-4 {
    font-size: 2.2rem !important;
  }

  h2 {
    font-size: 1.75rem !important;
  }

  /* Sección Planes */
  .planes-container {
    flex-direction: column;
    height: auto;
  }

  .plan-card {
    height: 55vh;
    flex: 1 1 100% !important;
  }

  /* Módulo de Actividades */
  .btn-categoria,
  .btn-categoria-op2 {
    width: 48.5% !important;
    margin-bottom: 8px;
  }

  /* Grilla de Sede y Convenios */
  .tenjo-info-grid,
  .sede-card-main {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }

  .convenios-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   3. DE 768px A 991px (MEDIANO: Tablets en modo vertical / iPads)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Sección Planes */
  .planes-container {
    flex-direction: row;
    height: 75vh;
  }

  .plan-card {
    flex: 1 1 33.333% !important;
  }

  .plan-overlay {
    padding: 2rem 1.25rem;
  }

  /* Módulo de Actividades */
  .actividades-nav-bar,
  .actividades-nav-bar-op2 {
    width: 100%;
    flex-wrap: wrap;
  }

  .btn-categoria,
  .btn-categoria-op2 {
    width: 48.5% !important;
    margin-bottom: 8px;
  }

  /* Grilla de Sede */
  .tenjo-info-grid {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .sede-card-main {
    grid-template-columns: 1fr;
  }

  .map-container,
  .sede-map-wrapper {
    min-height: 320px;
  }

  /* Tarjetas Convenios */
  .convenios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   4. DE 992px A 1199px (GRANDE: Laptops pequeñas y Tablets horizontales)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Menú Desplegable en Hover para Escritorio */
  .navbar .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: fadeIn 0.2s ease-in-out;
  }

  /* Ajustes de Sección Planes */
  .planes-container {
    height: calc(100vh - 75px);
  }

  .plan-overlay {
    padding: 2.5rem 1.5rem;
  }

  /* Módulo de Actividades */
  .actividades-nav-bar,
  .actividades-nav-bar-op2 {
    width: 95%;
  }

  .btn-categoria,
  .btn-categoria-op2 {
    width: 23.5% !important;
  }

  /* Sede */
  .tenjo-info-grid,
  .sede-card-main {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   5. DE 1200px A 1399px (EXTRA GRANDE: Monitores y Laptops HD)
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .container {
    max-width: 1140px;
  }

  .planes-container {
    height: calc(100vh - 80px);
  }

  .plan-overlay {
    padding: 3rem 2rem;
  }

  .sede-container {
    max-width: 1140px;
  }
}

/* --------------------------------------------------------------------------
   6. 1400px O MÁS (ULTRA GRANDE: Monitores de gran tamaño y Pantallas 4K)
   -------------------------------------------------------------------------- */
@media (min-width: 1400px) {
  .container,
  .sede-container {
    max-width: 1320px;
  }

  body {
    font-size: 1.05rem;
  }

  h1, .display-4 {
    font-size: 3.25rem !important;
  }

  h2 {
    font-size: 2.25rem !important;
  }

  .planes-container {
    height: calc(100vh - 85px);
  }

  .plan-overlay {
    padding: 4rem 3rem;
  }

  .tenjo-info-grid,
  .sede-card-main {
    padding: 3rem;
    gap: 2.5rem;
  }

  .map-container,
  .sede-map-wrapper {
    min-height: 420px;
  }
}