/* --- RESET Y BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- HEADER --- */
header {
    background: #ffffff;
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
}

/* --- NAVEGACIÓN --- */
nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover { color: #007bff; }

.dropdown { position: relative; }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    top: 100%;
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown:hover .dropdown-content { display: block; }

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

/* --- ELEMENTOS MÓVILES --- */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1000;
}
.menu-overlay.active { display: block; }

/* --- HERO --- */
.hero {
    background-image:linear-gradient(rgba(209, 209, 169, 0.8)), url('2.jpeg');
    color: white;
    padding: 200px 5%;
    text-align: center;
}

.tag {
    background: #ffc107;
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.hero h1 { font-size: 2.5rem; margin: 20px 0; }
.buttons { margin-top: 30px; display: flex; justify-content: center; gap: 15px; }
.btn-primary { background: #ffc107; color: #000; padding: 12px 30px; border-radius: 5px; text-decoration: none; font-weight: bold; }
.btn-secondary { border: 2px solid #fff; color: #fff; padding: 12px 30px; border-radius: 5px; text-decoration: none; }

/* --- CARDS --- */
.container { padding: 40px 5%; }
.grid-info { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 25px; 
}
.card { 
    background: #fff; 
    padding: 30px 20px; 
    border-radius: 12px; 
    text-align: center; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}
.icon { font-size: 2.5rem; margin-bottom: 20px; }

/* --- WHATSAPP (AMARILLO Y DINÁMICO) --- */
.whatsapp-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 2000;
    transition: all 0.3s ease;
}

.wa-icon {
    background-color: #ffc107; /* Amarillo pedido */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-size: 25px;
    color: #ffffff; /* Teléfono Blanco pedido */
    position: relative;
    z-index: 2;
}

.wa-text {
    background-color: #ffffff;
    color: #333;
    padding: 8px 20px 8px 15px;
    border-radius: 20px 0 0 20px;
    margin-right: -10px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Desaparece el texto cuando se añade esta clase en JS */
.whatsapp-bubble.scrolled .wa-text {
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
}

/* --- FOOTER --- */
.main-footer {
    background: #8b8f31;
    color: #ecf0f1;
    padding: 60px 5% 30px;
    border-top: 5px solid #ffc107;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.footer-section h4 { color: #ffc107; margin-bottom: 20px; }
.contact-list { list-style: none; }
.contact-list a { color: #ecf0f1; text-decoration: none; }

/* --- RESPONSIVE MÓVIL --- */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    nav {
        position: fixed;
        top: 0; 
        right: -100%;
        width: 80%; 
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 100px 30px;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        gap: 15px;
        justify-content: flex-start;
        z-index: 1001;
    }

    nav.active { right: 0; }

    nav a {
        width: 100%;
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid #eee;
    }

    .dropdown { width: 100%; }
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        background: #f9f9f9;
        padding-left: 20px;
    }
    .dropdown.open .dropdown-content { display: block; }

    .hero h1 { font-size: 1.8rem; }
    .buttons { flex-direction: column; }
}
/* Estilo base para los contenedores de submenús */
.submenu-container {
    position: relative;
}

/* Ocultar los submenús de segundo nivel por defecto */
.submenu-content {
    display: none;
    position: absolute;
    left: 100%; /* Hace que aparezca a la derecha del menú anterior */
    top: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Mostrar el submenú al pasar el mouse por el contenedor */
.submenu-container:hover .submenu-content {
    display: block;
}

/* Estética de los enlaces del submenú */
.submenu-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.submenu-content a:hover {
    background-color: #f1f1f1;
}

/* --- ESTILOS ESPECÍFICOS PÁGINA SOMOS --- */

.hero-internal {
    background: linear-gradient(rgba(31, 20, 150, 0.7), rgba(139, 143, 49, 0.8)), url('2.jpeg');
    background-size: cover;
    background-position: center;
    padding: 120px 5%;
    color: white;
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #1f1496;
    margin: 50px 0;
    position: relative;
}

.section-title-left {
    font-size: 2rem;
    color: #1f1496;
    margin-bottom: 20px;
}

.about-intro {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin: 60px 0;
    align-items: center;
}

.vision-card {
    background: #8b8f31;
    color: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-bottom: 5px solid #ffc107;
}

.vision-card h3 { margin-bottom: 15px; color: #ffc107; }

/* Business Cards */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.business-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffc107;
    opacity: 0.4;
}

.spec-list {
    list-style: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
}

.spec-list li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.spec-list i {
    color: #8b8f31;
    margin-right: 10px;
    width: 20px;
}

/* Value Proposition */
.value-proposition {
    background: #1f1496;
    color: white;
    padding: 80px 5%;
}

.subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    opacity: 0.9;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    text-align: center;
}

.value-icon {
    font-size: 3rem;
    color: #ffc107;
    margin-bottom: 20px;
}

.value-item h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Ajustes Responsive */
@media (max-width: 768px) {
    .about-intro {
        grid-template-columns: 1fr;
    }
    .hero-internal h1 {
        font-size: 1.8rem;
    }
}


/* --- AJUSTE EN NAVEGACIÓN (Escritorio/Tablet) --- */
nav {
    display: flex;
    align-items: center;
    gap: 25px;
    /* Eliminamos cualquier posición fija que pueda interferir en escritorio */
}

/* --- CORRECCIÓN DE SUBMENÚS (Para que no se corten en Laptop) --- */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px; /* Un poco más ancho para que no se amontone el texto */
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    top: 100%;
    left: 0; /* Asegura que alinee a la izquierda del padre */
    z-index: 1000;
}

/* --- RESPONSIVE MÓVIL (768px o menos) --- */
@media (max-width: 768px) {
    .menu-toggle { 
        display: block; 
        position: relative; /* Para que siempre sea visible */
    }
    
    nav {
        position: fixed;
        top: 0; 
        right: -100%; /* Escondido a la derecha */
        width: 80%; 
        max-width: 300px; /* Para que en tablets no ocupe todo */
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        padding: 80px 20px;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        gap: 10px;
        overflow-y: auto; /* IMPORTANTE: Para que si el menú es largo, se pueda scrollear */
    }

    nav.active { 
        right: 0; 
    }

    /* Submenús en móvil: No deben flotar, deben empujar el contenido hacia abajo */
    .dropdown-content {
        position: static; /* Cambia de absoluto a estático */
        display: none;
        width: 100%;
        box-shadow: none;
        background: #f9f9f9;
        padding-left: 15px;
    }

    /* Clase que activa el JS para mostrar submenú */
    .dropdown.open > .dropdown-content {
        display: block;
    }

    /* Ajuste para sub-submenús (Segundo nivel) */
    .submenu-content {
        position: static; /* Evita que se salga de la pantalla a la derecha */
        width: 100%;
        box-shadow: none;
        padding-left: 15px;
    }
}
/*Bonto de regreso en panasaceptacion*/
/* Estilo del botón Regresar */
.btn-regresar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    margin-bottom: 20px;
    background-color: #f8f9fa; /* Fondo claro */
    color: #333; /* Texto oscuro */
    border: 2px solid #ddd; /* Borde definido */
    border-radius: 8px; /* Bordes redondeados */
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    width: fit-content;
    cursor: pointer;
}

/* Efecto al pasar el mouse */
.btn-regresar:hover {
    background-color: #e2e6ea;
    border-color: #bbb;
    transform: translateX(-5px); /* Pequeño movimiento a la izquierda */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-regresar i {
    margin-right: 8px; /* Espacio entre la flecha y el texto */
}