/*
 * EPINSA CSS - Archivo de estilos actualizado
 * Adaptado a la línea gráfica de EPINSA
 * Versión mejorada con responsividad optimizada
 */

/* ==================== 🛠️ Variables y Estilos Base ==================== */
:root {
    /* Paleta de Colores EPINSA */
    --epinsa-black: #040002;
    /* Textos y títulos */
    --epinsa-orange: #e87c0d;
    /* Botones y acciones principales */
    --epinsa-green: #dce443;
    /* Acentos, hovers y detalles */
    --epinsa-grey: #f5f5f5;
    /* Fondos claros */

    --white: #ffffff;
    --font-main: 'Montserrat', Arial, sans-serif;
    --font-sec: 'Poppins', Arial, sans-serif;

    --shadow-base: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.06);
    --padding-section: 80px 20px;
    --gap-lg: 60px;
    --gap-md: 40px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-sec);
    background-color: #f1f1f5;
    margin: 0;
    padding: 0;
    color: #555;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    color: var(--epinsa-black);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: var(--gap-md);
    color: var(--epinsa-black);
}

/* ==================== 🗺️ Header y Navegación ==================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: transparent;
    display: flex;
    align-items: center;
    box-shadow: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Estado inicial - VISIBLE con elementos blancos */
.main-header .logo img {
    filter: brightness(0) invert(1) !important;
    transition: filter 0.3s ease;
    height: 45px;
    max-width: 100%;
    display: block;
}

.main-header .nav-link {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

.main-header .nav-button {
    background-color: #e87c0d !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.main-header .menu-toggle {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

/* Estado con scroll - Fondo gris, logo normal y texto azul */
.main-header.scrolled {
    background-color: #f1f1f5 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.main-header.scrolled .logo img {
    filter: none !important;
}

.main-header.scrolled .nav-link {
    color: #223387 !important;
}

.main-header.scrolled .menu-toggle {
    color: #223387 !important;
}

.main-header.scrolled .nav-button {
    background-color: #e87c0d !important;
    color: #ffffff !important;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    max-width: 100%;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--epinsa-orange);
}

/* Botón del menú (CTA) */
.nav-button {
    background-color: var(--epinsa-orange);
    color: var(--white);
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.nav-button:hover {
    background-color: var(--epinsa-green);
    color: var(--epinsa-black);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.2rem;
    cursor: pointer;
}

/* --- Menú Móvil (Drawer) --- */
.drawer-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    max-width: 320px;
    height: 100vh;
    background-color: #f1f1f5;
    flex-direction: column;
    padding: 30px;
    z-index: 2100;
    overflow-y: auto;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.drawer-menu.active {
    display: flex;
}

.drawer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--epinsa-black);
    font-size: 2rem;
    cursor: pointer;
}

.drawer-logo {
    text-align: left;
    margin-bottom: 40px;
}

.drawer-logo img {
    max-width: 160px;
    height: auto;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.drawer-link {
    color: var(--epinsa-black);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
}

.drawer-link:hover {
    background-color: var(--epinsa-grey);
    color: var(--epinsa-orange);
}

.drawer-divider {
    border: 0;
    height: 1px;
    background-color: #ddd;
    margin: 30px 0;
}

.drawer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 1rem;
    text-align: left;
}

.drawer-contact a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.drawer-contact a:hover {
    color: var(--epinsa-orange);
}

.drawer-social {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.drawer-social-link {
    color: var(--epinsa-black);
    font-size: 1rem;
    width: 38px;
    height: 38px;
    border: 1px solid #ccc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.drawer-social-link:hover {
    background-color: var(--epinsa-orange);
    border-color: var(--epinsa-orange);
    color: var(--white);
}

/* ==================== 🖼️ Sección Hero ==================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    padding-left: 15px;
    padding-right: 15px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-fondo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-content {
    position: relative;
    padding: 0 15px;
    max-width: 800px;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

h1.hero-titulos {
    color: var(--white);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    padding: 0 10px;
    word-wrap: break-word;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.5;
    margin-top: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    padding: 0 10px;
}

/* Botón Principal del Hero */
.hero-btn {
    display: inline-block;
    background-color: var(--epinsa-orange);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
}

.hero-btn:hover {
    background-color: var(--epinsa-green);
    color: var(--epinsa-black);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(220, 228, 67, 0.4);
}

/* ==================== 📝 Contenido Principal ==================== */

/* --- Sección Sobre Nosotros --- */
.quienes-somos-section {
    padding: var(--padding-section);
    background-color: #f1f1f5;
    overflow-x: hidden;
}

.contenido-sobre-nosotros-final {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-lg);
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
}

.imagen-principal-final {
    flex: 1 1 350px;
    max-width: 40%;
}

.img-destacada-final {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.texto-bloque-final {
    flex: 1 1 50%;
    text-align: left;
}

.titulo-final {
    font-size: clamp(2.5rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 30px;
    position: relative;
    text-align: left;
}

.titulo-final::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--epinsa-green);
    margin-top: 10px;
}

.descripcion-final {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #555;
    text-align: left;
}

.img-secundaria-final {
    width: 250px;
    height: auto;
    margin-top: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    float: right;
    margin-left: 20px;
}

/* --- Sección Filosofía (Nuestro Enfoque) --- */
.filosofia-section {
    padding: var(--padding-section);
    background-color: var(--epinsa-grey);
    color: var(--epinsa-black);
    overflow-x: hidden;
}

.filosofia-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-lg);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.filosofia-img-container {
    flex: 1 1 400px;
    max-width: 100%;
}

