﻿/* ============================================================
   ESTILOS PERSONALIZADOS HUANPTIC FIRM
   Este archivo sobrescribe el min.css sin modificarlo.
   ============================================================ */

/* ===========================
   LOGO Y NOMBRE DE LA FIRMA
   =========================== */

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    height: 80px !important;
    width: 80px !important;
    border-radius: 10px;
}

/* Verde Milpa */
.brand-name {
    font-size: 32px !important;
    font-weight: bold !important;
    color: #0984e3 !important; /* Azul HUANPTIC */
    font-family: 'Bebas Neue', sans-serif !important;
    letter-spacing: 2px;
    text-shadow: 0px 0px 4px rgba(0,0,0,0.6); /* Resalta sobre fondo oscuro */
}

/* ===========================
   MENÚ PRINCIPAL
   =========================== */

.navbar {
    width: 100%;
    background: #2d3436; /* Fondo oscuro elegante Gris oscuro*/
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.menu li a {
    color: white !important;
    text-decoration: none;
    font-size: 18px;
    font-family: 'Open Sans', sans-serif;
    transition: 0.3s;
}

.menu li a:hover {
    color: #81ecec !important; /* Hover azul suave Huanptic */
}

/* ===========================
   SUBMENÚ
   =========================== */

.submenu .children {
    display: none;
    position: absolute;
    background: #1A1A1A;
    padding: 10px 0;
    list-style: none;
    margin-top: 10px;
    border-radius: 5px;
    z-index: 9999;
}

.submenu:hover .children {
    display: block;
}

.children li a {
    display: block;
    padding: 10px 20px;
    color: white !important;
}

.children li a:hover {
    background: #0FA958 !important;
}

/* ===========================
   BOTÓN HAMBURGUESA
   =========================== */

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 4px;
    background: #0984e3; /* Azul Huanptic */
    margin: 5px 0;
    border-radius: 5px;
}

/* ===========================
   RESPONSIVE
   =========================== */

@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 li {
        text-align: center;
        padding: 10px 0;
    }

    .submenu .children {
        position: static;
        background: #1A1A1A;
        margin-top: 0;
        border-radius: 0;
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 26px !important;
    }

    .brand-logo {
        height: 65px !important;
        width: 65px !important;
    }
}

/* ===========================
   BANNER CORPORATIVO
   =========================== */

.milpa-banner {
    width: 100%;
    background: url('../Images_Master/Banner_huanptic.jpg') center/cover no-repeat;
    padding: 120px 20px;
    text-align: center;
    color: white;
}

.milpa-banner-content h1 {
    font-size: 48px;
    font-family: 'Bebas Neue', sans-serif;
    color: #0984e3; /* Azul Huanptic */
    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;
}
/* ===========================
   OVERLAY VERDE MILPA PARA EL BANNER
   =========================== */

.milpa-banner {
    position: relative;
}

.milpa-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 169, 88, 0.35); /* Azul Huanptic con transparencia */
    z-index: 1;
}

.milpa-banner-content {
    position: relative;
    z-index: 2;
}
/* ===========================
   FIX SUBMENÚS BLOQUEADOS
   =========================== */

.navbar {
    position: relative;
    z-index: 9999;
}

.submenu .children {
    z-index: 99999 !important;
}

.milpa-banner {
    position: relative;
    z-index: 1;
}

/* ===========================
   OVERLAY VERDE MILPA
   =========================== */

.milpa-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 169, 88, 0.35);
    z-index: 1;
}

.milpa-banner-content {
    position: relative;
    z-index: 2;
}
/* ===========================
   FIX SUBMENÚS QUE SE CIERRAN
   =========================== */

header {
    position: relative;
    z-index: 99999;
}

.navbar {
    position: relative;
    z-index: 99999;
    padding-bottom: 40px; /* Permite bajar el mouse sin perder el hover */
}

.submenu .children {
    position: absolute;
    z-index: 999999 !important;
}

.milpa-banner {
    position: relative;
    z-index: 1;
    margin-top: 20px; /* Evita superposición con el menú */
}

/* ===========================
   OVERLAY VERDE MILPA
   =========================== */

.milpa-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 169, 88, 0.35);
    z-index: 1;
}

.milpa-banner-content {
    position: relative;
    z-index: 2;
}
/* ===== RESET PARA QUE LOS SUBMENÚS FUNCIONEN ===== */

/* Que el header y el navbar manden sobre el banner */
header {
    position: relative;
    z-index: 1000;
}

.navbar {
    position: relative;
    z-index: 1000;
    padding-bottom: 0;      /* quitamos el colchón raro */
    margin-bottom: 0;
}

/* Submenús básicos, sin overlay ni cosas raras */
.submenu {
    position: relative;
}

