/* Global Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #fff;
    text-align: justify;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1% 1%;
    background-color: #1066ab; /* Color principal de MRT */
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo Styles */
header .logo img {
    height: 50px;
    width: auto;
    margin-left: 60%;
}

/* Navigation Menu Styles */
nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
  text-decoration: none; /* Elimina el subrayado predeterminado */
  color: #ffffff; /* Texto en blanco para contraste */
  font-size: 16px;
  padding: 7px 2px; /* Espaciado interno para el efecto del cuadro */
  border-radius: 5px; /* Bordes redondeados */
  transition: background-color 0.3s ease, color 0.3s ease; /* Transiciones suaves */
}

nav ul li a:hover {
  background-color: #66B2FF; /* Fondo azul claro al pasar el cursor */
  color: #003366; /* Cambia el color del texto al azul oscuro */
}









/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        display: none; /* Inicialmente oculto para pantallas pequeñas */
        background-color: #2077bd;
        padding: 10px;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
    }

    nav ul.active {
        display: flex; /* Mostrar menú al activar */
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        font-size: 18px;
    }
}

/* Ajuste para el menú hamburguesa */
.menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 28px;
    color: #ffffff;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1100;
}

/* Ajustes para el menú en móviles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        background-color: #13508b;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 10px 0;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
    }








    
}








/* Large Logo Section Styles */
.large-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    background-color: #ffffff; /* Fondo blanco para destacar el logo */
}

.large-logo img {
    width: 200px; /* Tamaño del logo grande */
    max-width: 100%;
    height: auto;
}






















/* Sección de Contacto */
.vivamihome {
    position: relative;
    width: 100%;
    min-height: 50vh; /* Ocupa la mitad de la altura de la pantalla */
    background: url('../img/imagencontactanos.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* Capa oscura sobre la imagen */
.vivamihome::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* Contenedor del texto y contenido */
.vivamihome-overlay {
    position: relative;
    background: rgba(0, 0, 0, 0.623);
    padding: 40px;
    border-radius: 10px;
    max-width: 900px;
    margin: auto;
    margin-top: 5%;
    margin-bottom: 5%;
    margin-left: 5%;
    margin-right: 5%;
    z-index: 1;
    color: white;
    box-shadow: 0px 5px 15px rgba(255, 255, 255, 0.3);
}

/* Título y texto */
.vivamihome h2, .vivamihome h3, .vivamihome p {
    position: relative;
    z-index: 1;
    color: white;
}

/* Texto justificado */
.vivamihome p {
    text-align: justify;
}

/* Margen superior para los subtítulos */
.vivamihome h3 {
    margin-top: 6%;
}









/* 🔹 Reset para mejor control */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 🔹 Sección contenedora */
.form-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #ffffff;
  border-top: 3px solid #ffffff;
  border-bottom: 3px solid #2077bd;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.05);
}

.form-section h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #07072B;
}

.form-section p {
  font-size: 1.2rem;
  color: #2a2c2f;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* 🔹 Estilo principal del formulario */
form {
  max-width: 600px;
  margin: 0 auto;
  background: #2a2c2f;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 🔹 Grupos del formulario */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

/* 🔹 Etiquetas */
.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #ffffff;
}

/* 🔹 Inputs y Textareas */
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* 🔹 Hover y focus */
.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
  border-color: #2a2c2f;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #09AA93;
  outline: none;
  box-shadow: 0 0 6px rgba(9, 170, 147, 0.5);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* 🔹 Botón de envío */
.btn {
  display: inline-block;
  width: 100%;
  padding: 14px;
  background-color: #09AA93;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #66B2FF;
}



.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #deba2f;
    color: #2a2c2f;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #ffde59;
}










































/* FOOTER */

#footer {
  background-color: #2077bd;
  color: #f1f1f1;
  padding: 50px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
  text-align: center;
}

#footer h2 {
  font-size: 25px;
  margin-bottom: 25px;
  color: #ffffff;
  margin-top: -1%;

}

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.social-links a img {
  width: 45px;
  height: 45px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-links a img:hover {
  transform: scale(1.15);
}

/* Texto final */
.footer-copy {
  font-size: 14px;
  color: #fff;
  margin-top: 20px;
  margin-bottom: -1%;
}

/* FOOTER END */

@media (max-width: 600px) {
  #footer {
    padding: 30px 15px;
  }

  #footer h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .social-links {
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin-bottom: 5%;
  }

  .social-links a img {
    width: 40px;
    height: 40px;
  }

  .footer-copy {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 10%;
  }
}