.filosofia-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}

.filosofia-texto {
    flex: 1 1 50%;
    min-width: 300px;
    text-align: left;
}

.filosofia-titulo {
    color: var(--epinsa-orange);
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    text-align: left;
}

.filosofia-desc,
.filosofia-principios p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: #444;
    text-align: left;
}

.filosofia-principios ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.filosofia-principios ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    text-align: left;
}

.filosofia-principios ul li i {
    flex-shrink: 0;
    margin-top: 3px;
    font-size: 1.1rem;
}

.filosofia-metricas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-md);
    margin-top: 30px;
    justify-content: flex-start;
}

.filosofia-metrica {
    text-align: center;
    min-width: 150px;
}

.filosofia-metrica-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: #3c2daf;
    margin-bottom: 8px;
    display: block;
    text-align: center;
}

.filosofia-metrica-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #666;
    font-weight: 600;
    display: block;
    text-align: center;
}

/* --- Bloques de Servicio --- */
.servicios-section {
    padding: var(--padding-section);
    background-color: #f1f1f5;
    overflow-x: hidden;
}

.servicios-titulo {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: var(--gap-lg);
}

.servicio-bloque {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-lg);
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.servicio-bloque-invertido {
    flex-direction: row-reverse;
}

.servicio-info,
.servicio-img-container {
    flex: 1 1 400px;
}

.servicio-img-container {
    text-align: center;
}

.servicio-img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}

.servicio-titulo {
    color: var(--epinsa-orange);
    font-size: 2.3rem;
    margin-bottom: 15px;
}

.servicio-subtitulo {
    font-weight: 600;
    color: var(--epinsa-black);
    margin-bottom: 15px;
}

.servicio-texto {
    color: #555;
}

.servicio-btn {
    background-color: #3c2daf;
    color: var(--white);
    font-weight: 700;
    padding: 15px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 25px;
    display: inline-block;
    width: 50%;
    max-width: 450px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(60, 45, 175, 0.25);
    text-align: center;
    font-size: 1.05rem;
}

.servicio-btn:hover {
    background-color: #2e2282;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(60, 45, 175, 0.35);
}

.servicio-icono {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

/* --- Sección FAQs --- */
.faqs {
    padding: var(--padding-section);
    background-color: var(--epinsa-grey);
}

.faqs-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--epinsa-black);
}

.faqs-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--gap-lg) auto;
    line-height: 1.6;
}

