/* ===========================================================
   REEMPLAZO MÍNIMO DE UTILIDADES DE BOOTSTRAP (para eliminarlo)
   - Incluye solo las clases que usa tu HTML: container, row,
     col-md-6, d-flex, flex-column, flex-md-row, mb-*, img-fluid,
     card, shadow, form-control, form-select, btn, etc.
   - Está antes del CSS personalizado para que tus reglas lo
     sobreescriban cuando corresponda.
   =========================================================== */

/* Reset box sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Contenedor principal */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

/* Espaciados tipo Bootstrap */
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }

/* Sistema de filas/columnas simple */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Flex utilities */
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-start { align-items: flex-start !important; }

/* Breakpoint md = 768px (como Bootstrap) */
@media (min-width: 768px) {
  .flex-md-row { flex-direction: row !important; }
  .text-md-start { text-align: left !important; }
}

/* Texto y alineaciones */
.text-center { text-align: center !important; }
.text-muted { color: #6c757d !important; }

/* Imagenes fluidas */
.img-fluid { max-width: 100%; height: auto; display: block; }

/* Columnas - la lógica que usabas (se respeta tu override más abajo) */
/* .col-md-6 {
  flex: 0 0 60%;
  max-width: 60%;
  display: inline-block;
} */

/* Móvil: columnas al 100% */
/* @media (max-width: 768px) {
  .col-md-6 { flex: 0 0 100%; max-width: 100%; }
} */

/* Tarjetas y utilidades */
.card {
  background-color: #fff;
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 6px;
  overflow: visible;
}

.card-body {
  padding: 1rem;
}

/* Sombra similar a Bootstrap */
.shadow {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
}

/* Bordes */
.border-0 { border: 0 !important; }

/* Grid simple para botones */
.d-grid { display: grid; }
.d-grid > .btn { width: 100%; }

/* Formularios (estilos base, luego tu CSS los ajusta dentro de .formulario-card) */
.form-control,
.form-select {
  display: block;
  width: 100%;
  padding: 8px 10px;
  font-size: 0.95rem;
  line-height: 1.25;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 4px;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  box-sizing: border-box;
}

/* Checkbox */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.form-check-input {
  width: 4rem;
  height: 1rem;
  margin-top: 0.15rem;
  margin-right: 0.5rem;
}

/* Botones base */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  padding: .5rem .75rem;
  font-size: .9rem;
  line-height: 1.2;
  border-radius: .25rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

/* Variante success (se sobreescribe más abajo para tu verde) */
.btn-success { background-color: #198754; color: #fff; border-color: #198754; }

/* Utilities */
.text-white { color: #fff !important; }

/* ========================================================================
   FIN REEMPLAZO UTILIDADES BOOTSTRAP
   ======================================================================== */

/* =======================
   🎨 ESTILOS GENERALES
======================= */
body {
  background-color: #ffffff;
  font-family: "brownstdregular", sans-serif;
}

.text-green-custom,
.separte {
  color: #78b83a !important;
}

.color-orange {
  color: #ff902a !important;
}

/* =======================
   📝 FORMULARIO
======================= */
.formulario-card {
  max-width: 400px;
  margin: 50px auto;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 100%;
  box-sizing: border-box;
}

.formulario-card h5 {
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 20px;
  color: #000;
}

/* Asegurar que inputs dentro del formulario mantengan tu estilo */
.formulario-card .form-control,
.formulario-card .form-select {
  border: 1px solid #ddd;
  border-radius: 0;
  font-size: 0.85rem;
  padding: 8px;
}

.formulario-card .btn-success {
  background-color: #000;
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 0;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: background-color 0.3s ease;
}

.formulario-card .btn-success:hover {
  background-color: #333;
}

.formulario-card .privacy-text {
  font-size: 0.8rem;
  color: #333;
}

.formulario-card .privacy-text a {
  color: #000;
  font-weight: bold;
  text-decoration: none;
}

.formulario-card .privacy-text a:hover {
  text-decoration: underline;
}

/* ===========================
   🎓 Oferta Académica
=========================== */
.oferta-inner .dynamic-grid-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.oferta-inner .dynamic-grid-cols img {
  width: 100%;
  max-height: 170px;
  object-fit: contain; /* ✅ No se deforma */
  border-radius: 20px;
}

/* 🔹 Ajuste de imágenes en las tarjetas */
.oferta-academica .card img {
  width: 90px;
  height: 120px;
  object-fit: contain;
  border-radius: 10px;
}

/* ===========================
   📐 Columnas principales
=========================== */
.col-md-6.text-center.text-md-start { 
  flex: 0 0 40%; 
  max-width: 40%;
  display: inline-block; 
}

.col-md-6 { 
  flex: 0 0 60%; 
  max-width: 46%; 
  display: inline-block;
}

/* ===========================
   🌐 Logos
=========================== */
.logo-img {
  max-width: 150px;
  height: auto;
  margin-bottom: 1rem;
  display: inline-block;
}

/* ===========================
   🔗 Accesos Directos
=========================== */
.direct-access-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ✅ siempre 2 columnas */
  grid-template-rows: auto auto;         /* ✅ siempre 2 filas */
  gap: 20px;
  justify-items: center; /* centra cada cuadro */
  align-items: stretch;
  width: 100%;
}

/* 🎯 Bloques independientes */
.box-filter-green1,
.box-filter-green2,
.box-filter-green3,
.box-filter-green4 {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  background-color: #7db928;
  border-radius: 15px;
  transition: transform 0.2s ease;
  box-sizing: border-box;
  height: 100%;
}

.box-filter-green1:hover,
.box-filter-green2:hover,
.box-filter-green3:hover,
.box-filter-green4:hover {
  transform: scale(1.03);
}

.box-filter-green1 img,
.box-filter-green2 img,
.box-filter-green3 img,
.box-filter-green4 img {
  max-width: 80px;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}

.box-text1,
.box-text2,
.box-text3,
.box-text4 {
  background-color: #65a21c;
  border-radius: 20px;
  padding: 6px 10px;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.box-text1 .small-text1,
.box-text2 .small-text2,
.box-text3 .small-text3,
.box-text4 .small-text4 {
  font-size: 13px;
  font-weight: 400;
}

.box-text1 .big-text1,
.box-text2 .big-text2,
.box-text3 .big-text3,
.box-text4 .big-text4 {
  font-size: 16px;
  font-weight: 700;
}

.direct-access-select-item1{
  width: 100%;
}

.direct-access-select-item2{
  width: 260px;
}

.direct-access-select-item4{
width: 100%;
}

.direct-access-select-item1 a,
.direct-access-select-item2 a,
.direct-access-select-item3 a,
.direct-access-select-item4 a {
  text-decoration: none;
  color: inherit;
}

/* ===========================
   📱 Responsive
=========================== */
@media (max-width: 768px) {
  .row.d-flex.flex-column.flex-md-row {
    flex-direction: column;
  }

  .col-md-6.text-center.text-md-start,
  .col-md-6:not(.text-center.text-md-start) {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .oferta-inner .dynamic-grid-cols {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .oferta-inner .dynamic-grid-cols img {
    max-height: 150px;
  }

  .formulario-card {
    max-width: 100%;
    margin: 20px auto;
  }

  .container.py-5 {
    padding: 0 15px;
  }

  .direct-access-container {
    grid-template-columns: 1fr; /* ✅ en móvil se apilan */
  }

  .box-filter-green1,
  .box-filter-green2,
  .box-filter-green3,
  .box-filter-green4 {
    max-width: 220px;
    padding: 10px;
    gap: 10px;
  }

  .box-filter-green1 img,
  .box-filter-green2 img,
  .box-filter-green3 img,
  .box-filter-green4 img {
    max-width: 70px;
  }

  .box-text1 .small-text1,
  .box-text2 .small-text2,
  .box-text3 .small-text3,
  .box-text4 .small-text4 {
    font-size: 11px;
  }

  .box-text1 .big-text1,
  .box-text2 .big-text2,
  .box-text3 .big-text3,
  .box-text4 .big-text4 {
    font-size: 14px;
  }
}

@media (min-width: 1200px) {
  .direct-access-container {
    gap: 25px;
  }

  .box-filter-green1,
  .box-filter-green2,
  .box-filter-green3,
  .box-filter-green4 {
    max-width: 260px;
    padding: 12px;
  }

  .box-text1 .small-text1,
  .box-text2 .small-text2,
  .box-text3 .small-text3,
  .box-text4 .small-text4 {
    font-size: 14px;
  }

  .box-text1 .big-text1,
  .box-text2 .big-text2,
  .box-text3 .big-text3,
  .box-text4 .big-text4 {
    font-size: 18px;
  }
}

/* ===========================
   🖼 Grid Imágenes Flexible
=========================== */
.dynamic-grid-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
}

/* ===========================
   📊 Registros (tablas)
=========================== */
#registros-container {
  font-family: 'Arial', sans-serif;
  background-color: #f8f9fa;
  padding: 20px;
  margin: 0 auto;
  max-width: 95%;
  box-sizing: border-box;
}

#registros-container h1 {
  color: #7DB928;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  font-size: 24px;
}

#registros-container .table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#registros-container .table th, 
#registros-container .table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

#registros-container .table th {
  background-color: #7DB928;
  color: #ffffff;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
}

#registros-container .table td {
  font-size: 14px;
  color: #495057;
}

