﻿/* ============================================================
   HUANPTIC FIRM – CSS DEPURADO Y OPTIMIZADO
   ============================================================ */

/* ============================================================
   1. HEADER / MENÚ
   ============================================================ */

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    height: 80px;
    width: 80px;
    border-radius: 10px;
}

.brand-name {
    font-size: 32px;
    font-weight: bold;
    color: #0984e3;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    text-shadow: 0px 0px 4px rgba(0,0,0,0.6);
}

.navbar {
    width: 100%;
    background: #2d3436;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

    .menu li a {
        color: white;
        text-decoration: none;
        font-size: 18px;
        font-family: 'Open Sans', sans-serif;
        transition: 0.3s;
    }

        .menu li a:hover {
            color: #81ecec;
        }

.submenu {
    position: relative;
}

    .submenu .children {
        position: absolute;
        top: 100%;
        left: 0;
        background: #1A1A1A;
        list-style: none;
        display: none;
    }

    .submenu:hover .children {
        display: block;
    }

.children li a {
    display: block;
    padding: 10px 20px;
    color: white;
}

    .children li a:hover {
        background: #0FA958;
    }

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

    .menu-toggle span {
        width: 30px;
        height: 4px;
        background: #0984e3;
        margin: 5px 0;
        border-radius: 5px;
    }

/* ============================================================
   2. BANNER
   ============================================================ */

.milpa-banner {
    width: 100%;
    background: url('../Images_Master/Banner_huanptic.jpg') center/cover no-repeat;
    padding: 66px 11px; /* ← reducido 30% */
    text-align: center;
    color: white;
    margin-top: 40px;
}


.milpa-banner-content h1 {
    font-size: 48px;
    font-family: 'Bebas Neue', sans-serif;
    color: #0984e3;
    text-shadow: 0px 0px 6px rgba(0,0,0,0.7);
}

.milpa-banner-content p {
    font-size: 20px;
    margin-top: 10px;
    color: #f1f1f1;
}

.milpa-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: #0FA958;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
}

    .milpa-btn:hover {
        background: #0C8A48;
    }

/* ============================================================
   3. LAYOUT-WRAPPER (INTRODUCCIÓN + FOTOS LATERALES)
   ============================================================ */

.layout-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 8px;
}

.side-image {
    flex: 0 0 220px;
}

    .side-image img {
        max-height: 750px;
        width: auto;
    }

/* ============================================================
   4. INTRODUCCIÓN
   ============================================================ */

.IntroEmpresa {
    padding: 40px 20px;
    background: #ffffff;
}

.Intro_Texto h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.Intro_Texto p {
    text-align: justify;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* ============================================================
   5. MISIÓN / VISIÓN / CALIDAD (FULL WIDTH)
   ============================================================ */

.Seccion_MVC {
    width: 100%;
    padding: 50px 0;
    background: #f7f7f7;
}

    .Seccion_MVC .rowa {
        display: flex;
        justify-content: space-between;
        gap: 25px;
        padding: 0 40px;
    }

    .Seccion_MVC .Servicios_Col {
        flex: 1;
        background: #fff;
        padding: 25px;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.08);
        text-align: center;
    }

        .Seccion_MVC .Servicios_Col img {
            width: 100%;
            border-radius: 10px;
            margin-bottom: 15px;
        }

/* ============================================================
   6. FOOTER
   ============================================================ */

/* FOOTER GENERAL */
.footer {
    background-color: #2f2f2f; /* gris oscuro elegante */
    padding: 40px 20px;
    color: #ffffff; /* texto blanco */
}

/* CONTENEDOR PRINCIPAL */
.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

/* CADA COLUMNA */
.footer-column {
    flex: 1;
    min-width: 220px;
}

    /* TITULOS */
    .footer-column h3 {
        color: #ffffff;
        margin-bottom: 15px;
        font-size: 20px;
        font-weight: bold;
    }

/* LISTA DEL MENÚ */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-menu li a {
        display: block;
        margin-bottom: 8px;
        color: #e0e0e0;
        text-decoration: none;
    }

        .footer-menu li a:hover {
            color: #00c853;
        }

/* ENLACES FINALES */
.footer-links {
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

    .footer-links a {
        margin: 0 10px;
        color: #e0e0e0;
        text-decoration: none;
        font-size: 15px;
    }

        .footer-links a:hover {
            color: #00c853;
        }

/* MODO MÓVIL */
@media (max-width: 600px) {

    .footer {
        padding: 30px 15px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        text-align: center;
    }

    .footer-links {
        margin-top: 30px;
    }
}



/* ============================================================
   7. RESPONSIVO
   ============================================================ */

@media (max-width: 900px) {

    .menu {
        display: none;
        flex-direction: column;
        background: #0A0A0A;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 20px 0;
        border-top: 2px solid #0FA958;
    }

        .menu.show {
            display: flex;
        }

    .menu-toggle {
        display: flex;
    }

    .layout-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .side-image img {
        max-width: 90%;
        height: auto;
    }

    .content-wrapper {
        width: 100%;
        padding: 0 20px;
        text-align: center;
    }

    .Seccion_MVC .rowa {
        flex-direction: column;
        padding: 0 20px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {

    .brand-logo {
        height: 65px;
        width: 65px;
    }

    .brand-name {
        font-size: 26px;
    }

    .milpa-banner {
        padding: 60px 15px;
    }

    .milpa-banner-content h1 {
        font-size: 28px;
    }

    .milpa-banner-content p {
        font-size: 16px;
    }

    .content-wrapper {
        padding: 0 15px;
    }
}

/*Se Setean las Baderas*/
/* Banderas / Selector de idioma */

/* Contenedor general de redes + banderas */
/* Barra general */
.social-lang-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* ← NO se rompen en PC */
    width: 100%;
    padding: 5px 10px;
}

/* Redes sociales */
.social-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0; /* ← NO se achican */
}

/* Iconos de redes */
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Banderas */
.lang-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0; /* ← NO se achican */
}

.flag-icon {
    width: 32px;
    height: auto;
    border-radius: 4px;
}

/* MODO MÓVIL */
@media (max-width: 600px) {

    .social-lang-bar {
        flex-wrap: wrap; /* ← En móvil sí se permite bajar */
        justify-content: center;
        gap: 10px;
    }

    .social-left,
    .lang-right {
        justify-content: center;
        width: 100%;
    }

    .social-icon {
        width: 32px;
        height: 32px;
    }

    .flag-icon {
        width: 28px;
    }
}



/* ELIMINAR SEPARACIÓN ENTRE INTRODUCCIÓN Y SECCIÓN MVC */
/* Bloque superior sin layout-wrapper */
.intro-bloque {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin: 0;
    padding: 0;
}

/* Contenido central */
.intro-contenido {
    width: 100%;
    max-width: 1000px;
}

/* Fotos laterales */
.side-image img {
    max-width: 300px; /* ← aumentado 20% */
    height: auto; /* ← mantiene proporción */
}


/* Bloque inferior sin separación */
.bloque-inferior {
    margin: 0 !important;
    padding: 0 !important;
}

/*Movil*/
/* MODO MÓVIL: Foto arriba - Texto - Foto abajo */
@media (max-width: 900px) {

    .intro-bloque {
        display: flex;
        flex-direction: column; /* ← Aquí está la magia */
        align-items: center;
        gap: 20px;
        padding: 0 15px;
    }

    .side-image {
        width: 100%;
        text-align: center;
    }

        .side-image img {
            max-width: 80%;
            height: auto;
        }

    .intro-contenido {
        width: 100%;
        text-align: center;
    }
}
