/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #fff;
    color: #000;
}

/* HEADER */
header {
    background-color: #275e95;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo img {
    height: 50px;
}

.menu a {
    color: #fff;
    margin-left: 25px;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.menu a:hover,
.menu a.activo {
    color: #ffcc00;
}

.menu a.activo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ffcc00;
}

/* PROYECTOS */
.proyectos {
    padding: 60px 20px;
    background-image: url('../img/blog2.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    z-index: 1;
    text-align: center;
}

.proyectos::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.proyectos h2 {
    font-size: 28px;
    margin-bottom: 40px;
    color: #c1c807;
}

/* GRID DE PROYECTOS */
.proyecto-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* TARJETA DE PROYECTO EN COLUMNA */
.proyecto-item {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* <-- cambio clave */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.proyecto-item:hover {
    transform: scale(1.01);
}

.proyecto-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.proyecto-info {
    padding: 15px;
    text-align: left;
}

.proyecto-info h3 {
    font-size: 16px;
    color: #000;
    font-weight: normal;
}



/* FOOTER */
.footer {
    background-color: #275e95;
    color: white;
    padding: 60px 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-left,
.footer-center,
.footer-right {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}

.footer-logo {
    width: 100px;
    margin-bottom: 10px;
}

.footer-left p {
    margin: 5px 0;
}

.footer-center ul {
    list-style: none;
    padding: 0;
}

.footer-center ul li {
    margin: 8px 0;
}

.footer-center ul li a {
    color: white;
    text-decoration: none;
}

.footer-center ul li a:hover {
    text-decoration: underline;
}

.footer-right h3 {
    margin-bottom: 10px;
}

.social-icons a img {
    width: 24px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.social-icons a img:hover {
    transform: scale(1.2);
}

.footer-center p {
    font-size: 1.2em;
    color: #9a9a97;
    margin-bottom: 10px;
}

.footer-left i {
    margin-right: 10px;
    color: #fc2020;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .inicio-container,
    .mision-vision .container,
    .servicio-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .menu {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    header {
        flex-direction: column;
        text-align: center;
    }
}

/* Estilo general del ícono hamburguesa */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    background-color: #003366;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    text-align: center;
  }

  .menu a {
    margin: 15px 0;
    display: block;
  }

  .menu-toggle {
    display: block;
  }

  .menu.active {
    display: flex;
  }

  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}