.submenu .children {
    position: absolute;
    top: 100%;              /* justo debajo del item padre */
    left: 0;
    background: #1A1A1A;
    display: none;
    z-index: 2000;
}

.submenu:hover .children {
    display: block;
}

/* El banner bien separado del menú */
.milpa-banner {
    position: relative;
    z-index: 1;
    margin-top: 40px;       /* separa el banner del menú */
}

/* IMPORTANTE: quitamos overlay por ahora */
.milpa-banner::before {
    content: none !important;
}
/* ============================================
   FIX DEFINITIVO: SUBMENÚ PEGADO AL ELEMENTO PADRE
   ============================================ */

/* El padre debe ser relative */
.submenu {
    position: relative !important;
}

/* El submenú debe iniciar EXACTAMENTE debajo del padre */
.submenu .children {
    position: absolute !important;
    top: 100% !important;   /* justo debajo del <a> */
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 99999 !important;
    background: #1A1A1A !important;
    display: none;
}

/* Mostrar submenú al hacer hover */
.submenu:hover .children {
    display: block !important;
}

/* Asegurar que los <li> internos no tengan separación */
.submenu .children li {
    margin: 0 !important;
    padding: 0 !important;
}

/* Asegurar que los enlaces internos ocupen todo el espacio */
.submenu .children li a {
    display: block !important;
    padding: 10px 20px !important;
    color: white !important;
    text-decoration: none !important;
}

/* Hover interno */
.submenu .children li a:hover {
    background: #0FA958 !important;
}
/* ===========================
   MENÚ MÓVIL MÁS GRANDE Y LEGIBLE
   =========================== */

@media (max-width: 900px) {

    .menu {
        width: 100%;
        font-size: 20px; /* más grande */
        gap: 0;
    }

    .menu li a {
        padding: 15px 20px;
        font-size: 20px !important;
    }

    .submenu .children li a {
        padding: 15px 25px !important;
        font-size: 18px !important;
    }
}
@media (max-width: 900px) {
    .submenu .children {
        position: static !important; /* que no flote */
        display: none;               /* cerrado por defecto */
        background: #1A1A1A;
        padding-left: 20px;
    }
}

/**/
.milpa-slider {
    position: relative;
    width: 100%;
    height: 500px; /* Ajusta según tu diseño */
    overflow: hidden;
}

.milpa-slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.milpa-slider {
    margin-bottom: 20px;
}

.milpa-slider .slide.active {
    opacity: 1;
}

/* Texto dentro del slider */
.slider-text {
    position: absolute;
    top: 15%;          /* Más arriba para evitar que baje demasiado */
    left: 5%;          /* Más espacio horizontal */
    right: 5%;         /* Permite que el bloque use todo el ancho disponible */
    z-index: 10;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0px 2px 6px rgba(0,0,0,0.6);

    max-width: 90%;    /* Mucho más ancho */
    background: rgba(0, 0, 0, 0.45);
    padding: 25px 30px;
    border-radius: 10px;
}


/* Título */
.slider-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

/* Líneas inferiores */
.slider-text p {
    font-size: 24px;
    font-weight: 400;
    margin: 5px 0;
}

/* Responsive para tablets */
@media (max-width: 992px) {
    .slider-text h1 {
        font-size: 36px;
    }
    .slider-text p {
        font-size: 20px;
    }
}

/* Responsive para celulares */
@media (max-width: 600px) {
    .slider-text {
        top: 15%;
        left: 5%;
        max-width: 90%;
        padding: 20px;
    }
    .slider-text h1 {
        font-size: 28px;
    }
    .slider-text p {
        font-size: 18px;
    }
}

/* Footer Base */
.milpa-footer {
    background-color: #0a5c3b; /* Verde Milpalaw */
    color: #ffffff;
    padding: 40px 20px;
    font-family: 'Montserrat', sans-serif;
}

/* Footer Container */
.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Columns */
.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Footer Menu */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
}

.footer-menu a:hover {
    text-decoration: underline;
}

/* FORZAR VERDE MILPALAW EN TODO EL FOOTER */
footer.milpa-footer,
.milpa-footer,
.milpa-footer * {
    background-color: #0a5c3b !important;
    color: #ffffff !important;
}

/* Da forma en el Footer a las Politicas */
.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.legal-link {
    display: block;
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
}



/* Responsive */
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Formatea la informacion de la pgina Legal*/
.legal-wrapper {
    max-width: 900px;
    margin: 60px auto;
    padding: 30px;
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.6;
    color: #222;
}

.legal-wrapper h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #0a5c3b; /* Verde MilpaLaw */
}

.legal-wrapper h2 {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #0a5c3b;
}

.legal-wrapper p {
    margin-bottom: 12px;
    font-size: 16px;
}