#registros-container .table tr:hover {
  background-color: #f1f3f5;
}

#registros-container .table td[colspan] {
  text-align: center;
  font-style: italic;
  color: #868e96;
}

@media (max-width: 768px) {
  #registros-container {
    padding: 10px;
  }

  #registros-container .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  #registros-container .table th, 
  #registros-container .table td {
    padding: 10px;
    font-size: 12px;
  }

  #registros-container h1 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  #registros-container .table th, 
  #registros-container .table td {
    padding: 8px;
    font-size: 10px;
  }

  #registros-container h1 {
    font-size: 18px;
  }
}

/* ===========================
   🔗 Enlaces Responsivos
=========================== */
.responsive-link {
  display: inline-block;
  padding: 0.75em 1.5em;
  font-size: 1rem;
  font-family: system-ui, sans-serif;
  color: #fff;
  background-color: #7DB928;
  text-decoration: none;
  border-radius: 0.5em;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.responsive-link:hover,
.responsive-link:focus {
  background-color: #7DB928;
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .responsive-link {
    font-size: 1.1rem;
    padding: 1em 2em;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}
/* ................................................................................ */

/* Sobrescribir el color verde de Bootstrap con #7DA938 */
.btn-success,
.bg-success {
  background-color: #7da938 !important; /* Fondo verde */
  border-color: #7da938 !important; /* Borde verde */
}

.btn-success:hover,
.bg-success:hover {
  background-color: #7da938 !important; /* Sin cambios en hover */
  border-color: #7da938 !important;
}

/* Texto del menú siempre verde */
.nav-link {
  color: #7da938 !important; /* Verde para el texto */
}

.nav-link:hover {
  color: #7da938 !important; /* Sin cambios en hover */
}

/* Asegurar que botones tengan texto blanco */
.btn-success.text-white,
.bg-success.text-white {
  color: white !important;
}

/* Botón personalizado en el carousel */
.btn-warning {
  background-color: #ffc107 !important;
  color: #333 !important;
}

.btn-warning:hover {
  background-color: #ffffff !important;
}

.btn-sm-text {
  font-size: 0.9rem !important; /* Ajusta el tamaño según lo que necesites */
}


.logo-areandina {
    max-height: 50px; /* Cambia el tamaño a tu gusto */
    height: auto;
    width: auto;
}
