:root {
  --primary-blue: #1e5288;      /* Azul marino profesional */
  --turquois-light: #64d1d2;    /* Turquesa brillante */
  --turquois-dark: #3aa8a9;     /* Turquesa medio */
  --bg-gradient: #eaf7f8;       /* Fondo suave */
  --card-bg: #ffffff;
  --text-color: #2b3a4a;
  --white: #ffffff;
  --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.06);
  --border-radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-gradient);
  color: var(--text-color);
  line-height: 1.6;
}

/* ===================================================
   HEADER & NAVEGACIÓN
   =================================================== */
.main-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem 0.8rem;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.logo-container h1 {
  color: var(--primary-blue);
  font-size: 1.8rem;
  font-weight: bold;
}

.main-nav {
  background-color: var(--turquois-light);
  border-radius: 30px;
  padding: 0.4rem 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.main-nav > ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.main-nav a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background-color: rgba(255, 255, 255, 0.5);
  color: var(--primary-blue);
}

/* Submenús */
.has-dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  background-color: var(--turquois-light);
  min-width: 200px;
  list-style: none;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s ease;
  z-index: 100;
}

.dropdown-menu a {
  color: var(--primary-blue);
  padding: 0.7rem 1rem;
  border-radius: 0;
}

.dropdown-menu a:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===================================================
   SECCIÓN ADMINISTRACIÓN (CONTENIDO PRINCIPAL)
   =================================================== */
.main-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.page-title {
  text-align: center;
  margin-bottom: 2rem;
}

.page-title h2 {
  color: var(--primary-blue);
  font-size: 1.8rem;
  display: inline-block;
  border-bottom: 3px solid var(--turquois-light);
  padding-bottom: 0.4rem;
}

/* Cards Horario y Mensualidad */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-card {
  background-color: var(--card-bg);
  padding: 1.8rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
  border-top: 4px solid var(--turquois-dark);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.info-card h3 {
  color: var(--primary-blue);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.highlight-text {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--turquois-dark);
}

.price-text {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-blue);
}

.subtext {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.4rem;
}

/* Caja de Aviso Nota Importante */
.notice-box {
  background-color: #fff8e6;
  border-left: 5px solid #f39c12;
  padding: 1.2rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.notice-badge {
  background-color: #f39c12;
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Sección Datos Bancarios e Instrucciones */
.bank-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.bank-card, .instructions-card {
  background-color: var(--card-bg);
  padding: 1.8rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.bank-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eef2f5;
  padding-bottom: 0.8rem;
}

.bank-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.bank-header h3, .instructions-card h3 {
  color: var(--primary-blue);
  font-size: 1.15rem;
}

.bank-details {
  list-style: none;
  margin-bottom: 1.2rem;
}

.bank-details li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed #eef2f5;
  font-size: 0.95rem;
}

.bank-details code {
  background-color: #f0f7f7;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--primary-blue);
  font-weight: bold;
}

.bank-alert {
  background-color: #eaf7f8;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--primary-blue);
  text-align: center;
}

.bank-alert span {
  color: #d9534f;
  font-weight: bold;
}

.instructions-card ul {
  padding-left: 1.2rem;
  margin-top: 1rem;
}

.instructions-card li {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.instructions-card ol {
  padding-left: 1.2rem;
  margin-top: 0.4rem;
}

/* Footer */
.footer {
  background-color: var(--turquois-light);
  color: var(--primary-blue);
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

.footer-container p {
  margin: 0.3rem 0;
}

/* ===================================================
   RESPONSIVE MÓVIL Y TABLET
   =================================================== */
@media screen and (max-width: 820px) {
  .bank-section {
    grid-template-columns: 1fr;
  }

  .notice-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-container {
    flex-direction: column;
    text-align: center;
  }

  .logo-container h1 {
    font-size: 1.4rem;
  }
}

/* ===================================================
   VISTA MÓVIL Y TABLET MENU (Menor a 992px)
   =================================================== */

@media screen and (max-width: 992px) {

  /* Botón para abrir el panel */
  .nav-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background-color: var(--turquois-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
  }

  .hamburger, .hamburger::before, .hamburger::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--primary-blue);
    position: relative;
    transition: all 0.3s ease;
  }
  .hamburger::before { top: -6px; }
  .hamburger::after { top: 4px; }

  /* Fondo oscuro semi-transparente */
  .nav-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
  }
  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Panel lateral que se desliza desde la derecha */
  .main-nav {
    position: fixed;
    top: 0;
    right: -300px; /* Oculto fuera de pantalla */
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    border-radius: 0;
    padding: 1.5rem 1rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 999;
    overflow-y: auto;
  }

  .main-nav.active {
    right: 0; /* Desliza hacia la vista */
  }

  /* Encabezado del panel móvil */
  .nav-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    color: var(--primary-blue);
  }

  .close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-blue);
    cursor: pointer;
  }

  .main-nav > ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .main-nav a, .dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 0.8rem;
    border-radius: 10px;
    background-color: #f5f8fa;
  }

  /* Submenús dentro del panel */
  .has-dropdown:hover .dropdown-menu {
    display: none; /* Inactiva hover en móvil */
  }

  .dropdown-menu {
    position: static;
    display: none;
    background-color: #eef6f7;
    border-radius: 10px;
    margin-top: 0.4rem;
    padding: 0.3rem 0;
    box-shadow: none;
  }

  .has-dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding-left: 1.8rem;
    background-color: transparent;
  }

  .has-dropdown.open .arrow {
    transform: rotate(180deg);
  }
}