body,
.main-sidebar,
.main-header,
.content-wrapper {
  transition: all 0.3s ease;
}

#logoDark,
#logoLight {
  transition: opacity 0.4s ease;
}

.dataTables_length select {
  appearance: auto !important;
}

.dataTables_length {
  display: flex;
  align-items: center;
}

.dataTables_length label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 0;
  font-weight: 500;
}

.dataTables_paginate .pagination {
  margin: 0;
}

.dataTables_paginate .page-item {
  margin: 0 2px;
  /* espacio entre botones */
}
.dataTables_paginate .page-item:hover {
  border-radius: 5px;
}

.dataTables_paginate .page-link {
  padding: 3px 7px;
  font-size: 12px;
  border-radius: 4px;
}
.btn-group .btn {
  margin: 0 2px;
}

.btn.rounded-circle {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* menu */
nav-sidebar .nav-link.active {
  background-color: #a7d1ff !important;
  color: #fff !important;
  font-weight: 500;
  border-radius: 6px;
}

.nav-treeview .nav-link.active {
  background-color: rgba(140, 222, 255, 0.2) !important;
  color: #000000 !important;
}
body.dark-mode .nav-treeview .nav-link.active {
  background-color: rgba(140, 222, 255, 0.2) !important;
  color: #ffffff !important;
}
.nav-sidebar .nav-link:hover {
  background-color: rgba(0, 92, 190, 0.1);
}
.nav-treeview {
  padding-left: 12px;
}

.nav-treeview .nav-item {
  margin-bottom: 4px;
}

.nav-treeview .nav-link {
  margin-left: 20px;
  border-radius: 6px;
  font-size: 0.95rem;
}
.horario-row {
  display: flex;
  align-items: center;
  gap: 5px; /* espacio entre elementos */
  flex-wrap: nowrap; /* no hacer wrap, todo en la misma línea */
}

.horario-row select,
.horario-row input[type="time"] {
  width: auto; /* que se ajuste al contenido */
  flex: 1; /* todos los inputs ocupan espacio proporcional */
}

.horario-row button {
  flex: 0 0 auto; /* el botón mantiene su tamaño */
}
/* Sidebar con scroll */
.main-sidebar {
  height: 100vh;
  overflow-y: auto;
  position: fixed;
}

/* Opcional: mejora visual del scroll */
.main-sidebar::-webkit-scrollbar {
  width: 6px;
}

.main-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

/********************************
HC
********************************/
.hc-row {
  margin-bottom: 10px;
  padding-bottom: 6px;
}

.hc-label {
  font-weight: 600;
  font-size: large;
}

.hc-label i {
  margin-right: 6px;
  color: #17a2b8;
}

.hc-value {
  margin-left: 40px;
  margin-top: 3px;
  line-height: 1.4;
}

.hc-item br {
  margin-bottom: 4px;
}

/* Separación entre bloques */
.hc-item div,
.hc-item span {
  display: block;
  margin-bottom: 4px;
}
@media (max-width: 991px) {
  .sidebar {
    max-height: calc(100vh - 150px); /* ajustá según tu logo */
    overflow-y: auto;
  }
}

@media (min-width: 992px) {
  .sidebar {
    overflow: visible;
    max-height: none;
  }
}
/********************************
 FULLCALENDAR THEME PRO
*********************************/

/* =============================
   VARIABLES LIGHT
=============================*/
:root {
  --fc-bg: #ffffff;
  --fc-text: #212529;
  --fc-grid: #e9ecef;

  --fc-disponible: #bbffd0;
  --fc-fuera: #f1f3f5;

  --fc-turno: #0d6efd;
  --fc-sobreturno: #f9fd00;
  --fc-anulado: #fd0800;
}

/* =============================
   VARIABLES DARK (AdminLTE)
=============================*/
body.dark-mode {
  --fc-bg: #343a40;
  --fc-text: #e4e6eb;
  --fc-grid: #343a40;

  --fc-disponible: #7a7a7a;
  --fc-fuera: #343a40;

  --fc-turno: #3b82f6;
  --fc-sobreturno: #f9fd00;
  --fc-anulado: #fd0800;
}

/* =============================
   BASE CALENDARIO
=============================*/
.fc {
  background: var(--fc-bg);
  color: var(--fc-text);
  border-radius: 8px;
}
.fc a {
  color: var(--fc-text);
}
body.dark-mode .fc a {
  color: var(--fc-fuera);
}
/* GRID */
.fc .fc-scrollgrid,
.fc .fc-timegrid-slot {
  border-color: var(--fc-grid) !important;
}
.fc .fc-scrollgrid-s {
  background: var(--fc-grid);
}
.horario-disponible,
.dia-anulado,
.fc-no-laboral {
  background: var(--fc-anulado) !important;
  pointer-events: none; /* ❌ No se puede hacer click */
}
/* =============================
   HORARIOS (columna izquierda)
=============================*/
.fc-timegrid-slot-label {
  font-weight: 600;
  font-size: 13px;
  color: var(--fc-text);
}
.evento-sobreturno {
  z-index: 1 !important;
  opacity: 0.9;
}

/* Forzar orden visual: FullCalendar usa flexbox o floats dependiendo de la versión */
.fc-timegrid-event-harness {
  display: flex !important;
}
/* =============================
   HORARIO DISPONIBLE
=============================*/
.fc-bg-event.horario-disponible {
  background: var(--fc-disponible) !important;
  opacity: 0.4;
}
body.dark-mode .fc-event.turno-normal {
  background: var(--fc-turno) !important;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 500;
}
/* =============================
   FUERA DE HORARIO
=============================*/
.fc .fc-non-business {
  background: var(--fc-fuera) !important;
}

/* =============================
   EVENTOS NORMALES
=============================*/

.fc-event.turno-normal {
  background: var(--fc-turno) !important;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 500;
}

/* =============================
   SOBRETURNOS
=============================*/
.fc-event.sobreturno {
  background: var(--fc-sobreturno) !important;
  color: #fff;
  border-left: 4px solid rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  font-weight: 500;
}

.fc-v-event .fc-event-title:hover {
  transform: scale(1.03);
}

/* =============================
   HOY
=============================*/
.fc .fc-day-today {
  background: rgba(0, 123, 255, 0.08);
}

/* DARK ajuste hoy */
body.dark-mode .fc .fc-day-today {
  background: rgba(59, 130, 246, 0.15);
}

/* =============================
   NOW INDICATOR
=============================*/
.fc .fc-timegrid-now-indicator-line {
  border-color: #dc3545;
}

/* =============================
   ALTURA DE SLOT (tipo agenda médica)
=============================*/
.fc-timegrid-slot {
  height: 50px;
}
.fc-no-laboral {
  background: repeating-linear-gradient(
    45deg,
    #f8d7da,
    #f8d7da 10px,
    #f5c6cb 10px,
    #f5c6cb 20px
  ) !important;
  opacity: 0.6;
}
/********************************
Papepera calendario
*******************************/

/* CONTENEDOR */
.papelera-turnos {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 80px;
  height: 80px;
  background: #f8f9fa;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;

  transition: all 0.25s ease;
  z-index: 9999;
}

/* CUANDO APARECE */
.papelera-turnos.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* ICONO */
.papelera-turnos img {
  width: 38px;
  height: 38px;
  transition: all 0.2s ease;
}

/* TEXTO OPCIONAL */
.papelera-turnos .textoPapelera {
  position: absolute;
  bottom: 90px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;

  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

/* HOVER GENERAL */
.papelera-turnos:hover {
  transform: scale(1.1);
}

/* CUANDO ARRASTRÁS ENCIMA (ACTIVA) */
.papelera-turnos.activa {
  background: #dc3545; /* rojo */
  box-shadow: 0 10px 25px rgba(220, 53, 69, 0.4);
}

/* ICONO EN ACTIVA */
.papelera-turnos.activa img {
  filter: brightness(0) invert(1);
  transform: scale(1.2) rotate(-10deg);
}

/* TEXTO CUANDO ACTIVA */
.papelera-turnos.activa .textoPapelera {
  opacity: 1;
  transform: translateY(0);
}

/* EFECTO “LATIDO” CUANDO ESTÁ ACTIVA */
@keyframes latido {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

.papelera-turnos.activa {
  animation: latido 0.6s infinite;
}
/* TARJETA TURNO */
.fc-turno-card {
  padding: 6px;
  border-radius: 6px;
  font-size: 12px;
  color: #fff;
  height: 100%;
}

/*****************************
switch turnos profesional
*******************************/
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ff0000;
  transition: 0.3s;
  border-radius: 22px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #28a745;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.ql-toolbar {
  background: #17a2b8; /* azul AdminLTE */
  border-radius: 5px 5px 0 0;
}

.ql-toolbar button {
  color: white;
}

.ql-toolbar button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ql-container {
  border-radius: 0 0 5px 5px;
}
body.dark-mode input:-webkit-autofill,
body.dark-mode input:-webkit-autofill:hover,
body.dark-mode input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff !important; /* texto blanco */
  -webkit-box-shadow: 0 0 0px 1000px #343a40 inset !important;
  box-shadow: 0 0 0px 1000px #343a40 inset !important;
  caret-color: #ffffff !important;
  border: 1px solid #555 !important;
  transition: background-color 9999s ease-in-out 0s;
}
.required-asterisk {
  color: #dc3545; /* Rojo de Bootstrap */
  margin-left: 3px;
  font-weight: bold;
}

.select2-container--default .select2-selection--single {
  height: calc(2.25rem + 2px);
  padding: 0.375rem 0.75rem;
  display: flex;
  align-items: center;
  border: 1px solid #ced4da;
}
/* =========================
   SELECT2 DARK MODE FIX
========================= */

/* caja principal */
.select2-container--default .select2-selection--single {
  background-color: #1e1e1e;
  border: 1px solid #444;
  color: #fff;
  height: 38px;
}

/* texto seleccionado */
.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #fff !important;
  line-height: 36px;
}

