/* ============================
   RESET & BASE
   ============================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
}

:root {
  --verde: #636F03;
  --negro: #000000;
  --negro-claro: #1c131f;
  --rojo: #D10A11;
  --rosado: #E9004C;
  --azul: #1572FF;
  --blanco: #ffffff;
  --gris: #333E48;
  --grisClaro: #4C4C4C;
  --azulOscuro: #003E63;
  --blancoHueso: #F0F0F0;
  --azulClaro: #009CD8;
  --morado: #4458A6;
}

body {
  background-color: #fff;
  color: #000;
}

.form label {
  color: #5c6e2e !important;
}

.form label,
.form input,
.form select {
  display: block;
  font-family: var(--font-medium, "Inter", sans-serif);
  width: 100%;
  font-size: 14px;
}

/* ============================
   HEADER & NAV
   ============================ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0px;
  border-bottom: 1px solid #ccc;
  background-color: #fff;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 20%;
  margin-right: 1rem;
}

.logo-container img {
  max-width: 100%;
  width: 300px;
}

nav {
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: visible;
  width: 80%;
  height: 35px;
  padding: 0;
  border: 1px solid var(--negro);
  border-radius: 20px;
}

nav a {
  text-decoration: none;
  color: #000;
  font-size: 15px;
  padding: 0 19px;
  display: flex;
  align-items: center;
  height: 100%;
  transition: background-color .3s, color .3s;
  border-radius: 20px;
  white-space: nowrap;
}

nav a:hover {
  background-color: var(--verde);
  color: var(--blanco);
}

/* ============================
   HAMBURGUER / MENÚ MÓVIL
   ============================ */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  background-color: #000;
  height: 2px;
  margin: 2px 0;
  width: 25px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.mobile-nav a {
  color: var(--verde);
  text-decoration: none;
}

.show-menu {
  display: flex;
  position: absolute;
  z-index: 10005;
  background: #fff;
  width: 80%;
  padding: 20px 10px;
  border: 1px solid var(--negro);
  border-radius: 10px;
  margin: 0 auto;
  left: 0;
  right: 0;
}

.mobile-submenu-container>a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-submenu-container>a::after {
  content: "▸";
  transition: transform .2s ease;
}

.mobile-submenu-container.open>a::after {
  transform: rotate(90deg);
}

.mobile-submenu {
  display: none;
  flex-direction: column;
  padding-left: 15px;
  background: #fff;
}

.mobile-submenu a {
  padding: 10px 0;
  color: var(--negro);
  text-decoration: none;
}

.mobile-submenu-container.open .mobile-submenu {
  display: flex;
}

@media (max-width: 1161px) {
  .menu-toggle {
    display: flex;
    width: 52px;
    height: 40px;
    position: relative;
    z-index: 1001;
    border: 1px solid var(--negro-claro);
    border-radius: 50%;
    justify-content: center;
    align-items: center;
  }

  .menu-toggle span {
    background: #000;
    position: absolute;
    width: 50%;
    height: 1px;
    border-radius: 2px;
    transition: .3s ease;
    margin-top: -1px;
  }

  .menu-toggle span:nth-child(1) {
    top: calc(50% - 6px);
  }

  .menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }

  .menu-toggle span:nth-child(3) {
    top: calc(50% + 6px);
  }

  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 50%;
  }
}

/* ============================
   DROPDOWN (Oferta Académica)
   ============================ */
.has-submenu {
  position: relative;
}

.has-submenu>a {
  position: relative;
  cursor: default;
}

.has-submenu>a::after {
  content: "▾";
  font-size: .8em;
  margin-left: .35rem;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  background-color: var(--blanco);
  min-width: 460px;
  border: 1px solid var(--negro);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  z-index: 100;
  padding: 0;
}

.has-submenu:hover .submenu {
  display: block !important;
}

.has-submenu:focus-within .submenu {
  display: block !important;
}

.submenu-accordion {
  display: block;
  padding: 8px 0;
}

.has-submenu .submenu {
  display: none;
}

.has-submenu:hover .submenu {
  display: block;
}

.has-submenu:focus-within .submenu {
  display: none;
}

.submenu-items {
  display: none;
}

.submenu-group.open .submenu-items {
  display: block;
}

.submenu-group.open .submenu-toggle {
  background: #f7f9f2;
  color: var(--verde);
}

.submenu-group.open .submenu-toggle::after {
  transform: rotate(90deg);
}

.submenu-group {
  border-top: 1px solid rgba(0, 0, 0, .08);
}

.submenu-group:first-child {
  border-top: 0;
}

.submenu-toggle {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  color: var(--verde);
  cursor: pointer;
  border-radius: 10px;
}

.submenu-toggle::after {
  content: "▸";
  transition: transform .2s ease;
  font-size: .9em;
  margin-left: 8px;
}

