@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Barlow', sans-serif;
    text-decoration: none;
    list-style: none;
}

/* ========== HEADER (Mismo que principal) ========== */
.header {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url(../Images/fondo0.gif);
    background-repeat: no-repeat;
    background-size: cover;
    height: 30vh;
    align-items: center;
    padding: 30px;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1000;
}

#menu-toggle { display: none; }

.hamburger-line {
    width: 30px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

#menu-toggle:checked + .hamburger .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

#menu-toggle:checked + .hamburger .hamburger-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked + .hamburger .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.logo img {
    max-width: 150px;
    height: auto;
    cursor: pointer;
}

.navbar {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background: rgba(0, 0, 0, 0.95);
    transition: all 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    z-index: 999;
}

.nav-list {
    display: flex;
    gap: 20px;
    padding: 80px 30px;
}

.icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    transition: all 0.3s ease;
}

.icon i {
    font-size: 35px;
    margin-bottom: 5px;
}

.icon:hover {
    transform: scale(1.1);
    color: #ffcc00;
}

/* ========== CONTENIDO (Alineado con principal) ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about {
    padding: 80px 0;
    background-color: #efefef;
}

.titulo {
    font-size: 35px;
    color: #004aad;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: red;
}

.descripcion {
    font-size: 20px;
    line-height: 1.8;
    color: #636e72;
    text-align: justify;
    margin-bottom: 30px;
}

.service-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 40px 0;
}

.service-item {
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: scale(1.05);
}

.btn-1 {
    width: 150px;
    height: 55px;
    background-color: #004aad;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s;
    margin-top: 15px;
}

.btn-1:hover {
    transform: scale(1.1);
    background: #0056b3;
}

/* ========== FOOTER (Idéntico a principal) ========== */
footer {
    background-color: #222;
    padding: 30px 20px;
    text-align: center;
}

.footer-logo img {
    filter: brightness(0) invert(1);
    height: 80px;
    transition: all 0.3s ease;
}

.social-icon {
    color: white;
    margin: 0 15px;
    font-size: 30px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: #ffcc00;
    transform: translateY(-3px);
}

/* ========== RESPONSIVO ========== */
@media (max-width: 768px) {
    .header { height: 25vh; padding-top: 90px; }
    
    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
        top: 30px;
    }

    #menu-toggle:checked ~ .navbar { right: 0; }

    .nav-list {
        flex-direction: column;
        gap: 30px;
    }

    .service-item {
        width: 100%;
        margin-bottom: 30px;
    }

    .titulo { font-size: 1.8rem; }
}