/* === TABLAS === */
table {
  font-size: smaller;
}

/* === FUENTES GLOBALES === */
body {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 400;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700;
}

/* === BOTONES === */
.btn-success {
  background-color: #006B41;
  border: none;
  transition: all 0.3s ease;
}

.btn-success:hover {
  background-color: #6FB64E;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 107, 65, 0.2);
}

.btn-outline-success {
  color: #006B41;
  border-color: #006B41;
}

.btn-outline-success:hover {
  background-color: #006B41;
  color: white;
}

::placeholder {
  color: #888;
  font-size: 0.95rem;
  opacity: 1;
}

/* === MENÚ GENERAL === */
.menu-fondo {
  background-color: #f8f9fa;
}

.menu-fondo .nav-link {
  color: #006B41 !important;
}

.menu-fondo .nav-link:hover,
.menu-fondo .nav-link:focus {
  color: #FDBB24 !important;
}

.navbar-nav .nav-item {
  margin-left: 10px;
  white-space: nowrap;
}

.navbar-toggler {
  border-color: #006B41;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,107,65,1)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.logo-img {
  width: 140px;
  height: auto;
  max-width: 100%;
}

@media (max-width: 768px) {
  .logo-img {
    width: 100px;
  }
}

/* === HERO (INICIO) === */
.hero-section {
  position: relative;
  height: 90vh;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/campouno.png');
  filter: brightness(0.85);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-content h1 {
  font-weight: 700;
  font-size: 4rem;
  color: #fff;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.hero-content h4 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 1.7rem;
  color: #f5f5f5;
  text-shadow: -1px 3px 4px rgba(0, 0, 0, 0.56);
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content h4 {
    font-size: 1rem;
  }
}
/* === Ajuste Hero Section para pantallas grandes (≥1980px) === */
@media (min-width: 1980px) {
  .hero-bg {
    background-size: cover !important;       /* evita duplicado */
    background-repeat: no-repeat !important; /* no se repite */
  }
  .hero-content h1 {
    font-size: 5rem;
  }
  .hero-content h4 {
      font-size: 2rem;
  }
}

/* === FORMULARIO REGISTRO === */
.bg-light-green {
  background-color: #F3FBF4;
}

.registro-card {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  background-color: #7fb7672b;
  padding: 1.5rem;
}

.registro-card p {
  font-size: 0.9rem;
  color: #555;
  text-align: left;
}

.registro-card input,
.registro-card select,
.registro-card textarea {
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 10px;
  width: 100%;
  font-family: 'Poppins', sans-serif;
}

.registro-card input:focus,
.registro-card select:focus {
  border-color: #2B7A0B;
  box-shadow: 0 0 5px rgba(43, 122, 11, 0.3);
  outline: none;
}

.form-img {
  border-radius: 12px;
  object-fit: cover;
  max-height: 480px;
}

@media (max-width: 992px) {
  .form-img {
    margin-bottom: 2rem;
  }
}

/* === SIDEBAR === */
.sidebar {
  background: linear-gradient(180deg, #006B41 0%, #005030 100%);
  color: white;
  width: 240px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

/* === SECCIÓN CURSOS === */
#cursos {
  background-color: #fff;
  padding: 2.5rem 0;
}

#cursos h2 {
  color: rgb(26 117 82);
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.26);
}

#cursos .card {
  border: 1px solid #fbb503;
  background-color: #fff;
  height: 100%;
  transition: all 0.3s ease;
}

#cursos .card-img-top {
  height: 200px;
  object-fit: cover;
}

#cursos .card-body {
  padding: 1rem;
  text-align: justify;
}

#cursos .card-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgb(14 152 93);
  text-align: center;
}

#cursos .card-text {
  font-size: 0.8rem;
  text-align: justify!important;
  color: #444;
}

@media (max-width: 768px) {
  #cursos .col-md-5 {
    flex: 0 0 90%;
    max-width: 90%;
  }

  #cursos .card-img-top {
    height: 180px;
  }
}

/* === HERO NOSOTROS === */
.hero-nosotros {
  position: relative;
  height: 20vh;
  background: url('../img/fondocinco.jpg') center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero-nosotros .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-nosotros h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

/* === QUIÉNES SOMOS / MISIÓN Y VISIÓN === */
#quienes-somos {
  padding: 50px 0;
}

#mision-vision .card {
  background-color: #fff;
  border: 1px solid #fbb503;
  padding: 1.8rem;
  transition: all 0.3s ease;
}

