/* ======================================================= */
/* ==== ESTILOS ESPECÍFICOS PARA LA PÁGINA PRINCIPAL ==== */
/* ======================================================= */

/* ========= HERO ========= */
.hero {
  background: var(--color-blanco);
  margin: 32px auto 0 auto;
  max-width: 900px;
  padding: 36px 28px;
  border-radius: 18px;
  box-shadow: var(--sombra-suave);
  text-align: center;
  position: relative;
  animation: fadeInDown 1.3s cubic-bezier(0.17,0.67,0.83,0.67);
}
.hero h1 {
  color: var(--color-principal);
  margin-bottom: 16px;
  font-size: 2.2rem;
  letter-spacing: 0.02em;
}
.hero p {
  font-size: 1.18rem;
  color: var(--color-gris);
  margin: 0 auto;
  max-width: 700px;
}

/* ========= SECCIONES GENERALES ========= */
main { display: block; }
section {
  max-width: 1000px;
  margin: 48px auto;
  padding: 0 18px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.23,1,0.32,1), transform 0.9s cubic-bezier(0.23,1,0.32,1);
  will-change: opacity, transform;
}
section.visible {
  opacity: 1;
  transform: none;
}
.section-title {
  text-align: left;
  color: var(--color-principal);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.icono-seccion {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.section-title:hover .icono-seccion,
.section-title:focus-within .icono-seccion {
  transform: scale(1.13) rotate(-5deg);
  filter: drop-shadow(0 0 8px #41d6fb88);
}

/* ========= ABOUT ========= */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
  background: var(--color-blanco);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(10,49,97,0.04);
  padding: 32px;
  animation: fadeInUp 1.2s 0.4s both;
}
.about-img {
  flex: 1 1 240px;
  min-width: 160px;
  max-width: 260px;
}
.about-img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(41,83,165,0.10);
  transition: box-shadow 0.3s;
}
.about-img img:hover {
  box-shadow: 0 6px 26px #41d6fb33;
}
.about-text {
  flex: 3 1 340px;
  min-width: 200px;
}

/* ========= CAPACITACIONES Y ANUNCIOS ========= */
.capacitaciones, .testimonios, .contacto, .anuncios {
  background: var(--color-blanco);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(10,49,97,0.04);
  padding: 32px 22px 36px 22px;
  margin-bottom: 32px;
}
.capacitaciones ul li {
  margin-bottom: 6px;
  position: relative;
  padding-left: 18px;
}
.capacitaciones ul li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #41d6fb 60%, #0a3161 100%);
  border-radius: 50%;
  display: inline-block;
  position: absolute;
  left: 0;
  top: 8px;
  transition: background 0.3s;
}
.anuncios-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.anuncio {
  border-left: 6px solid var(--color-acento);
  margin-bottom: 22px;
  padding-left: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: #f1f6fc;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(10,49,97,0.05);
  transition: box-shadow 0.3s, border-color 0.3s;
  animation: fadeInUp 0.7s both;
}
.anuncio:hover {
  box-shadow: 0 8px 24px #41d6fb33;
  border-left-color: #41d6fb;
}
.anuncio strong {
  font-size: 1.06rem;
  color: var(--color-principal);
}
.anuncio .detalles {
  color: var(--color-gris);
  font-size: 0.99rem;
  margin-top: 3px;
}
.anuncio .btn-azul {
  display: inline-block;
  margin-top: 10px;
  background: var(--color-acento);
  color: var(--color-blanco);
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 8px #41d6fb22;
  transition: background 0.2s, transform 0.2s;
}
.anuncio .btn-azul:hover, .anuncio .btn-azul:focus {
  background: var(--color-principal);
  color: var(--color-celeste);
  transform: translateY(-2px) scale(1.04);
}

