/* Estructura base para forzar altura completa */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    min-height: 100vh;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;   /* Ocupa todo el ancho */
}

/* Header: ancho completo */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #001f3f;
    padding: 30px 30px;
    color: white;
    flex-wrap: wrap;
    width: 100vw; /* Ancho viewport */
    box-sizing: border-box;
}

.header h1 {
    margin: 0;
}

.menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.menu span {
    color: white;
}

/* Contenedor para centrar contenido */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;  /* Empuja footer hacia abajo */
    width: 100%;
}

/* Contenido central */
.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 5%;
    gap: 30px;
    flex-wrap: wrap;
    min-height: 400px;
}

.contact-left, .contact-right {
    flex: 1;
    min-width: 280px;
}

.email-box {
    background-color: #f2f2f2;
    border-left: 5px solid #001f3f;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.email-box h2 {
    margin-bottom: 15px;
    color: #001f3f;
}

/* Redes sociales */
.contact-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.contact-right img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-right img:hover {
    transform: scale(1.1);
}

/* Footer: ancho completo */
.footer {
    background-color: #001f3f;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: auto;
    width: 100vw; /* Ancho viewport */
    box-sizing: border-box;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .menu {
        flex-direction: column;
        gap: 10px;
    }

    .contact-container {
        flex-direction: column;
        text-align: center;
    }

    .contact-right {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .contact-right img {
        margin: 10px;
    }
}
