* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
}

/* HEADER */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    border-bottom: 1px solid #ddd;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.logo img {
    height: 40px;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

/* TITLE */
.title-section {
    background-color: #5bbf4a;
    padding: 40px;
    text-align: center;
}

.title-section h1 {
    color: #fff;
    font-size: 36px;
}

/* DIRECTORY GRID */
.directory {
    max-width: 1100px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    background-color: #fff;
}

.card h3 {
    color: #57A519;
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: bold;
}

.card p {
    font-size: 13px;
    margin-bottom: 4px;
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: white;
  background-color: black;
  font-size: 14px;
  position: relative;
}

.footer .footer-top {
  padding-top: 50px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer .footer-about .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.footer .footer-about .logo span {
  color: white;
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: white;
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links {
  margin-bottom: 30px;
   text-align: center;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;

}

.footer .footer-links ul i {
  padding-right: 2px;
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
   text-align: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
}

.footer .footer-contact p {
  margin-bottom: 5px;
}

.footer .copyright {
  padding: 25px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 8px;
  font-size: 13px;
}

/*SECCION DE BARRA DE COLORES DE LAS UNIDADES*/



.barra-unidades {
  display: flex;
  width: 100%;
  height: 40px;
  font-family: var(--nav-font);
  font-weight: bold;
  text-align: center;
}

.barra-unidades a {
  flex: 1;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Colores por unidad */
.azcapotzalco { background-color: #be1e2d; }    /* Rojo */
.cuajimalpa   { background-color: #f39200; }    /* Naranja */
.iztapalapa   { background-color: #7bb241; }    /* Verde */
.lerma        { background-color: #93278f; }    /* Morado */
.xochimilco   { background-color: #3775c5; }    /* Azul */
.rectoria     { background-color: #333333; }    /* Gris oscuro */

.espacio-negro {
  background-color: black;
  height: 1cm;
  width: 100%;
}



/*SECCION DE TITULOS DE CADA NUEVA SECCION*/

.titulo-interes {
  margin-top: 3.4cm;
  margin-bottom: 1cm;
  text-align: center;
  color: white;
  position: relative;
  padding: 20px;
  background: linear-gradient(to right, rgba(26, 43, 171, 0.5) 0%, rgba(0, 234, 81, 0.5) 100%);
  


  clip-path: polygon(0 0, 100% 0, 100% 4cm, 0 5cm);
  height: 6cm;
  border-radius: 0;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.titulo-interes h2 {
  font-family: var(--nav-font);
  font-weight: normal;
  font-size: 2.5rem;
  margin: 0;
  color: white;
  position: relative;
  display: inline-block;
  padding-bottom: 15px; /* Espacio para que se vea el subrayado */
  margin-top: 1.1cm;
}

.subrayado-animado {
  position: absolute;
  bottom: -2px; /* Justo debajo del texto, ajusta si lo quieres más pegado o separado */
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  width: 0;
  background-color: white;
  animation: subrayar 2s linear infinite;
  border-radius: 2px;
}

@keyframes subrayar {
  0% {
    width: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    width: 100%;
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    width: 0;
    opacity: 0;
  }
}
/*TERMINA SECCION DE TITULOS */


.servicio{
     color: white;
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: bold;
    text-decoration: none;  /* Quita el subrayado */
}





/* Barra negra translúcida */
.barra {
    display: flex;                /* Para alinear los logos a los extremos */
    justify-content: space-between; /* Uno a la izquierda, otro a la derecha */
    align-items: center;           /* Centrar verticalmente */
    padding: 20px 30px;
    background-color: rgba(0, 0, 0, 0.8); /* Negro translúcido */
    position: fixed;              /* Fija en la parte superior */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;               /* Encima de todo */
}


/* Logo izquierdo */
.logo.izquierda {
    height: 60px; /* tamaño del logo izquierdo */
    padding-left: 80px;
}

/* Logo derecho */
.logo.derecha {
    height: 90px; /* tamaño del logo derecho */
    padding-right: 80px;
}


/* Si quieres que cambie tamaño en pantallas pequeñas */
@media (max-width: 600px) {
    .logo {
        height: 35px;
    }
}


















































