/* frontend/css/contacto.css */

* {
    margin: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    scroll-behavior: smooth;
}

.header {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 20px 0px;
    position: fixed;
    transition: background-color 0.3s ease;
    z-index: 1000;
}

.header.scrolled {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}

nav {
    width: 80%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

nav .logo {
    display: flex;
    gap: 20px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 12px;
    transition: 0.1s;
}

nav ul li a:hover {
    color: #12bcd3;
}

#hero {
    color: white;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 55vh;
    overflow-x: hidden;
    background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.9)), url("../assets/img/smartcity.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    justify-content: flex-end;
    align-items: center;
}

.hero_content {
    display: flex;
    width: 80%;
    height: 80%;
    justify-content: flex-start;
    align-items: flex-end;
    flex-wrap: wrap;
}

.hero_content h1 {
    margin-bottom: 20px;
    color: white;
    font-size: 3rem;
    text-shadow: 1px 1px 100px black;
}

#contacto {
    display: flex;
    width: 80%;
    height: auto;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    margin: 0 auto; /* Centrar la sección de contacto */
}

.contacto {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    border-bottom: black 1px solid;
    flex-wrap: wrap;
    align-items: center;
}

.contacto-text {
    text-align: center;
    max-width: 700px;
}

.formulario-contacto {
    width: 100%;
    max-width: 700px;
    background-color: #f5f5f5;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.formulario-contacto label {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
}

.formulario-contacto input,
.formulario-contacto textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #aaa;
    border-radius: 6px;
    font-size: 15px;
    font-family: "Montserrat", sans-serif;
    outline: none;
    margin-bottom: 20px;
    background-color: white;
    color: #333;
    transition: border-color 0.3s ease;
}

.formulario-contacto input:focus,
.formulario-contacto textarea:focus {
    border-color: rgb(42, 61, 71);
}

.formulario-contacto textarea {
    height: 150px;
    resize: none;
}

.formulario-contacto button {
    padding: 14px;
    background-color: rgb(42, 61, 71);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.formulario-contacto button:hover {
    background-color: #0fa1b8;
}

#information {
    margin: 50px 0;
    color: rgb(0, 0, 0);
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 50vh;
    justify-content: center;
    align-items: center;
}

.information-cards {
    margin: 50px 0;
    display: flex;
    width: 80%;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    display: flex;
    width: 30%;
    height: 80px;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 7px 13px 0px rgba(0, 0, 0, 0.2);
    border-color: #000000;
    font-size: 11px;
    border-radius: 10px;
    gap: 20px;
    padding: 10px;
    text-decoration: none;
    color: rgb(42, 61, 71);
}

.card:hover {
    background: #12bcd3b6;
    transition: 0.1s;
    scale: 1.05;
}

.card img {
    width: 30px;
}

#footer {
    display: flex;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #0461b8, #0da8e6);
    color: white;
    justify-content: center;
    align-items: center;
}

.footer {
    margin: 50px 0;
    height: 100%;
    display: flex;
    width: 100%; /* CAMBIO: Ahora ocupa el 100% del ancho del #footer */
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 0 20px; /* Añadido padding para el espaciado interno */
    box-sizing: border-box; /* Asegura que el padding no añada ancho extra */
}

.footer-img {
    width: 50%;
    display: flex;
    gap: 50px;
}

.footer-img img {
    width: 100px;
}

.footer-datos {
    width: 50%;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 10px;
}

.footer-datos img {
    margin-left: 5px;
}

.footer-social {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.footer-social img {
    width: 20px;
}

/* Contenedor general en dos columnas */
.contacto-columna {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
    align-items: center;
}

/* Texto de la izquierda */
.contacto-text {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    font-size: 16px;
}

/* Formulario de la derecha */
.formulario-contacto {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    background-color: #f5f5f5;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

/* Responsivo en pantallas pequeñas */
@media (max-width: 768px) {
    .contacto-columna {
    flex-direction: column;
    align-items: center;
    }

    .contacto-text,
    .formulario-contacto {
    max-width: 100%;
    }
}