.faqs-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.faqs-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 0;
    background: #fff;
    transition: all 0.3s ease;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    text-align: left;
    padding: 20px 25px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
}

.faq-question[aria-expanded="true"] {
    border-bottom-color: #ffb400;
}

.faq-question h3 {
    margin: 0;
    font-family: var(--font-sec);
    font-weight: 600;
    color: var(--epinsa-black);
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.4;
    padding-right: 15px;
}

.faq-icon {
    transition: transform 0.3s ease-in-out;
    color: var(--epinsa-orange);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 25px;
}

.faq-answer p {
    padding-bottom: 20px;
    padding-top: 5px;
    color: #555;
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

.faq-answer p strong {
    color: var(--epinsa-black);
    font-weight: 600;
}

/* --- Sección Productos (Carrusel) --- */
.productos-section {
    padding: var(--padding-section);
    background-color: #f1f1f5;
    overflow: hidden;
}

.productos-subtitulo {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    color: #666;
    margin-top: -30px;
    margin-bottom: var(--gap-lg);
}

.mySwiperProductos {
    padding: 0 50px !important;
    max-width: 1400px;
    margin: 0 auto;
}

.mySwiperProductos .swiper-slide {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    aspect-ratio: 4 / 5;
    background-color: #eee;
}

.mySwiperProductos .producto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mySwiperProductos .swiper-slide:hover .producto-img {
    transform: scale(1.05);
}

.mySwiperProductos .producto-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(4, 0, 2, 0.9), transparent);
    padding: 30px 20px 20px;
    text-align: center;
}

.mySwiperProductos .producto-titulo {
    color: var(--white);
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.mySwiperProductos .swiper-button-next,
.mySwiperProductos .swiper-button-prev {
    color: var(--epinsa-black);
    background-color: #f1f1f5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: var(--shadow-base);
    transition: all 0.2s ease;
}

.mySwiperProductos .swiper-button-next:hover,
.mySwiperProductos .swiper-button-prev:hover {
    background-color: var(--epinsa-orange);
    color: var(--white);
}

.mySwiperProductos .swiper-button-next::after,
.mySwiperProductos .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: 900;
}

/* --- Sección Contacto --- */
.contacto {
    padding: var(--padding-section);
    text-align: center;
    background-color: var(--epinsa-grey);
}

.contacto-subtitulo {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--epinsa-orange);
}

.contacto-titulo {
    margin-bottom: var(--gap-md);
}

