
h1 {
    font-weight: 300;
    letter-spacing: .5em;
    text-transform: uppercase;
    text-shadow: 0 4px 0 rgba(0, 0, 0, .12);
    position: relative;
    text-align: center;
   }
   .hero-text {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid white;
    padding: 25px;
    color: white;
    font-size: 36px;
   }
   @media (min-width: 320px) and (max-width: 570px) {
    .hero-text h1 {
     text-align: center;
      font-size: 1.4rem;
    }
   }
   @media (min-width: 320px) and (max-width: 1024px) {
    .hero-text {
      width: 80%;
      padding: 10px;
      border: 2px solid white;
    }
   }
   
   
   
   #parallax-world-of-ugg .parallax-one {
     height: 50vh;
     padding-top: 200px;
     padding-bottom: 200px; 
     overflow: hidden; 
     position: relative; 
     width: 100%; 
     background: linear-gradient(to bottom, #041ba014 , #096ed3eb), url("../../img/ubicacion/banner-ubicacion.png") no-repeat center center fixed;
     background-attachment: fixed; 
     background-size: cover; 
     -moz-background-size: cover; 
     -webkit-background-size: cover; 
     background-repeat: no-repeat; 
     background-position: top center;
   }
   
   @media screen and (max-width: 767px) {
     #parallax-world-of-ugg .parallax-one, #parallax-world-of-ugg .parallax-two, #parallax-world-of-ugg .parallax-three {
       padding-top:100px; 
       padding-bottom:100px;
     }
   }
   
   
   
  
   /*** Cards ***/
  
   .grid {
   
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-gap: 20px;
    align-items: stretch;
    padding: 5rem 0rem 5rem 0rem;
  
    
  }
  
  .grid > article {
    border: 1px solid #ccc;
    box-shadow: 2px 2px 6px 0px rgba(0, 0, 0, 0.3);
    text-align: center;
    align-items: center;
  }
  
  .grid > article img {
    max-width: 100%;
  }
  
  .grid > article i {
    font-size: 48px;
    line-height: 70px;
    height: 80px;
    width: 80px;
    border: 6px solid white;
    border-radius: 50%;
    background-color: #007bff;
    text-align: center;
    color: white;
    margin-top: -36px;
  }
  
  .grid .text {
    padding: 16px 20px 30px;
  }
  
  .grid .btn {
    margin-top: 20px;
  }









/* Contenedor principal adaptable */
.main-wrapper {
  max-width: 1000px;
  margin: 2rem auto;
}

/* CONTENEDOR RESPONSIVO (Móvil por defecto: 1 columna) */
.cards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  justify-items: center;
  margin: 1.5rem;
}

/* VERSION ESCRITORIO: Cambia automáticamente a 2 columnas */
@media (min-width: 768px) {
  .cards-container {
      grid-template-columns: 1fr 1fr;
  }
}

/* Estilos individuales de las tarjetas */
.card-sede {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  width: 100%;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.card-sede:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Área de la Imagen */
.card-header-img {
  height: 300px;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.bg-portales {
  background-color: #f1c40f;
  background-image:  url('../../img/ubicacion/portales.png');
}

.bg-copilco {
  background-color: #016cb9 !important;
  background-image:  url('../../img/ubicacion/copilco.png');
}

.badge-categoria {
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 20px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Cuerpo de la tarjeta */
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Hace que ambas tarjetas tengan exactamente la misma altura */
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.card-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0 0 20px 0;
  font-weight: 500;
}

/* Filas de Información */
.info-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
}

.info-icon {
  font-size: 1.1rem;
  margin-right: 12px;
  margin-top: 2px;
  flex-shrink: 0;
}

.info-text strong {
  color: #1e293b;
}

/* Botón inferior */
.btn-action {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1a4a88;
  color: #ffffff;
  text-decoration: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  margin-top: auto; /* Empuja el botón al fondo si una tarjeta tiene más texto que la otra */
  transition: background-color 0.2s ease;
  text-align: center;
  box-shadow: 0 4px 6px rgba(26, 74, 136, 0.15);
}

.btn-action:hover {
  background-color: var(--color-secundario);
  color: #ffffff;
}

.btn-action svg {
  margin-right: 8px;
  fill: currentColor;
}