#mision-vision .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#mision-vision .card .d-flex {
  align-items: center;
}

#mision-vision .card i {
  color: #fab104 !important;
  margin-right: 10px;
  font-size: 1.8rem;
}

#mision-vision .card h4 {
  color: rgb(14 152 93);
  font-weight: 600;
}

#mision-vision .card p {
  font-size: 0.95rem;
  color: #444;
  text-align: justify;
}

/* === CONTACTO === */
.contacto-section {
  background-color: #fff;
  padding: 3rem 0;
}

.contacto-section h2 {
  color: rgb(26 117 82);
}

.contacto-section .contacto-img {
  max-height: 400px;
  width: 100%;
  object-fit: cover;
}

.contacto-section .contacto-lista li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contacto-section .contacto-icon i {
  font-size: 1.25rem;
  color: #6dae52;
}

.contacto-whatsapp,
.contacto-mail {
  color: #000;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.contacto-whatsapp:hover,
.contacto-mail:hover {
  color: #6dae52;
}

@media (max-width: 991px) {
  .contacto-section {
    text-align: center;
  }

  .contacto-section .contacto-lista {
    justify-content: center;
  }
}

/* === FOOTER === */
.footer {
  background-color: #F9FAFB;
  font-family: 'Poppins', sans-serif;
}

.footer h3 {
  font-size: 1.8rem;
  color: rgb(26 117 82);
  letter-spacing: 2px;
}

.footer hr {
  border: none;
  height: 1px;
  background-color: rgb(106 174 76);
  margin: 10px 0;
}

.footer a {
  color: #2B7A0B;
  transition: opacity 0.3s ease;
}

.footer a:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer h3 {
    font-size: 1.4rem;
  }

  .footer img {
    max-height: 50px;
  }
}

/* === BOTÓN WHATSAPP === */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #1ebe5d;
  transform: scale(1.1);
}

@media (max-width: 576px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
    bottom: 15px;
    right: 15px;
  }
}

/* === AJUSTES RESPONSIVE DE TIPOGRAFÍA Y ESPACIADO === */

/* --- TABLETAS (entre 769px y 991px) --- */
@media (max-width: 991px) {
  /* Ajuste general */
  body {
    font-size: 0.95rem;
  }

  /* Títulos */
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  h4 {
    font-size: 1.2rem;
  }

  /* HERO (inicio y otros) */
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h4 {
    font-size: 1.1rem;
  }

  .hero-nosotros h1 {
    font-size: 2rem;
  }

  /* Secciones con texto */
  p,
  .card-text {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* Botones */
  .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

/* --- CELULARES GRANDES (hasta 768px) --- */
@media (max-width: 768px) {
  body {
    font-size: 0.9rem;
  }

  /* Titulares */
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  /* HERO PRINCIPAL */
  .hero-section {
    height: 100vh;
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: 1.9rem;
    line-height: 1.3;
  }

  .hero-content h4 {
    font-size: 1rem;
    line-height: 1.4;
  }

  /* HERO NOSOTROS */
  .hero-nosotros {
    height: 30vh;
  }

  .hero-nosotros h1 {
    font-size: 1.6rem;
  }

  /* Secciones */
  #cursos h2,
  #mision-vision h4 {
    font-size: 1.3rem;
  }

  p,
  .card-text {
    font-size: 0.85rem;
  }

  /* Tarjetas */
  #cursos .card-body {
    padding: 0.8rem;
  }

  /* Footer */
  .footer h3 {
    font-size: 1.2rem;
  }
}

/* --- CELULARES PEQUEÑOS (hasta 576px) --- */
@media (max-width: 576px) {
  body {
    font-size: 0.85rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .hero-section {
    height: 100vh;
  }

  .hero-content h1 {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .hero-content h4 {
    font-size: 0.9rem;
  }

  .hero-nosotros h1 {
    font-size: 1.4rem;
  }

  .hero-nosotros p {
    font-size: 0.9rem;
  }

  #cursos h2 {
    font-size: 1.2rem;
  }

  #cursos .card-title {
    font-size: 0.9rem;
  }

  #cursos .card-text {
    font-size: 0.8rem;
  }

  .footer h3 {
    font-size: 1rem;
  }

  .footer p {
    font-size: 0.75rem;
  }
}

/* === RESPONSIVE: SECCIÓN MISIÓN Y VISIÓN === */

