/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-image: url('../img/FondoColor2.jpg'); /* Asegúrate de que la ruta sea correcta */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    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;
}



/* FORMULARIO DE CONTACTO */
.contacto-section {
    padding: 60px 20px;
    background-color: rgba(255, 255, 255, 0.316); /* blanco semitransparente */
    border-radius: 10px;
}

.container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 30px 20px;
        flex-wrap: nowrap; /* Evita que la imagen pierda la altura compartida */
    }
}


/* Formulario ocupa más espacio que la imagen */
.formulario {
    flex: 2;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    min-width: 300px;
}

.formulario h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #003366;
}

form {
    display: flex;
    flex-direction: column;
}

form label {
    font-size: 14px;
    margin: 10px 0 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
}

textarea {
    resize: none;
    height: 100px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-group label {
    flex: 1 1 45%;
    font-size: 13px;
    font-weight: normal;
}

button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #333;
}

.imagen-contacto {
    flex: 1;
    min-width: 250px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 20px;
}

.imagen-contacto img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}




/* 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) {
    .container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 30px 20px;
    }

    .formulario,
    .imagen-contacto {
        width: 100%;
    }

    header {
        flex-direction: column;
        text-align: center;
    }

    .menu {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* 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;
  }
}