.submenu-group.open .submenu-toggle {
  background: #f7f9f2;
  color: var(--verde);
}

.submenu-group.open .submenu-toggle::after {
  transform: rotate(90deg);
}

.submenu-items {
  display: none;
  padding: 6px 0 10px 16px;
}

.submenu-items a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--negro);
  text-decoration: none;
}

.submenu-items a:hover {
  background-color: var(--verde);
  color: var(--blanco);
}

/* ============================
   BANNER / SECCIONES YA EXISTENTES
   ============================ */
#Banner {
  --banner-desktop: url("./img/Banner1.webp");
  --banner-mobile: url("./img/Banner1-mobile.webp");
  background-image: var(--banner-desktop);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  min-height: clamp(320px, 60vh, 720px);
  display: grid;
  place-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 0;
  max-width: 1200px;
  background-color: #636F03;
}

.contenedorBanner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.columna1Banner {
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

.columna1Banner {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.columna2Banner {
  width: 50%;
}

.columna1Banner img {
  max-width: 100%;
  width: 100%;
}

.titulo-banner {
  font-size: 20px;
  font-weight: 200;
  color: var(--verde);
}

.subtitulo-banner {
  font-size: 25px;
  font-weight: 700;
  color: var(--verde);
}

.parrafo-banner {
  font-size: 14px;
  font-weight: 400;
  color: var(--negro-claro);
}

.subtitulo2-banner {
  font-size: 16px;
  font-weight: 700;
  color: var(--verde);
}

.redesSociales {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.redesSociales img {
  width: 30px;
}

.letrasReferidos a {
  color: var(--verde) !important;
  word-break: break-all;
}

#noti-central {
  background-color: var(--verde);
  color: var(--blanco);
}

#logo-central {
  background-color: var(--negro-claro);
}

.contenedorNoticentral {
  height: 100px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  padding: 40px 20px;
}

.contenedorNoticentral2 {
  height: 200px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.contenedorNoticentral img {
  width: 40px;
}

.contenedorNoticentral2 img {
  width: 450px;
  max-width: 100%;
}

.contenedorNoticentral3 {
  height: 200px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 20px;
}

.contenedorNoticentral3 img {
  width: 450px;
  max-width: 100%;
}

#imagenesNoticias {
  background-image: url('./img/noticias.webp');
  height: 250px;
  width: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.footer {
  padding: 40px 0 0 0;
  background-color: var(--negro-claro);
  color: var(--blanco);
  align-items: flex-start;
  justify-content: center;
  text-align: center;
}

.footer img {
  width: 350px;
  max-width: 100%;
}

.contenedorFooter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  max-width: 1500px;
  margin: 0 auto;
}

.columna {
  text-align: left;
  margin: 0 auto;
}

.tituloDivFooter {
  text-align: center;
}

.columna img {
  width: 250px;
  max-width: 100%;
}

.columna a {
  text-decoration: none;
  color: var(--blanco);
}

.columna a:hover {
  text-decoration: dashed;
}

.titulosFooter {
  font-size: 16px;
}

.contenedor2025 {
  font-size: 12px;
  color: var(--blanco);
  background: #222;
  padding: 10px;
}

.ocultar-mobile {
  display: block;
}

.ocultar-desktop {
  display: none;
}

/* ============================
   RESPONSIVE GENERALES
   ============================ */
@media (max-width: 1161px) {
  nav {
    display: none;
  }

  .titulosFooter {
    font-size: 18px;
  }

  .ocultar-mobile {
    display: none;
  }

  .ocultar-desktop {
    display: block;
  }

  .logo-container {
    width: 100%;
  }

  .logo-container img {
    width: 70% !important;
  }

  @media (max-width: 1161px) {
    #Banner {
      background-image: var(--banner-mobile);
      min-height: 80vh;
       background-size: contain;
       max-width: 100%;
    }

    .contenedorBanner {
      padding: 28px 16px;
    }
  }

  .columna1Banner,
  .columna2Banner {
    width: 100%;
  }

  .columna1Banner img {
    max-width: 100%;
    width: 300px;
  }

  .redesSociales {
    grid-template-columns: repeat(3, 1fr);
    display: grid;
    place-items: center;
  }

  .contenedorNoticentral {
    font-size: 13px;
  }

  .footer,
  .columna {
    text-align: center;
  }

  .contenedorFooter {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0;
  }

  #imagenesNoticias {
    background-image: url('./img/notiMobile.webp');
  }
}

/* ============================
   REFERIDOS (existente)
   ============================ */
#referidos {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 10px 20px;
}

.contenedorReferidos {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.parte1Referidos {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 20px;
}

.parte1Referidos img {
  width: 60px;
  max-width: 100%;
}

@media (max-width: 1161px) {
  #referidos {
    padding: 20px 10px;
  }

  .parte1Referidos {
    align-items: flex-start;
    gap: 12px;
  }

  .parte1Referidos img {
    width: 40px;
  }

  .letrasReferidos {
    width: 100%;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.4;
  }

  .letrasReferidos a {
    color: var(--verde);
    word-break: break-all;
  }
}