/* --- Tablets (hasta 991px) --- */
@media (max-width: 991px) {
  #mision-vision .card {
    padding: 1.5rem;
  }

  #mision-vision .card h4 {
    font-size: 1.3rem;
  }

  #mision-vision .card i {
    font-size: 1.6rem;
    margin-right: 8px;
  }

  #mision-vision .card p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  #mision-vision .card .d-flex {
    justify-content: flex-start;
  }
}

/* --- Celulares medianos (hasta 768px) --- */
@media (max-width: 768px) {
  #mision-vision {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  /* #mision-vision .row {
    gap: 1rem;
  } */

  #mision-vision .card {
    text-align: center;
    padding: 1.3rem;
  }

  #mision-vision .card .d-flex {
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.8rem;
  }

  #mision-vision .card i {
    font-size: 1.5rem;
    margin: 0 0 0.3rem 0;
  }

  #mision-vision .card h4 {
    font-size: 1.2rem;
  }

  #mision-vision .card p {
    font-size: 0.85rem;
  }
}

/* --- Celulares pequeños (hasta 576px) --- */
@media (max-width: 576px) {
  #mision-vision .card {
    padding: 1rem;
  }

  #mision-vision .card i {
    font-size: 1.3rem;
  }

  #mision-vision .card h4 {
    font-size: 1.1rem;
  }

  #mision-vision .card p {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

/* === CONTROLES DEL CARRUSEL (Cursos) === */
/* === CONTROLES DEL CARRUSEL (Cursos) === */
.carousel-control-prev,
.carousel-control-next {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 55px !important;
  height: 55px !important;
  background-color: rgb(106 174 76) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  z-index: 10 !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: #f8cc73 !important;
  transform: translateY(-50%) scale(1.1) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25) !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1) !important;
  width: 24px !important;
  height: 24px !important;
}

.carousel-control-prev { left: 0 !important; }
.carousel-control-next { right: 0 !important; }

/* RESPONSIVE */

/* Móviles pequeños <576px */
@media (max-width: 575px) {
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px !important;
    height: 40px !important;
  }
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 16px !important;
    height: 16px !important;
  }
  .carousel-control-prev { left: 10px !important; }
  .carousel-control-next { right: 10px !important; }

  .carousel-item .card {
    flex-direction: column !important; /* Imagen arriba, texto abajo */
  }

  .carousel-item .card img {
    min-height: 200px !important;
    /* max-height: 40vh !important; */
    height: auto !important;
  }
}

/* Tablets y desktop >=576px */
@media (min-width: 576px) {
  .carousel-item .card img {
    min-height: 400px !important;
    height: auto !important;
  }
}

/* Tablets y móviles <992px (768px inclusive) */
@media (max-width: 992px) {
  .carousel-item .card {
    flex-direction: column !important; /* imagen arriba, texto abajo */
  }

  .carousel-item .card img {
    height: auto !important;        /* deja que la altura se ajuste */
    max-height: 300px !important;   /* opcional: limita altura para no ocupar demasiado */
    object-fit: contain !important; /* muestra toda la imagen */
  }

  .carousel-item .card .col-12.d-flex {
    justify-content: flex-start !important; /* centra verticalmente solo si quieres */
    padding-top: 15px;                      /* separa texto de imagen */
    padding-bottom: 15px;
  }
}


/* === LOGIN PAGE AJUSTADO === */
.login-section {
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 85vh;
}

.login-card {
  border-radius: 16px;
  overflow: hidden;
  background-color: #ffffff;
}

.login-img {
  object-fit: cover;
  height: 100%;
  min-height: 400px;
}

.login-form-wrapper {
  background-color: #ffffff;
}

.login-form-wrapper h2 {
  font-size: 1.8rem;
  letter-spacing: 0.5px;
}

.login-form-wrapper p {
  font-size: 0.95rem;
  color: #555;
}

.login-form-wrapper input {
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 10px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.login-form-wrapper input:focus {
  border-color: #2B7A0B;
  box-shadow: 0 0 5px rgba(43, 122, 11, 0.3);
  outline: none;
}

/* === Responsive === */
@media (max-width: 991px) {
  .login-form-wrapper {
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .login-img {
    min-height: 300px;
  }

  .login-form-wrapper h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .login-form-wrapper h2 {
    font-size: 1.3rem;
  }

  .login-form-wrapper p {
    font-size: 0.85rem;
  }

  .login-form-wrapper input {
    font-size: 0.85rem;
  }
}
