/* ===============================
   ESTILOS GENERALES Y LAYOUT BASE
   =============================== */
body, ul, li {
    margin: 0;
    padding: 0;
    list-style: none;
}

body{
    width: 100%;
    height: auto;
}

/* ===============================
   HEADER (Encabezado)
   =============================== */
header{
    width: 100%; /* Asegura ancho completo */
    height: 90px;
    background: #611232;
}

.contenedor_encabezado{
    height: 100%;
    /* Flexbox para alinear elementos */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    /* Mantenemos el max-width para desktop */
    max-width: 120px; 
    height: 99px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* QUITAMOS EL MARGEN FIJO: Bootstrap y el padding del contenedor lo manejan */
    margin-left: 0; 
}

.titulo{
    /* Flex-grow permite que ocupe el espacio central */
    flex-grow: 1; 
    height: 100%;
    /* Quitamos los márgenes fijos que causaban overflow */
    margin: 0; 
}

.titulo h1 {
    color: white;
    font-size: 50px;
    text-align: center;
    margin-top: 25px; /* Mantenemos este margin si es necesario */
}


/* ===============================
   NAVBAR (Menú de navegación)
   =============================== */

/* **IMPORTANTE:** Se eliminaron las reglas .navbar, ul.menu, .inicio y .dropdown
   con anchos y márgenes fijos para que Bootstrap maneje el layout. 
   Solo se mantienen los estilos visuales personalizados. */

.menu {
    /* Solo color de fondo, el display:flex lo maneja .navbar-nav */
    background: #a57f2c; 
    padding: 0; /* Bootstrap ya añade padding, si quieres más usa clases p- */
}

.menu > li {
    position: relative; 
    margin-right: 20px;
}

.menu > li > a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    transition: background 0.3s ease;
}

.menu > li > a:hover {
    background: linear-gradient(rgb(167, 140, 44), rgb(177, 133, 31)) !important;
    border-radius: 4px;
}

/* Submenú */
.submenu {
    /* El display en desktop lo maneja el hover */
    position: absolute;
    top: 100%;
    left: 0;
    background: #a57f2c;
    min-width: 150px;
    border-radius: 4px;
    overflow: hidden;
    z-index: 1000;
}

/* Mostrar submenú al pasar el cursor (Desktop) */
.dropdown:hover > .submenu {
    /* Bootstrap usa sus clases para el dropdown, pero mantenemos esto por si acaso */
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    color: white;
    padding: 8px 12px;
    display: block;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.submenu li a:hover {
    background: linear-gradient(rgb(167, 140, 44), rgb(177, 133, 31)) !important;
    color: #611232;
}

.submenu {
    /* Transición para hover */
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}


/* ===============================
   FOOTER (Se mantiene original y responsivo)
   =============================== */
.footer {
    width: 100%;
    font-family: Arial, sans-serif;
    color: white;
}
/* ... el resto de tu CSS de footer ... */

.footer-top {
    background-color: #601633;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 40px;
    align-items: start;
}
/* ... resto de estilos del footer ... */

/* Estilos de Iconos */
.fa-brands{
    margin-left: 20px;
    font-size: 20px;
}
.si{ 
    margin-left: 70px;
}

/* ===============================
   RESPONSIVIDAD
   =============================== */

/* --- Header Responsivo --- */
@media (max-width: 768px) {
    .contenedor_encabezado {
        height: auto;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 10px 15px;
    }

    .logo {
        margin: 10px auto;
        height: 60px; /* Reducción de tamaño para móvil */
    }

    .titulo {
        width: 100%;
        margin: 0;
    }

    .titulo h1 {
        font-size: 30px; /* Reducción de fuente para móvil */
        margin: 5px 0;
    }
}

/* --- Contenido central (MOVEMOS LA RESPONSIVIDAD AL CSS DE INDEX) --- */

/* --- Footer Responsivo (Se mantiene como lo tenías) --- */
@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }

    .iframe-placeholder {
        height: 80px;
    }

    .social-icons {
        justify-content: center;
    }

    .buzon-btn {
        width: auto;
    }
}

@media (max-width: 500px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
}

.footer-bottom{
    background-color: black;
    height: 30px;
}