.contacto-formulario {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.input-grupo {
    position: relative;
    margin-bottom: 20px;
}

.input-grupo i {
    margin-bottom: 10px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.input-grupo.textarea-grupo i {
    top: 20px;
    transform: none;
}

.input-grupo input,
.input-grupo textarea {
    width: 100%;
    padding: 18px 15px 18px 50px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f1f1f5;
    font-family: var(--font-sec);
    font-size: 1rem;
    color: var(--epinsa-black);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-grupo input:focus,
.input-grupo textarea:focus {
    border-color: var(--epinsa-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 124, 13, 0.15);
}

.input-grupo input:focus~i,
.input-grupo textarea:focus~i {
    color: var(--epinsa-orange);
}

.input-grupo textarea {
    height: 150px;
    resize: vertical;
    padding-top: 15px;
}

.submit-btn {
    background-color: var(--epinsa-orange);
    color: var(--white);
    font-weight: 700;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50%;
    margin: 0 auto;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    background-color: var(--epinsa-green);
    color: var(--epinsa-black);
    transform: translateY(-2px);
}

.form-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-messages.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-messages.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Sección Logos --- */
.logos-certificacion {
    text-align: center;
    padding: var(--padding-section);
    background-color: #f1f1f5;
}

.logos-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1000px;
    margin: 40px auto 0 auto;
}

.grayscale-hover img {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    height: 80px;
    width: auto;
}

.grayscale-hover img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ==================== Footer ==================== */
.footer {
    background-color: #060727;
    color: #ccc;
    padding: 60px 20px 20px;
    font-family: var(--font-sec);
}

.footer-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    gap: 40px;
}

.footer-col {
    flex: 1 1 220px;
}

.footer-logo-img {
    width: 200px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-director,
.footer-contact-info,
.footer-text,
.footer-office-info p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 10px;
    color: #bbb;
}

.footer-contact-info a {
    color: #bbb;
    text-decoration: none;
}

.footer-contact-info a:hover {
    text-decoration: underline;
    color: var(--epinsa-green);
}

.footer-office-title {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-social-horizontal {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 35px;
    height: auto;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.social-icon:hover {
    filter: grayscale(0%) brightness(1.2);
}

.footer-copy {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 40px;
    font-size: 12px;
    color: #888;
}

.footer-copy a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copy a:hover {
    color: var(--epinsa-green);
}

.footer a,
.footer a:visited {
    color: #bbb !important;
    text-decoration: none;
}

.footer a:hover {
    color: var(--epinsa-green) !important;
    text-decoration: none;
}

.footer i,
.footer .fa,
.footer .fab,
.footer .fas {
    color: #bbb !important;
}

.footer svg {
    fill: #bbb !important;
}

.footer-social-horizontal a {
    color: #bbb !important;
}

.footer-social-horizontal a:hover {
    color: var(--epinsa-green) !important;
}

.aviso-privacidad {
    color: #dce443 !important;
    text-decoration: none !important;
}

.aviso-privacidad:hover {
    color: #dce443 !important;
    text-decoration: underline !important;
}

/* ==================== Botón Flotante de WhatsApp ==================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 100px;
    right: 30px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    animation: none;
}

.whatsapp-float i {
    color: #ffffff !important;
    line-height: 60px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==================== Media Queries - Responsividad Mejorada ==================== */

/* Tablets grandes y pantallas medianas */
@media (max-width: 1024px) {
    :root {
        --padding-section: 70px 20px;
        --gap-lg: 50px;
        --gap-md: 35px;
    }

    .contenido-sobre-nosotros-final,
    .filosofia-content {
        gap: 50px;
    }

    .servicio-bloque {
        gap: 50px;
    }
}

/* Tablets y pantallas medianas */
@media (max-width: 991px) {
    :root {
        --padding-section: 60px 25px;
        --gap-lg: 40px;
        --gap-md: 30px;
    }

    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .header-container {
        padding: 0 25px;
    }

    .logo img {
        height: 40px;
    }

    .hero-section {
        height: clamp(500px, 75vh, 700px);
        padding: 0 20px;
    }

    h1.hero-titulos {
        font-size: clamp(2.2rem, 7vw, 3rem);
        margin-bottom: 15px;
    }

    .hero-desc {
        font-size: clamp(1.05rem, 2.5vw, 1.2rem);
        margin-top: 15px;
    }

    .hero-btn {
        padding: 14px 35px;
        font-size: 1.05rem;
        margin-top: 35px;
    }

    .contenido-sobre-nosotros-final {
        flex-direction: column;
        gap: 40px;
        padding: 0 15px;
    }

    .imagen-principal-final {
        order: -1;
        max-width: 100%;
    }

    .texto-bloque-final {
        text-align: left;
        padding: 0 10px;
    }

    .titulo-final {
        text-align: left;
    }

    .titulo-final::after {
        margin-left: 0;
    }

    .descripcion-final {
        text-align: left;
    }

    .img-destacada-final,
    .img-secundaria-final {
        float: none;
        margin: 20px auto;
        display: block;
    }

    .filosofia-content {
        gap: 40px;
        padding: 0 15px;
    }

    .filosofia-texto {
        padding: 0 10px;
    }

    .filosofia-titulo {
        text-align: left;
    }

    .filosofia-desc,
    .filosofia-principios p {
        text-align: left;
    }

    .filosofia-metricas {
        justify-content: center;
        gap: 30px;
    }

    .filosofia-metrica {
        text-align: center;
    }

    .filosofia-metrica-num {
        text-align: center;
        color: #3c2daf;
    }

    .filosofia-metrica-label {
        text-align: center;
    }

    .servicio-bloque,
    .servicio-bloque-invertido {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 50px;
        padding: 0 15px;
    }

    .servicio-info {
        text-align: center;
        padding: 0 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .servicio-titulo {
        font-size: 2rem;
        text-align: center;
    }

    .servicio-texto {
        text-align: center;
    }

    .servicio-icono {
        margin: 0 auto 15px;
    }

    .servicio-btn {
        margin: 20px auto 0;
        width: 70%;
        max-width: 350px;
        display: block;
    }

    .footer-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .footer-logo-img {
        filter: none;
    }
}

/* Tablets pequeñas */
@media (max-width: 768px) {
    :root {
        --padding-section: 50px 20px;
        --gap-lg: 35px;
        --gap-md: 25px;
    }

    .main-header {
        height: 65px;
    }

    .logo img {
        height: 38px;
    }

    .section-title {
        font-size: clamp(1.9rem, 6vw, 2.4rem);
        margin-bottom: 30px;
    }

    .hero-section {
        height: clamp(450px, 70vh, 600px);
        padding: 0 20px;
    }

    h1.hero-titulos {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .hero-desc {
        font-size: clamp(1rem, 3vw, 1.15rem);
        padding: 0 10px;
    }

    .contenido-sobre-nosotros-final {
        padding: 0 20px;
    }

    .texto-bloque-final {
        padding: 0 15px;
    }

    .titulo-final {
        text-align: left;
        padding: 0 5px;
    }

    .descripcion-final {
        text-align: left;
        padding: 0 5px;
    }

    .filosofia-content {
        padding: 0 20px;
    }

    .filosofia-texto {
        padding: 0 15px;
    }

    .filosofia-titulo {
        text-align: left;
        padding: 0 5px;
    }

    .filosofia-desc,
    .filosofia-principios p {
        text-align: left;
        padding: 0 5px;
    }

    .filosofia-principios ul {
        padding: 0 5px;
    }

    .filosofia-metricas {
        justify-content: flex-start;
        padding: 0 5px;
    }

    .filosofia-metrica {
        text-align: left;
    }

    .servicio-bloque,
    .servicio-bloque-invertido {
        padding: 0 20px;
    }

    .servicio-info {
        padding: 0 15px;
        text-align: left;
    }

    .servicio-titulo {
        text-align: left;
        padding: 0 5px;
    }

    .servicio-texto {
        text-align: left;
        padding: 0 5px;
    }

    .servicio-btn {
        margin: 20px 5px 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .submit-btn {
        width: 100%;
        padding: 14px 30px;
    }

    .faq-card {
        padding: 0;
        margin-bottom: 12px;
    }

    .faq-question {
        padding: 16px 20px;
        font-size: 1.05rem;
    }

    .faq-question h3 {
        font-size: 1.05rem;
        line-height: 1.4;
        padding-right: 10px;
        text-align: left;
    }

    .faq-icon {
        font-size: 1.1rem;
        margin-left: 10px;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-answer p {
        font-size: 0.95rem;
        line-height: 1.65;
        padding-bottom: 16px;
        text-align: left;
    }

    .logos-wrapper {
        gap: 30px;
    }

    .grayscale-hover img {
        height: 65px;
    }

    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 85px;
        right: 25px;
        font-size: 30px;
    }
}

/* Móviles grandes */
@media (max-width: 600px) {
    :root {
        --padding-section: 40px 15px;
        --gap-lg: 30px;
        --gap-md: 20px;
    }

    body {
        overflow-x: hidden;
    }

    .main-header {
        height: 60px;
    }

    .header-container {
        padding: 0 15px;
    }

    .logo img {
        height: 35px;
    }

    .menu-toggle {
        font-size: 2rem;
    }

    .hero-section {
        height: clamp(400px, 65vh, 550px);
        padding: 0 15px;
    }

    .hero-content {
        padding: 0 10px;
    }

    h1.hero-titulos {
        font-size: clamp(1.8rem, 9vw, 2.3rem);
        line-height: 1.3;
        padding: 0 5px;
    }

    .hero-desc {
        font-size: clamp(0.95rem, 3.5vw, 1.1rem);
        line-height: 1.5;
        margin-top: 12px;
        padding: 0 5px;
    }

    .hero-btn {
        padding: 13px 30px;
        font-size: 1rem;
        margin-top: 25px;
    }

    .section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-bottom: 25px;
        padding: 0 5px;
    }

    .contenido-sobre-nosotros-final {
        padding: 0 15px;
    }

    .texto-bloque-final {
        padding: 0 5px;
    }

    .titulo-final {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-bottom: 20px;
        text-align: left;
        padding: 0;
    }

    .titulo-final::after {
        margin-left: 0;
    }

    .descripcion-final {
        font-size: 0.93rem;
        line-height: 1.65;
        margin-bottom: 15px;
        text-align: left;
        padding: 0;
    }

    .filosofia-section {
        padding: 40px 15px;
    }

    .filosofia-content {
        padding: 0 10px;
    }

    .filosofia-texto {
        padding: 0 5px;
    }

    .filosofia-titulo {
        font-size: clamp(1.7rem, 6vw, 2rem);
        text-align: left;
        padding: 0;
    }

    .filosofia-desc,
    .filosofia-principios p {
        font-size: 0.93rem;
        text-align: left;
        padding: 0;
    }

    .filosofia-principios ul {
        padding: 0;
        margin: 15px 0;
    }

    .filosofia-principios ul li {
        gap: 10px;
        margin-bottom: 10px;
        padding-right: 5px;
    }

    .filosofia-metrica {
        text-align: center;
        min-width: 140px;
    }

    .filosofia-metrica-num {
        font-size: 2.5rem;
        color: #3c2daf;
        text-align: center;
    }

    .filosofia-metrica-label {
        font-size: 0.85rem;
        text-align: center;
    }

    .filosofia-metricas {
        justify-content: center;
        padding: 0;
        gap: 25px;
        margin-top: 30px;
    }

    .servicio-bloque,
    .servicio-bloque-invertido {
        padding: 0 15px;
    }

    .servicio-info {
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .servicio-titulo {
        font-size: 1.8rem;
        margin-bottom: 12px;
        text-align: center;
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .servicio-subtitulo {
        font-size: 1rem;
        margin-bottom: 12px;
        text-align: center;
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .servicio-texto {
        font-size: 0.93rem;
        line-height: 1.6;
        text-align: center;
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .servicio-btn {
        width: 100%;
        max-width: 350px;
        padding: 15px 20px;
        font-size: 1rem;
        margin: 20px 0 0;
        background-color: #3c2daf;
        color: var(--white);
        font-weight: 700;
        border-radius: 8px;
        text-align: center;
        transition: all 0.3s ease;
        display: block;
        box-sizing: border-box;
    }

    .servicio-btn:hover {
        background-color: #2e2282;
        color: var(--white);
        transform: translateY(-2px);
    }

    .faq-card {
        padding: 0;
        margin-bottom: 10px;
        border-radius: 8px;
    }

    .faq-question {
        padding: 14px 18px;
        font-size: 1rem;
    }

    .faq-question h3 {
        font-size: 1rem;
        line-height: 1.4;
        padding-right: 8px;
        text-align: left;
    }

    .faq-icon {
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 18px;
    }

    .faq-answer p {
        font-size: 0.92rem;
        padding-bottom: 14px;
        text-align: left;
    }

    .input-grupo input,
    .input-grupo textarea {
        padding: 15px 12px 15px 45px;
        font-size: 0.95rem;
    }

    .input-grupo i {
        left: 15px;
        font-size: 1rem;
    }

    .footer {
        padding: 40px 15px 15px;
    }

    .footer-col {
        flex: 1 1 100%;
        text-align: center;
    }

    .footer-logo-img {
        margin: 0 auto 20px;
        display: block;
        max-width: 180px;
    }

    .footer-social-horizontal {
        justify-content: center;
    }

    .whatsapp-float {
        width: 54px;
        height: 54px;
        bottom: 80px;
        right: 20px;
        font-size: 28px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    :root {
        --padding-section: 35px 18px;
    }

    .hero-section {
        padding: 0 20px;
    }

    h1.hero-titulos {
        font-size: 1.7rem;
    }

    .hero-desc {
        font-size: 0.93rem;
        padding: 0 10px;
    }

    .section-title {
        font-size: 1.75rem;
        padding: 0 8px;
    }

    .contenido-sobre-nosotros-final {
        padding: 0 18px;
    }

    .texto-bloque-final {
        padding: 0 8px;
    }

    .titulo-final {
        font-size: 1.75rem;
        text-align: left;
    }

    .descripcion-final {
        text-align: left;
    }

    .filosofia-content {
        padding: 0 18px;
    }

    .filosofia-texto {
        padding: 0 8px;
    }

    .filosofia-titulo {
        font-size: 1.65rem;
        text-align: left;
    }

    .filosofia-desc,
    .filosofia-principios p {
        text-align: left;
    }

    .filosofia-metricas {
        justify-content: center;
        gap: 20px;
    }

    .filosofia-metrica {
        text-align: center;
        min-width: 130px;
    }

    .filosofia-metrica-num {
        text-align: center;
        color: #3c2daf;
    }

    .filosofia-metrica-label {
        text-align: center;
    }

    .servicio-bloque,
    .servicio-bloque-invertido {
        padding: 0 18px;
    }

    .servicio-info {
        padding: 0 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .servicio-titulo {
        font-size: 1.6rem;
        text-align: center;
    }

    .servicio-texto {
        text-align: center;
    }

    .servicio-btn {
        width: 95%;
        max-width: none;
        margin: 15px auto 0;
        display: block;
    }

    .faq-card {
        padding: 0;
        margin-bottom: 8px;
    }

    .faq-question {
        padding: 12px 15px;
    }

    .faq-question h3 {
        font-size: 0.98rem;
        line-height: 1.3;
        text-align: left;
    }

    .faq-icon {
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 15px;
    }

    .faq-answer p {
        font-size: 0.9rem;
        padding-bottom: 12px;
        text-align: left;
    }
}

/* Móviles muy pequeños */
@media (max-width: 380px) {
    :root {
        --padding-section: 30px 15px;
    }

    .hero-section {
        padding: 0 18px;
    }

    h1.hero-titulos {
        font-size: 1.6rem;
    }

    .hero-desc {
        padding: 0 8px;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .contenido-sobre-nosotros-final {
        padding: 0 15px;
    }

    .texto-bloque-final {
        padding: 0 5px;
    }

    .titulo-final {
        font-size: 1.65rem;
        text-align: left;
    }

    .filosofia-content {
        padding: 0 15px;
    }

    .filosofia-texto {
        padding: 0 5px;
    }

    .filosofia-titulo {
        text-align: left;
    }

    .filosofia-metricas {
        gap: 18px;
        justify-content: center;
    }

    .filosofia-metrica {
        min-width: 120px;
        text-align: center;
    }

    .filosofia-metrica-num {
        color: #3c2daf;
        text-align: center;
        font-size: 2.3rem;
    }

    .filosofia-metrica-label {
        text-align: center;
    }

    .servicio-bloque,
    .servicio-bloque-invertido {
        padding: 0 15px;
    }

    .servicio-info {
        padding: 0 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .servicio-titulo {
        font-size: 1.5rem;
        text-align: center;
    }

    .servicio-texto {
        text-align: center;
    }

    .servicio-btn {
        width: 100%;
        margin: 15px auto 0;
        display: block;
    }

    .faq-question {
        padding: 10px 12px;
    }

    .faq-question h3 {
        font-size: 0.95rem;
        text-align: left;
    }

    .faq-answer {
        padding: 0 12px;
    }

    .faq-answer p {
        font-size: 0.88rem;
        text-align: left;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 26px;
    }
}