/* Fondo exclusivo para la página Accidentes */
.accidentes-wrapper {
    background-color: #55efc4 !important;
    padding: 20px;
}

/* HERO */
.hero-accidentes {
    text-align: center;
    margin-bottom: 40px;
}
.hero-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

/*Secciones de las paginas y sus fotos*/

/* QUITAR EL AMARILLO SOLO EN ACCIDENTES */
.Sitio_de_Interes {
    background-color: #6ab04c; !important; /* Verde MilpaLaw */
}


/*Cambia el fondo de la tablas a Blanco*/
.Sitio_de_Interes .Servicios_Col {
    background-color: #ffffff !important;
}

/* CTA ESPECIAL PARA LA PÁGINA ACCIDENTES */
.Sitio_de_Interes + .cta-section {
    background-color:#1A1A1A ; /* #0a5c3b verde MilpaLaw */
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
    margin-top: 40px;
}

.Sitio_de_Interes + .cta-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.Sitio_de_Interes + .cta-section p {
    font-size: 18px;
    margin-bottom: 25px;
}

.Sitio_de_Interes + .cta-section .cta-button {
    display: inline-block;
    padding: 14px 30px;
    background-color: #1F4A07; /* verde oscuro */
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: background .3s ease;
}

.Sitio_de_Interes + .cta-section .cta-button:hover {
    background-color: #6FBF4A; /* verde claro */
}

/* ARREGLAR VIÑETAS SOLO EN ACCIDENTES */
.Sitio_de_Interes .Servicios_Col ul {
    text-align: left !important;
    padding-left: 25px !important; /* mete las viñetas dentro del bloque */
    list-style-position: inside;   /* asegura que el punto quede dentro */
}

.Sitio_de_Interes .Servicios_Col li {
    margin-bottom: 8px;
}

/* HERO SOLO PARA LA PÁGINA ACCIDENTES */
.hero-accidentes {
    width: 90%;
    margin: auto;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-accidentes .hero-img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 25px;
}

.hero-accidentes h1 {
    font-size: 42px;
    color: #2E6F0C; /* verde MilpaLaw */
    margin-bottom: 15px;
}

.hero-accidentes p {
    font-size: 18px;
    color: #333;
    width: 80%;
    margin: auto;
    margin-bottom: 20px;
    text-align: justify;
}

/*Formato de Contactanos*/

.mensaje-ok {
    color: #0a7a0a;
    font-weight: bold;
}

.mensaje-error {
    color: #b30000;
    font-weight: bold;
}

.validator {
    color: #b30000;
    font-size: 14px;
}

/* Formates nuevo contactenos*/

.contact-container {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.contact-left {
    width: 50%;
    padding: 20px;
}

.contact-right {
    width: 50%;
    padding: 20px;
}

.contact-img {
    width: 100%;
    margin: 20px 0;
    border-radius: 10px;
}

.contact-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.contact-textarea {
    width: 100%;
    height: 140px;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.validator {
    color: #b30000;
    font-size: 14px;
}

.mensaje-contacto {
    font-weight: bold;
    margin-bottom: 10px;
}

/*Banderas */

.lang-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.flag-icon {
    width: 30px;      /* tamaño perfecto */
    height: auto;
    margin-left: 10px;
    border-radius: 4px;
    transition: transform 0.2s;
}

.flag-icon:hover {
    transform: scale(1.15);
}

/*Alinea lasa banderas a la derecha y a la izquierda las redes sociales*/
.Nmenu nav {
    display: flex;
    justify-content: space-between; /* SEPARA IZQUIERDA ↔ DERECHA */
    align-items: center;
}

.lang-right {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Banderas a la derecha */
    cursor: pointer;
}

.flag-icon {
    width: 32px;
    height: auto;
    margin-left: 10px;
    border-radius: 4px;
    transition: transform 0.2s;
}

/* Layout de 3 columnas */
.layout-wrapper {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px;
    width: 100%;
}

/* Columnas laterales */
.side-image {
    flex: 0 0 220px;
    align-self: center !important;
}

/* Imagen izquierda (altura salomónica) */
.side-image.left-side img {
    max-height: 750px !important;
    max-width: 250px !important;
}

/* Imagen derecha (ligeramente más pequeña para equilibrar) */
.side-image.right-side img {
    max-height: 748px !important;
    max-width: 250px !important;
}

/* Contenido centrado verticalmente */
.content-wrapper {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* Anular float del min.css */
main .content-wrapper {
    float: none !important;
    width: auto !important;
    max-width: 1000px;
    align-self: center !important;
}

/* Ambas imágenes con la misma altura visual */
.side-image.left-side img,
.side-image.right-side img {
    max-height: 848px !important;
    max-width: 200px !important;
}

