* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    
    
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    
}

.top-header {
    background-color: #0151a0;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
}

.logo {
    height: 80px;
}

.navbar {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    max-width: 1200px;
    margin: auto;
}

.menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.menu li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}
.banner {
    width: 100%;
    max-width: 1440px;
    margin: auto;
    overflow: hidden;
    position: relative;
    height: auto; /* Que el alto lo determine la imagen */
}

.slider {
    width: 100%;
    position: relative;
}

.slides {
    display: flex;
    animation: slide 8s infinite;
}

.slides img {
    width: 100%;
    height: auto; /* Esto mantiene la proporción original */
    flex-shrink: 0;
    display: block;
}

@keyframes slide {
    0% { transform: translateX(0%); }
    45% { transform: translateX(0%); }
    50% { transform: translateX(-100%); }
    95% { transform: translateX(-100%); }
    100% { transform: translateX(0%); }
}

.contenido {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.footer {
    background-color: #004080;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {


    .top-header .contact-info span {
        display: block;
    }
}

@media (max-width: 768px) {
    .banner {
        height: auto;
    }

    

    .slides img {
        width: 100%;
        height: auto;
    }
}
@media (max-width: 768px) {
    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
        font-size: 28px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .menu {
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .menu.show {
        display: flex;
        animation: fadeIn 0.3s ease-in-out;
    }

    .menu li a {
        padding: 10px;
        display: block;
        background-color: #f8f8f8;
        border-bottom: 1px solid #ddd;
        color: #333;
    }
}

/* Suave animación */
@keyframes fadeIn {
    from { opacity: 0; transform: scaleY(0); }
    to { opacity: 1; transform: scaleY(1); }
}

.card {
  background: white;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin: auto;
  overflow: hidden;
}

.card-header {
  background: #007bff;
  color: white;
  padding: 15px;
}

.card-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

.card-body {
  padding: 15px;
}

.card-body p {
  margin: 10px 0;
}

.card-body .fecha {
  color: gray;
  font-size: 0.9rem;
}

.btn {
  display: inline-block;
  background: #28a745;
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #218838;
}



.grid-opciones {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 40px 5%;
    text-align: center;
    background-color: #f9f9f9;
}

.opcion {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s;
    text-decoration: none; /* quita subrayado del enlace */
    color: #0151a0; /* color de texto */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.opcion:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background-color: #f0f7ff;
}

.opcion i {
    font-size: 40pt;
    color: #0151a0;
    margin-bottom: 10px;
}

.opcion h3 {
    font-size: 1rem;
    margin: 0;
    color: #0151a0;
}

/* Responsivo */
@media (max-width: 1024px) {
    .grid-opciones {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-opciones {
        grid-template-columns: repeat(2, 1fr);
    }
}
