/* Fuente */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Roboto:wght@400;500&display=swap');


h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
}

/* ===== BASE ===== */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #f3f3f3;
  margin: 0;
}

/* ===== CONTENEDOR APP ===== */
.app-container {
  max-width: 600px;
  height: 95vh;
  margin: 20px auto;
  background: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ===== HEADER ===== */
.app-header {
  padding: 15px 20px;
  background: #fff;
  border-bottom: 1px solid #eee;

  display: flex;
  justify-content: space-between;
  align-items: center;

  position: sticky;
  top: 0;
  z-index: 10;
}

/* ===== LOGO ===== */
.logo {
  height: 60px;
}

.logo-dark{
  display:none;
}

body.dark-mode .logo-light{
  display:none;
}

body.dark-mode .logo-dark{
  display:block;
}

/* ===== CONTENIDO ===== */
.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

/* ===== FOOTER ===== */
.app-footer {
  background: #ffffff;
  border-top: 1px solid #eee;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.05);

  position: sticky;
  bottom: 0;
  z-index: 10;

    height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== BOTÓN HAMBURGUESA ===== */
.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h18M3 12h18M3 18h18'/%3E%3C/svg%3E");
}

/* ===== MENÚ OFFCANVAS ===== */
.offcanvas-body a {
  text-decoration: none;
  color: #212529;
  font-weight: 500;
  display: block;
  padding: 10px 18px;
}

.offcanvas-body a:hover {
  color: #c15627;
}

.offcanvas-title {
  padding: 20px 20px 10px;
  
}

/* ===== REDES SOCIALES ===== */
.social-icons {
  display: flex;
  justify-content: center; 
  gap: 12px;
  margin: 0;
  padding: 0;
}

.social-icons li {
  list-style: none;
}

.social-icons li a {
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  font-size: 25px;
  display: block;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease;
}

.social-icons li a:hover {
  transform: scale(1.1);
}

.social-icons li a .icon {
  position: relative;
  color: #c15627;
  transition: 0.5s;
  z-index: 3;
}

.social-icons li a:hover .icon {
  color: #fff;
  transform: rotateY(360deg);
}

.social-icons li a:before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  transition: 0.5s;
  z-index: 2;
}

.social-icons li a:hover:before {
  top: 0;
}

