/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #083b6e;
    padding: 1rem 2rem;
    position: relative;
    height: 107px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem; /* espaciado entre logos */
    height: auto !important;
  }
  
  .logo-ags {
    height: 100px !important; /* o el tamaño que quieras */
    
  }
  
  .logo-tepezala {
    height: 112px !important; /* o el tamaño que quieras */
  }
  
  .logo-unii {
    height: 120px !important; /* o el tamaño que quieras */
  }

/* Menú base */
.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
    position: relative;
}

.nav-links li {
    position: relative;
    margin-left: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem;
}

.nav-links a.active {
    background-color: #0a5db1;
    border-radius: 4px;
    padding: 0.5rem 1rem;
}

/* Menú desplegable oculto por defecto */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #003366;
    border-radius: 4px;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 0.5rem 0;
    z-index: 999;
    min-width: 240px;
}

/* Mostrar el menú al dar clic (clase "open" se activa con JS) */
.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.6rem 1rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-menu li a:hover {
    background-color: #004080;
}

/* Opcional: ícono de flecha ▾ que rota */
.dropdown-toggle {
    cursor: pointer;
}

/* Submenú oculto por defecto */
.sub-menu {
    display: none;
    background-color: #004080;
    list-style: none;
    margin-top: 0.3rem;
    border-radius: 4px;
    padding: 0.3rem 0;
}

.sub-dropdown.open .sub-menu {
    display: block;
}

.sub-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s;
}

.sub-menu li a:hover {
    background-color: #0055aa;
}

/* Estilo para el botón del submenú */
.sub-toggle {
    cursor: pointer;
    display: block;
    color: white;
    padding: 0.6rem 1rem;
    text-decoration: none;
}

/* Burger menu (solo visible en móviles, funcional si quieres adaptarlo) */
.burger {
    display: none;
    font-size: 1.5rem;
    color: white;
    background: none;
    border: none;
}

.text-block h2 {
    text-align: center;
    color: #001f3f;
    margin-bottom: 1.5rem;
    font-size: 2.8rem;
}

.info-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
}

.text-block {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.text-block p {
    margin-bottom: 1.5rem;
}

/* Estilos para centrar la información de contacto */
.contact-info {
    text-align: center;
    margin-top: 2rem;
}

.contact-info p {
    font-size: 1.2rem;
    font-weight: bold;
    color: #001f3f;
    margin-bottom: 0.8rem;
}

.text-container {
    flex: 1;
    min-width: 280px;
    text-align: justify;
}

/* CONTENEDOR PARA IMAGEN Y MAPA - ALINEACIÓN HORIZONTAL PERFECTA */
.location-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* Estilos para la imagen del edificio */
.location-image {
    width: 45%;
    max-width: 400px;
    min-width: 250px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

/* Estilos para el iframe del mapa */
.location-container iframe {
    width: 45%;
    max-width: 550px;
    min-width: 250px;
    height: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    border: 0;
}

/* Diseño responsivo mejorado - mantiene horizontal hasta pantallas muy pequeñas */
@media (max-width: 900px) {
    .location-container {
        gap: 1.5rem;
    }
    
    .location-image {
        width: 48%;
        height: 300px;
    }
    
    .location-container iframe {
        width: 48%;
        height: 300px;
    }
}

@media (max-width: 650px) {
    .location-container {
        gap: 1rem;
    }
    
    .location-image {
        width: 48%;
        height: 250px;
    }
    
    .location-container iframe {
        width: 48%;
        height: 250px;
    }
}

/* Solo en pantallas muy pequeñas se apilan verticalmente */
@media (max-width: 480px) {
    .location-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .location-image {
        width: 100%;
        max-width: 350px;
        height: 250px;
    }
    
    .location-container iframe {
        width: 100%;
        max-width: 350px;
        height: 250px;
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .info-block,
    .info-block.reverse {
        flex-direction: column;
        text-align: center;
    }

    .info-text {
        text-align: center;
    }
}

footer {
    background-color: #001f3f;
    color: white;
    padding: 2rem 1rem 1rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #ffd700;
}

.footer-column p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.social-icons a:hover img {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-column {
        align-items: center;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .info-section {
        flex-direction: column;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .burger {
        display: block;
        font-size: 2rem;
        cursor: pointer;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        background-color: #001f3f;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem;
        z-index: 1000;
    }

    .nav-links.nav-active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
        width: 100%;
    }

    .nav-links li a {
        display: block;
        width: 100%;
    }

    .dropdown-menu,
    .sub-menu {
        position: static;
        background-color: #002b5c;
        width: 100%;
    }

    .dropdown-menu li,
    .sub-menu li {
        padding-left: 1rem;
    }

    .dropdown.open .dropdown-menu,
    .sub-dropdown.open .sub-menu {
        display: block;
    }

    .dropdown-toggle,
    .sub-toggle {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-text {
        margin-left: 0;
        text-align: center;
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .logo {
    gap: 0.5rem; /* menos espacio entre logos */
  }

  .logo-ags {
    height: 50px !important; /* tamaño reducido */
  }

  .logo-tepezala {
    height: 60px !important;
  }

  .logo-unii {
    height: 65px !important;
  }
    }

@media (max-width: 768px) {
    .location-image {
        max-width: 300px;
        height: 200px;
    }
    .location-container iframe {
        width: 100%;
        height: 200px;
    }
}

/* Estilos para el formulario de opiniones */
.opinion-form-section {
    background-color: #f8f9fa;
    padding: 3rem 2rem;
    margin: 3rem 0;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.opinion-form-section h2 {
    text-align: center;
    color: #001f3f;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: bold;
}

.opinion-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #001f3f;
    font-weight: bold;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #083b6e;
    box-shadow: 0 0 0 3px rgba(8, 59, 110, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, #083b6e, #0a5db1);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #0a5db1, #083b6e);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(8, 59, 110, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    margin-top: 1rem;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    display: none;
}

.form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Responsive para el formulario */
@media (max-width: 768px) {
    .opinion-form-section {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
    
    .opinion-form-section h2 {
        font-size: 2rem;
    }
}