/* base.css — CEIJ Juárez */
:root {
  --primary: #16195E;
  --primary-hover: #16195E;
  --primary-light: #16195E;
  --primary-lighter: #16195E;
  --gradient-orange: #16195E;
  --white: #ffffff;
  --gray-bg: #f8f9fa;
  --gray-text: #555;
  --gray-dark: #333;
  --gray-light: #777;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --font-family: Arial, Helvetica, sans-serif;
  --bs-success: #16195E;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; margin: 0; padding: 0; background-color: #16195E; }
body { height: 100%; margin: 0; padding: 0; text-align: center; font-family: var(--font-family); display: flex; flex-direction: column; background-color: #16195E; color: var(--gray-dark); overflow-x: hidden; }
a { cursor: pointer; }
main { flex: 1; padding-bottom: 20px; background-color: #ffffff; }
img { max-width: 100%; height: auto; }
nav { background-color: var(--primary); }
nav.navbar { box-shadow: 0 4px 12px rgba(0,0,0,0.25); background-color: var(--primary); border-radius: 0; }
nav.navbar::after { content: none; }
.nav-link { color: var(--white) !important; }
.bi-bi-list { color: var(--primary); }
.navbar-nav { display: flex; gap: 25px; }
.navbar-nav .nav-link { position: relative; color: var(--white) !important; padding-bottom: 5px; }
.navbar-nav .nav-link::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--white); transition: width 0.3s ease; }
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { width: 100%; }
.dropdown-menu { transition: all 0.3s ease; opacity: 0; visibility: hidden; margin-top: 0; }
.dropdown-item { background-color: var(--white); }
.nav-item.dropdown:hover > .dropdown-menu { opacity: 1; visibility: visible; display: block; }
@media (max-width: 576px) { .dropdown-menu .dropdown-item { white-space: normal; word-wrap: break-word; font-size: 14px; } }
.custom-offcanvas { background-color: var(--primary); color: var(--white); }
.custom-offcanvas .nav-link { color: var(--white); }
.custom-offcanvas .nav-link:hover { color: #fff200; }
.custom-offcanvas .dropdown-menu { background-color: var(--white); }
.offcanvas .dropdown-menu .dropdown-item { white-space: normal; word-wrap: break-word; }
.card-header { background-color: var(--primary); color: var(--white); text-align: left; padding: 15px 20px; }
.card-header h4 { margin: 0; }
.main { display: flex; justify-content: flex-end; align-items: flex-end; font-family: Verdana, Geneva, Tahoma, sans-serif; min-height: 45vh; }
footer { position: relative; width: 100%; background: var(--primary); min-height: 100px; padding: 30px 50px; display: flex; justify-content: center; align-items: center; flex-direction: column; text-align: center; margin-top: 30px; }
footer .social_icon, footer .menu { position: relative; display: flex; justify-content: center; align-items: center; margin: 10px 0; flex-wrap: wrap; }
footer .social_icon li, footer .menu li { list-style: none; }
footer .social_icon li a { font-size: 2em; color: var(--white); margin: 0 10px; display: inline-block; transition: 0.5s; transform: translateY(-10px); }
footer .menu li a { font-size: 1.2em; color: var(--white); margin: 0 10px; display: inline-block; text-decoration: none; opacity: 0.75; }
footer .menu li a:hover { opacity: 1; }
footer p { color: var(--white); text-align: center; margin-top: 15px; margin-bottom: 10px; font-size: 1.1em; }
.footer-sections { display: flex; justify-content: space-between; align-items: center; max-width: 1000px; margin: 0 auto 20px auto; gap: 80px; }
.footer-section { display: flex; flex-direction: column; align-items: center; padding: 0 20px; }
.footer-section ul.social_icon { display: flex; gap: 20px; padding: 0; list-style: none; margin: 10px 0 0 0; }
.footer-section ul.social_icon li a { font-size: 2em; color: var(--white); transition: transform 0.3s ease, color 0.3s ease; }
.footer-section ul.social_icon li a:hover { transform: scale(1.2); }
footer .wave { position: absolute; top: -38px; left: 0; width: 100%; height: 38px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 38'%3E%3Cpath fill='%2316195E' d='M0,24 Q100,0 200,24 Q300,38 400,24 Q500,0 600,24 Q700,38 800,24 Q900,0 1000,24 Q1100,38 1200,24 L1200,38 L0,38 Z'/%3E%3C/svg%3E") repeat-x; background-size: 1200px 38px; animation: animatewave 4s linear infinite; }
footer .wave#wave1 { z-index: 1000; opacity: 1; bottom: 0; }
@keyframes animatewave { 0% { background-position: 0 0; } 100% { background-position: 1200px 0; } }
.zoom li a { transition: 1s; }
.zoom li a:hover { transform: scale(1.1); }
@media (max-width: 991px) { .footer-row { text-align: center; } .footer-links { width: 100%; margin-bottom: 30px; } }
@media (max-width: 768px) {
  main { padding-bottom: 0; }
  footer .waves, footer .wave, .waves, .wave { display: block !important; top: -25px !important; height: 25px !important; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 25'%3E%3Cpath fill='%2316195E' d='M0,15 Q100,0 200,15 Q300,25 400,15 Q500,0 600,15 Q700,25 800,15 Q900,0 1000,15 Q1100,25 1200,15 L1200,25 L0,25 Z'/%3E%3C/svg%3E") repeat-x !important; background-size: 1200px 25px !important; z-index: 1000 !important; pointer-events: none; animation: animatewave 4s linear infinite !important; }
  .main { min-height: auto !important; }
  footer { margin-top: 0 !important; position: relative; z-index: 1; padding: 0 20px 20px; }
  .main footer { flex-direction: column; min-height: auto; padding: 20px 20px; }
  .main footer .container.position-relative { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; }
  .main footer .position-absolute.top-50.start-50.translate-middle { position: static !important; transform: none !important; display: flex; justify-content: center; width: 100%; }
  .main footer .social_icon { display: flex; justify-content: center; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 0; }
  .main footer .social_icon li { margin: 0; }
  .main footer .d-flex.justify-content-center.justify-content-md-end { justify-content: center !important; width: 100%; }
  .main footer .social_icon li a ion-icon, .main footer .text-md-end p, .main footer .text-md-end button ion-icon, .main footer .text-md-end button { color: var(--white) !important; }
  .main footer .social_icon li a ion-icon, .main footer .text-md-end button ion-icon { font-size: 1.3rem; }
  .main footer .text-md-end .btn { width: auto; white-space: nowrap; }
  .footer-sections { flex-direction: column; gap: 20px; }
}
.btn-success { background: var(--primary); border: none; color: var(--white); padding: 10px 15px; font-size: 15px; border-radius: var(--radius-sm); transition: 0.2s; }
.btn-success:hover { background: var(--primary-hover); }
.modal-header { justify-content: center; position: relative; color: var(--white) !important; }
.modal-header .btn-close { position: absolute; right: 1rem; filter: invert(1); }
.filter-item { display: none; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-hover); }