/* ===== COLORES POR RED ===== */
.social-icons li:nth-child(1) a:before { background: #3b5999; } 
.social-icons li:nth-child(2) a:before { background: #833AB4; } 
.social-icons li:nth-child(3) a:before { background: #000000; } 
.social-icons li:nth-child(4) a:before { background: #FF0000; } 
.social-icons li:nth-child(5) a:before { background: #000000; } 

/* HERO */
.hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

/* IMAGEN */
.hero-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

/* OVERLAY */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2),
    rgba(0,0,0,0.7)
  );

  color: #fff;
  padding: 20px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 90px;
}

/* TEXTO */
.hero-overlay h1 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.hero-overlay p {
  font-size: 15px;
  margin-bottom: 18px;
  text-align: center;
}

/* BOTÓN PRINCIPAL */
.btn-main {
  background: #c15627;
  color: #fff;
  text-align: center;
  padding: 8px;
  border-radius: 12px;
  text-decoration: none;
  margin-bottom: 9px;
  display: block;
  font-size: 15px;
}

/* GRUPOS */
.btn-group-2 {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

/* BOTONES SECUNDARIOS */
.btn {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 15px;
}

/* COLORES */
.btn.green { background: #3dac27; }
.btn.blue { background: #3b82f6; }
.btn.brown { background: #b6890f; }
.btn.orange { background: #d97706; }

.btn,
.btn-main {
  transition: all 0.15s ease;
}

/* EFECTO PRESS */
.btn:active,
.btn-main:active {
  transform: scale(0.96);
}

.buscar-centro {
  background: #ffffff;
  padding: 20px;
  border-radius: 16px;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.unidad{
  font-size: 26px !important; 
  padding-left: 2%; 
  color: rgb(107, 70, 14);
}

@media (max-width: 576px) {
  .buscar-centro h2 {
    font-size: 21px !important;
    white-space: nowrap;
  }
}

@media (max-width: 576px) {
  .promo-content h2 {
    font-size: 16px;
    white-space: nowrap;
  }


  .promo-content h5 {
    font-size: 15px;
  }
}

/* TÍTULO */
.buscar-centro h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

/* FILA */
.buscador-row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  justify-content: center;
  margin-top: 20px;
}

/* SELECT */
.buscador-select {
  flex: 1;
  border-radius: 10px;
  padding: 10px;
  font-size: 15px;
  font-family: 'Roboto', sans-serif;
}

/* BOTÓN MAPA */
.btn-map {
  background: #c15627;
  color: #fff;
  padding: 12px 18px; 
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  font-family: 'Roboto', sans-serif;

  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  
}

/* Hover */
.btn-map:hover {
  background:#6b460e;
  transform: translateY(-1px);
}

/* Press */
.btn-map:active {
  transform: scale(0.96);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
/* MAPA */
.map-preview iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: 12px;
}

/* SECCIÓN */
.pilares {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  margin-top: 20px;
}

/* TÍTULO */
.pilares h2 {
  font-size: 26px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center; 
  align-items: center;
  gap: 8px;
  color: rgb(107, 70, 14);
}

/* GRID */
.pilares-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* CARD */
.pilar {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: all 0.2s ease;
}


/* TÍTULO CARD */
.pilar h3 {
  font-size: 15px;
  margin-bottom: 5px;
}

/* TEXTO */
.pilar p {
  font-size: 15px;
  color: #555;
}

/* HOVER */
.pilar:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}



/* TÍTULO */
.titulo-pilares {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  margin-bottom: 20px;
}

/* CARDS */
.pilares-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pilar-card {
  position: relative;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
}

.pilar-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.contenido {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 50px;
  margin-top: 50px;
}

.btn-card {
  background: #fff;
  color: #212529;

  border: none;

  padding: 10px 18px;

  border-radius: 12px;

  font-size: 15px;
  font-weight: 500;

  margin-top: 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: all 0.2s ease;

  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* HOVER */
.btn-card:hover {
  background: #c15627;
  color: #ffffff;
  transform: translateY(-1px);
}

/* PRESS */
.btn-card:active {
  transform: scale(0.96);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* MODAL */
.modal-body {
  padding: 30px;
}

.modal-body h6 {
  font-size: 12px;
  font-weight: 700;
  color: #8a5a1f;
  margin: 18px 0 10px;
  letter-spacing: 0.5px;
}

.modal-body ul {
  padding-left: 18px;
}

.modal-body li {
  margin-bottom: 8px;
}

.modal-body a {
  color: #000000;
  text-decoration: none !important;
  transition: 0.2s ease;
}

.modal-body a:hover {
  text-decoration: underline;
}

.modal-content {
  border-radius: 20px;
  border: none;
}


.modal-title {
  font-weight: 400;
  padding-left: 2%;
  font-family: 'Poppins', sans-serif;
  color: #c15627;
}

/* ANIMACIÓN */
.modal.fade .modal-dialog {
  transform: translateY(30px);
  transition: transform 0.3s ease;
}

.modal.show .modal-dialog {
  transform: translateY(0);
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 12px;
  text-decoration: none;
  color: #212529;

  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.link-card i {
  color: #c15627;
  font-size: 16px;
}

/* CARD PROMOCIONAL */
.promo-card {
  position: relative;
  margin: 15px 0px;
  border-radius: 22px;
  overflow: hidden;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.171);
}

/* IMAGEN */
.promo-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

/* OVERLAY */
.promo-content {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.15),
    rgba(82, 82, 82, 0.76)
  );

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 22px;
   justify-content: center; /* vertical */
  align-items: center; 
}

/* TÍTULO */
.promo-content h2 {
  color: #fff;
  font-size: 26px;
  margin-bottom: 8px;
}


/* BOTÓN */
.btn-orange {
  background: #c15627;
  color: #fff;
  padding: 12px 18px; 
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  font-family: 'Roboto', sans-serif;

  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  
}

/* Hover */
.btn-orange:hover {
  background:#6b460e;
  transform: translateY(-1px);
}

/* Press */
.btn-orange:active {
  transform: scale(0.96);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);


  background: #c15627;
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 12px;

  width: fit-content;

  font-size: 16px;
  font-family: 'Roboto', sans-serif;

  transition: all 0.2s ease;
}

/* SECCIÓN */
.promo-section {
  margin-top: 10px;
}

/* TÍTULO */
.section-title {
  font-size: 26px;
  color: #6b460e;
  justify-content: center;

  display: flex;
  align-items: center;
  gap: 10px;

  margin: 0 15px 15px;
}



/* SECCIÓN */
.quick-access {
  margin: 30px 0px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* CARD */
.access-card {
  background: #fff;

  border-radius: 18px;

  padding: 18px;

  display: flex;
  align-items: center;
  gap: 15px;

  text-decoration: none;
  color: #212529;

  box-shadow: 0 4px 14px rgba(0,0,0,0.08);

  transition: all 0.2s ease;

  cursor: pointer;
}

/* HOVER */
.access-card:hover {
  transform: translateY(-2px);
}

/* PRESS */
.access-card:active {
  transform: scale(0.98);
}

/* ICONO */
.access-icon {
  width: 52px;
  height: 52px;

  background: #c15627;
  color: #fff;

  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 26px;

  flex-shrink: 0;
}

/* TEXTOS */
.access-text {
  flex: 1;
}

.access-text h3 {
  font-size: 20px;
  margin: 0;
}

.access-text p {
  margin: 3px 0 0;
  font-size: 15px;
  color: #666;
}

/* FLECHA */
.access-card .fa-chevron-right {
  color: #999;
  font-size: 14px;
}

/* CARD */
.directorio-card {
  display: flex;
  gap: 14px;

  background: #f7f7f7;

  border-radius: 16px;

  padding: 16px;

  margin-bottom: 14px;
}

/* ICONO */
.directorio-icon {
  width: 50px;
  height: 50px;

  background: #c15627;
  color: #fff;

  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 26px;

  flex-shrink: 0;
}

/* INFO */
.directorio-info h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.directorio-info p {
  margin: 4px 0 8px;
  color: #666;
  font-size: 15px;
}

.directorio-info a {
  color: #c15627;
  text-decoration: none;
  font-size: 15px;
  word-break: break-word;
}

.directorio-info a:hover {
  text-decoration: underline;
}

/*Oscuro*/
.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.theme-btn {
  border: none;
  background: none;
  font-size: 22px;
  color: #c15627;
  cursor: pointer;
}

body.dark-mode .theme-btn {
  color: #ffffff;
}

/* ========================= */
/* DARK MODE */
/* ========================= */

body.dark-mode {
  background: #696969;
}

body.dark-mode .app-container {
  background: #1e1e1e;
}

body.dark-mode .app-header,
body.dark-mode .app-footer {
  background: #3d3d3d;
  border-color: #333;
}

body.dark-mode .app-content {
  background: #1e1e1e;
}

/* Secciones */
body.dark-mode .buscar-centro,
body.dark-mode .access-card{
  background: #47474777;
}

body.dark-mode .directorio-card,
body.dark-mode .access-card{
  background: #81818154;
}

body.dark-mode .pilares{
  background: #47474700;
}

body.dark-mode .modal-content {
  background: #424242;
}

/* Menú lateral */
body.dark-mode .offcanvas {
  background: #c15627;
}

/* Textos */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode p,
body.dark-mode .offcanvas-body a{
  color: #f5f5f5;
}

/* Flechas */
body.dark-mode .fa-chevron-right {
  color: #d0d0d0;
}


/* Modal */
body.dark-mode .modal-header {
  border-bottom-color: #777777;
}

/* Links */
body.dark-mode .directorio-info a,
body.dark-mode .modal-body a {
  color: #ffffff;
}

/* Títulos naranjas */
body.dark-mode .modal-title,
body.dark-mode .section-title,
body.dark-mode .unidad,
body.dark-mode .titulo-pilares {
  color: #ffffff;
}

body.dark-mode .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23fff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h18M3 12h18M3 18h18'/%3E%3C/svg%3E");
}

.directorio-info a {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: 8px;
  padding: 8px 12px;

  border-radius: 20px;

  background: #d6d6d673;
  color: #c15627;

  text-decoration: none;
  font-size: 14px;
  font-weight: 500;

  transition: 0.2s ease;
}

body.dark-mode .directorio-info a {
  background: rgba(0, 0, 0, 0.199);
  color: #fc7d47;
}


.visitor-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin: 20px 0;

  color: #6b460e;
  font-size: 20px;
  font-family: 'Poppins', sans-serif;
}

.visitor-counter i {
  color: #c15627;
}

.visitor-counter strong {
  color: #c15627;
  font-size: 20px;
  font-family: 'Poppins', sans-serif;
}

body.dark-mode .visitor-counter {
  color: #f5f5f5;
}

