/* ========================================================================= */
/* === [1] CONFIGURACIÓN GLOBAL, PALETA Y UTILIDADES === */
/* ========================================================================= */

:root {
  --cecns-blue: #004080; /* Azul Primario Institucional */
  --cecns-gold: #ffc300; /* Dorado de Acento */
  --cecns-wine: #800020; /* Color Vino Oscuro */
  --text-color: #333;
  --bg-light: #f8f9fa;
  --bg-white: #fff;
  --link-color: var(--cecns-blue);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-white);
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: var(--cecns-gold);
}

.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
  padding: 0 5%;
}

.section-padding {
  padding: 3.5rem 0;
}

.bg-light {
  background-color: var(--bg-light);
}
.bg-blue-accent {
  background-color: var(--cecns-blue);
  color: white;
}
.text-gold {
  color: var(--cecns-gold) !important;
}
.text-white {
  color: var(--bg-white) !important;
}

.section-title {
  font-size: 2.2rem;
  color: var(--cecns-blue);
  margin-bottom: 2rem;
  text-align: center;
}
.section-title i {
  color: var(--cecns-gold);
  margin-right: 10px;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--cecns-gold);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ========================================================================= */
/* === [2] HEADER, NAV Y DROPDOWNS (MISMO ESTILO QUE style2ciclo.css) === */
/* ========================================================================= */

.main-header {
  background: var(--bg-white);
  padding: 0.5rem 5%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  height: 45px;
}
.logo h1 {
  color: var(--cecns-blue);
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--cecns-blue);
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  margin-left: auto;
}
.main-nav {
  margin-left: auto;
}
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
}
.main-nav a {
  text-decoration: none;
  color: var(--text-color);
  padding: 1rem 1rem;
  display: block;
  transition: color 0.3s, background-color 0.3s;
  font-weight: 500;
}
.main-nav a:hover {
  color: var(--cecns-blue);
  background-color: var(--bg-light);
}
.btn-cta-nav {
  background-color: var(--cecns-gold) !important;
  color: var(--cecns-blue) !important;
  border-radius: 5px;
  padding: 0.8rem 1.5rem !important;
  font-weight: bold;
  margin-left: 15px;
}
.btn-cta-nav:hover {
  background-color: var(--cecns-blue) !important;
  color: var(--cecns-gold) !important;
}

.dropdown {
  position: relative;
  z-index: 2000;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--cecns-blue);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  min-width: 350px;
  list-style: none;
  padding: 0;
  border-radius: 5px;
  z-index: 2001;
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}
.dropdown-toggle i {
  margin-left: 5px;
  font-size: 0.8em;
  transition: transform 0.3s ease;
}
.dropdown-menu li a {
  color: white;
  padding: 10px 15px;
  font-weight: 400;
}
.dropdown-menu li a:hover {
  background-color: var(--cecns-gold);
  color: var(--cecns-blue);
}
@media (min-width: 901px) {
  .dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

.main-footer {
  background: var(--cecns-blue);
  color: white;
  padding: 2rem 5%;
  text-align: center;
  font-size: 0.9rem;
}

/* ========================================================================= */
/* === [3] HERO SEGUNDO CICLO === */
/* ========================================================================= */

.second-cycle-hero {
  background: linear-gradient(rgba(0, 100, 0, 0.8), rgba(0, 100, 0, 0.8)),
    url("ruta/a/imagen_fondo_iiciclo.jpg") center/cover;
  padding: 5rem 5%;
  color: white;
  text-align: center;
}
.second-cycle-hero .level-hero-title {
  color: var(--cecns-gold);
  font-size: 3rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ========================================================================= */
/* === [4] RESPONSIVE (NAV + ALGUNOS AJUSTES) === */
/* ========================================================================= */

@media (max-width: 900px) {
  .main-header {
    justify-content: space-between;
  }

  .nav-toggle {
    display: block !important;
  }

  .main-nav {
    display: none !important;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--cecns-blue);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    margin-left: 0;
  }
  .main-nav.active {
    display: block !important;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
  }
  .main-nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  .main-nav a {
    color: var(--bg-white);
    padding: 12px 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .btn-cta-nav {
    display: none;
  }

  .dropdown-menu {
    position: static !important;
    background-color: #002c5c;
    box-shadow: none;
    min-width: unset;
    border-radius: 0;
    display: none !important;
    opacity: 1;
    visibility: visible;
  }
  .dropdown.open .dropdown-menu {
    display: block !important;
    padding: 0;
  }
  .dropdown-menu li a {
    padding: 10px 30px;
    background-color: #002c5c;
  }
}