/* ========= TESTIMONIOS ========= */
.testimonios-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.testimonio {
  background: #f7fafd;
  border-radius: 12px;
  padding: 22px 16px 18px 16px;
  box-shadow: 0 1px 8px rgba(41,83,165,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 220px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s, transform 0.9s;
  will-change: opacity, transform;
}
.testimonio.visible {
  opacity: 1;
  transform: none;
  animation: bounceIn 0.7s;
}
.testimonio .icon {
  color: var(--color-acento);
  font-size: 2.2rem;
  margin-bottom: 8px;
  transition: color 0.3s;
}
.testimonio:hover .icon {
  color: #41d6fb;
  filter: drop-shadow(0 0 4px #41d6fbbb);
}
.testimonio p {
  margin: 0 0 14px 0;
  font-size: 1.08rem;
  text-align: center;
  color: var(--color-gris);
}
.testimonio .autor {
  font-size: 0.93rem;
  color: #5b6887;
  text-align: center;
  margin-top: auto;
  font-style: italic;
}

/* ========= CONTACTO (FORMULARIO DE LA HOME) ========= */
.contacto-form {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeInUp 1s 0.7s both;
}
.contacto-form input, .contacto-form textarea, .contacto-form select {
  padding: 10px;
  border: 1px solid #cbd6e2;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #f9fbfd;
  resize: vertical;
  transition: border 0.2s;
}
.contacto-form input:focus, .contacto-form textarea:focus, .contacto-form select:focus {
  border: 1.5px solid #41d6fb;
  outline: none;
}
.contacto-form button {
  background: var(--color-acento);
  color: var(--color-blanco);
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-size: 1.04rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, transform 0.2s;
  margin-top: 8px;
  box-shadow: 0 2px 8px #41d6fb22;
}
.contacto-form button:hover, .contacto-form button:focus {
  background: var(--color-principal);
  transform: translateY(-2px) scale(1.04);
}


/* ========= ANIMACIONES ESPECÍFICAS DE LA HOME ========= */
@keyframes fadeInDown {
  0% { opacity:0; transform: translateY(-50px);}
  80% { opacity: 1;}
  100% {opacity:1; transform: none;}
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(60px);}
  100% { opacity: 1; transform: none;}
}
@keyframes bounceIn {
  0% { opacity: 0; transform: translateY(40px);}
  60% { opacity: 1; transform: translateY(-8px);}
  80% { transform: translateY(3px);}
  100% { transform: none;}
}

/* ========= RESPONSIVE ESPECÍFICO DE LA HOME ========= */
@media (max-width:900px) {
  .about { flex-direction: column; padding: 22px 10px; gap: 18px; }
  .hero { padding: 28px 10px; }
  section { padding: 0 6px; }
  .section-title { font-size: 1.3rem; }
  .icono-seccion { width: 32px; height: 32px; }
}
@media (max-width:600px){ .modal-caja{max-width:95vw;} }
@media (max-width:550px) {
  .hero h1 { font-size: 1.1rem; }
  .section-title { font-size: 1.1rem; }
  /* Estilos de header/footer para pantallas chicas se quedan en globales */
}

/* ========= MODAL MENSAJE (Puede ser usado en varias páginas) ========= */
#modal-mensaje {
  position: fixed; z-index: 9999; top: 0; left: 0; width: 100vw; height: 100vh;
  display: none; align-items: center; justify-content: center;
  background: rgba(30,40,90,0.20);
  animation: fadeInModal 0.3s;
}
@keyframes fadeInModal { from {opacity:0} to {opacity:1} }
.modal-fondo { position: absolute; top:0; left:0; width:100vw; height:100vh; }
.modal-caja {
  position: relative;
  background: #fff;
  border-radius: 18px;
  max-width: 400px; min-width: 250px;
  padding: 36px 22px 28px 22px;
  box-shadow: 0 8px 40px #2225;
  z-index: 10;
  text-align: center;
  font-size: 1.15rem;
  opacity: 0;
  transform: scale(0.92) translateY(30px);
  animation: modalIn 0.4s cubic-bezier(.5,1.9,.5,1.01) 0.18s forwards;
}
@keyframes modalIn {
  0% {opacity:0; transform: scale(0.92) translateY(30px);}
  70% {opacity:1; transform: scale(1.02) translateY(-3px);}
  100% {opacity:1; transform: scale(1) translateY(0);}
}
.modal-cerrar {
  position:absolute; right:12px; top:6px; cursor:pointer; font-size:1.6rem; color:#2953a5;
  font-weight:bold; transition:color 0.2s;
}
.modal-cerrar:hover { color:#41d6fb; }
.modal-ico {
  font-size: 2.3rem;
  display: block;
  margin-bottom: 10px;
  animation: bounceIn 0.6s;
}
.btn-disabled {
background-color: #a9acaf !important; /* Usamos !important para sobreescribir otros estilos */
cursor: not-allowed;
color: #e9ecef !important;
pointer-events: none; /* Evita que se pueda hacer clic */
}