/* ============================
   FORM GENERAL SIN PROGRAMA (existente)
   ============================ */
#formulario {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 20px;
}

#FORM_GENERAL_SINPROGRAMA {
  max-width: 100%;
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
}

#FORM_GENERAL_SINPROGRAMA .ic-class-form-row {
  margin-bottom: 16px;
}

#FORM_GENERAL_SINPROGRAMA .ic-class-form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  color: #8FA73A;
  font-size: .95rem;
}

#FORM_GENERAL_SINPROGRAMA .ic-class-form-input,
#FORM_GENERAL_SINPROGRAMA .ic-class-form-select {
  width: 100%;
  padding: 10px 12px;
  font-size: .95rem;
  border: 1px solid #8FA73A;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .2s ease;
}

#FORM_GENERAL_SINPROGRAMA .ic-class-form-input:focus,
#FORM_GENERAL_SINPROGRAMA .ic-class-form-select:focus {
  outline: none;
  border-color: #6B8E23;
}

#FORM_GENERAL_SINPROGRAMA .ic-class-form-input::placeholder {
  color: #9CA47A;
  opacity: 1;
}

#FORM_GENERAL_SINPROGRAMA .ic-class-form-row:nth-of-type(1)::before {
  content: "Agenda tu visita ";
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #6B8E23;
}

#FORM_GENERAL_SINPROGRAMA .ic-class-form-row:nth-of-type(7)::before {
  content: "";
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 24px;
  color: #6B8E23;
}

#FORM_GENERAL_SINPROGRAMA .ic-class-form-check-legal {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

#FORM_GENERAL_SINPROGRAMA .ic-class-form-check-input-legal {
  margin-right: 8px;
  margin-top: 3px;
  border: 1px solid #6B8E23;
  accent-color: #6B8E23;
}

#FORM_GENERAL_SINPROGRAMA .ic-class-form-check-label-legal {
  font-size: .9rem;
  color: #4A4A4A;
  line-height: 1.3;
}

#FORM_GENERAL_SINPROGRAMA .ic-class-form-link {
  color: #6B8E23;
  text-decoration: underline;
}

#FORM_GENERAL_SINPROGRAMA .ic-class-form-button-submit {
  background-color: #8FA73A;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color .2s ease;
  display: inline-block;
}

#FORM_GENERAL_SINPROGRAMA .ic-class-form-button-submit:hover,
#FORM_GENERAL_SINPROGRAMA .ic-class-form-button-submit:focus {
  background-color: #6B8E23;
  outline: none;
}

@media (max-width: 480px) {
  #FORM_GENERAL_SINPROGRAMA {
    padding: 8px;
  }

  #FORM_GENERAL_SINPROGRAMA .ic-class-form-row {
    margin-bottom: 12px;
  }

  #FORM_GENERAL_SINPROGRAMA .ic-class-form-button-submit {
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }
}

/* ============================
   AJUSTES EXTRAS
   ============================ */
@media (max-width: 820px) {
  .submenu {
    min-width: 320px;
  }

  .submenu-accordion {
    padding: 6px 0;
  }
}

.submenu {
  overflow: hidden;
}

.submenu-toggle {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 16px;
}

.submenu-accordion {
  padding: 8px 0;
  overflow-x: hidden;
}

:root {
  --verde: #6b7f2b;
  --verde-osc: #4f651f;
  --gris: #d9d9d9;
  --gris-txt: #2b2b2b;
  --radio: 10px;
}

.ucal-tabs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px
}

.ucal-tabs__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.ucal-tab {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 14px 16px;
  border-radius: var(--radio);
  background: var(--gris);
  color: var(--gris-txt);
  transition: transform .05s ease, background .2s ease, color .2s ease;
}

.ucal-tab:active {
  transform: scale(0.99);
}

.ucal-tab.is-active {
  background: var(--verde);
  color: #fff;
}

.ucal-tab.is-active .ucal-tab__icon {
  filter: brightness(0) invert(1);
}

.ucal-tab__icon {
  display: inline-flex;
}

.ucal-panel {
  display: none;
  animation: fade .18s ease both;
}
.ucal-panel h3{
  color:var(--verde);
}

.ucal-panel.is-active {
  display: block;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(4px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.ucal-list {
  list-style: none !important;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.ucal-list img {
  width: 350px;
  max-width: 100%;
}

.ucal-list .leaf {
  display: none;
}

@media (max-width: 1161px) {
  .ucal-tabs__list {
    grid-template-columns: 1fr;
  }

  .ucal-tab {
    font-size: 15px;
    padding: 12px 14px;
  }
}