/* placeholder */
.select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  color: #aaa !important;
}

/* dropdown */
.select2-container--default .select2-dropdown {
  background-color: #1e1e1e;
  border: 1px solid #444;
}

/* opciones */
.select2-container--default .select2-results__option {
  color: #fff;
}

/* hover opción */
.select2-container--default .select2-results__option--highlighted {
  background-color: #333;
  color: #fff;
}

/* input de búsqueda dentro del dropdown */
.select2-search--dropdown .select2-search__field {
  background-color: #2a2a2a;
  color: #fff;
  border: 1px solid #444;
}
.select2-container--default .select2-selection--multiple {
  background-color: #1e1e1e;
  border: 1px solid #444;
  color: #fff;
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice {
  background-color: #333;
  border: 1px solid #555;
  color: #fff;
}

/* ==========================================================================
   1. VARIABLES Y BASE
   ========================================================================== */
:root {
  --primary: #1e3a8a;
  --primary-dark: #1e293b;
  --accent: #3b82f6;
  --text-main: #1f2937;
  --text-light: #6b7280;
  --text-muted: #4b5563;
  --bg-body: #f8fafc;
  --white: #ffffff;
  /* Colores Sociales */
  --fb: #1877f2;
  --ig: #e4405f;
  --wa: #25d366;
  --tw: #1da1f2;
}

.bodynoticia {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
}

.nav-brand {
  font-family: "Playfair Display", serif;
}

/* ==========================================================================
   2. NAVEGACIÓN (Navbar)
   ========================================================================== */
.nave {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-socials {
  display: flex;
  gap: 15px;
  border-right: 1px solid #e2e8f0;
  padding-right: 20px;
}

.nav-socials a {
  color: var(--text-light);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.nav-socials a:hover {
  transform: translateY(-2px);
}
.nav-socials a.fb:hover {
  color: var(--fb);
}
.nav-socials a.ig:hover {
  color: var(--ig);
}
.nav-socials a.wa-link:hover {
  color: var(--wa);
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

.btn-back {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

.btn-back:hover {
  color: var(--accent);
  transform: translateX(-5px);
}

/* ==========================================================================
   3. PÁGINA DE NOTICIAS (noticias.php)
   ========================================================================== */
.header {
  background:
    linear-gradient(rgba(30, 58, 138, 0.9), rgba(30, 58, 138, 0.9)),
    url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?q=80&w=2000")
      no-repeat center/cover;
  color: white;
  padding: 80px 5%;
  text-align: center;
}

.header h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}
.header p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

.container {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}


.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.gridNoticias{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 3fr));
  gap: 30px;
}
.cards {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cards:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.cards-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.cards-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent);
  color: white;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cards-body {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.fecha {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cards-body h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 15px;
  line-height: 1.3;
}

.cards-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.cards-footer {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #f1f5f9;
}

.read-more {
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   4. PÁGINA DE ARTÍCULO (articulo.php)
   ========================================================================== */
.article-container {
  max-width: 1000px;
  margin: 40px auto 80px;
  padding: 0 25px;
}

.article-header {
  text-align: center;
  margin-bottom: 40px;
}

.meta-info {
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 15px;
  display: block;
}

.article-header h1 {
  font-size: 3rem;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 20px;
}

.date-share {
  color: var(--text-light);
  font-size: 0.95rem;
}

.featured-image {
    width: 100%;
    height: 400px;
  border-radius: 20px;
  margin-bottom: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.article-content {
  font-size: 1.15rem;
  color: #374151;
  line-height: 1.8;
}

/* Letra capitular */
.article-content p:first-of-type::first-letter {
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  float: left;
  line-height: 0.8;
  margin: 10px 12px 0 0;
  color: var(--primary);
  font-weight: 700;
}

.article-footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 2px solid #f1f5f9;
  text-align: center;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.share-buttons i {
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: 0.3s;
}

.share-buttons i:hover {
  transform: scale(1.2);
}
.share-buttons i.fa-facebook:hover {
  color: var(--fb);
}
.share-buttons i.fa-twitter:hover {
  color: var(--tw);
}
.share-buttons i.fa-whatsapp:hover {
  color: var(--wa);
}
.share-buttons i.fa-instagram:hover {
  color: var(--ig);
}
.share-buttons i.fa-link:hover {
  color: var(--primary);
}

/* ==========================================================================
   5. FOOTER PRINCIPAL
   ========================================================================== */
.main-footer {
  background: var(--primary-dark);
  color: #cbd5e1;
  padding: 70px 5% 30px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 25px;
  font-size: 1.2rem;
}

.footer-contact-info p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.footer-contact-info i {
  color: var(--accent);
  width: 18px;
  text-align: center;
}

.contact-link {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
.contact-link:hover {
  color: white;
}

.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-map {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 15px;
  filter: grayscale(0.3) contrast(1.1);
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-bottom {
  text-align: center;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #334155;
  font-size: 0.85rem;
}
/* ==========================================================================
   ESTILOS PARA REDES SOCIALES GRANDES (Footer)
   ========================================================================== */
.footer-social-big {
  display: flex;
  gap: 15px;
  align-items: center;
}

.footer-social-big a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(
    255,
    255,
    255,
    0.1
  ); /* Fondo sutil para que resalten en el footer oscuro */
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Efecto de elevación y color al hacer hover */
.footer-social-big a:hover {
  transform: translateY(-5px);
  color: white;
}

/* Colores específicos por red social */
.footer-social-big a.fb:hover {
  background-color: var(--fb);
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.footer-social-big a.ig:hover {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
  box-shadow: 0 4px 15px rgba(214, 36, 159, 0.4);
}

.footer-social-big a.wa-link:hover {
  background-color: var(--wa);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Ajuste para que los iconos de FontAwesome se centren perfectamente */
.footer-social-big a i {
  line-height: 0;
}
/* ==========================================================================
   6. RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .nav-right {
    gap: 15px;
  }
  .nav-socials {
    display: none;
  }
  .header h1 {
    font-size: 2.2rem;
  }
  .article-header h1 {
    font-size: 2.2rem;
  }
  /* Centramos el contenido de las columnas */
  .footer-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Centramos los iconos de contacto (que usan flex) */
  .footer-contact-info p {
    justify-content: center;
    width: 100%;
  }

  /* Centramos las redes sociales */
  .footer-social-big {
    justify-content: center;
    margin: 0 auto 20px;
  }

  /* Quitamos el padding lateral de la lista para que no desplace el texto */
  .footer-links {
    padding: 0;
  }

  /* Ajuste opcional: reducimos el padding superior del footer en móvil */
  .main-footer {
    padding: 40px 5% 20px;
  }
}
@media (min-width: 992px) {
  .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 900px; /* Estrechamos un poco el contenedor para que no queden tan anchas */
    margin-left: auto;
    margin-right: auto;
  }
  /* Centramos el contenido de las columnas */
  .footer-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Centramos los iconos de contacto (que usan flex) */
  .footer-contact-info p {
    justify-content: center;
    width: 100%;
  }

  /* Centramos las redes sociales */
  .footer-social-big {
    justify-content: center;
    margin: 0 auto 20px;
  }

  /* Quitamos el padding lateral de la lista para que no desplace el texto */
  .footer-links {
    padding: 0;
  }

  /* Ajuste opcional: reducimos el padding superior del footer en móvil */
  .main-footer {
    padding: 40px 5% 20px;
  }
}

/* Aseguramos que en tablets y móviles se vea de a 1 si el espacio es poco */
@media (max-width: 991px) {
  .grid {
    grid-template-columns: 1fr !important;
  }
  /* Centramos el contenido de las columnas */
  .footer-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Centramos los iconos de contacto (que usan flex) */
  .footer-contact-info p {
    justify-content: center;
    width: 100%;
  }

  /* Centramos las redes sociales */
  .footer-social-big {
    justify-content: center;
    margin: 0 auto 20px;
  }

  /* Quitamos el padding lateral de la lista para que no desplace el texto */
  .footer-links {
    padding: 0;
  }

  /* Ajuste opcional: reducimos el padding superior del footer en móvil */
  .main-footer {
    padding: 40px 5% 20px;
  }
}
