/* --- Variables Globales y Reseteo --- */
:root {
    /* COLORES ACTUALIZADOS */
    --primary-color: #00499C; /* Azul principal */
    --accent-color: #F80035;  /* Rojo para CTAs y acentos */
    
    --dark-color: #1a1a1a; 
    --light-color: #FFFFFF;
    --grey-bg: #f8f9fa;
    --text-color: #555555;
    --font-family: 'Arial', 'Helvetica', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 6rem 0;
}

/* Títulos de Sección */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title.left-aligned {
    text-align: left;
}

.section-title .subtitle {
    font-size: 1rem;
    font-weight: bold;
    color: var(--accent-color); /* Acento Rojo */
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px; 
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent-color); /* Acento Rojo */
    color: var(--light-color);
    box-shadow: 0 4px 15px rgba(248, 0, 53, 0.3);
}

.btn-primary:hover {
    background-color: #c0002b; /* Rojo oscuro */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(248, 0, 53, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-color);
    border: 2px solid var(--light-color);
}

.btn-secondary:hover {
    background-color: var(--light-color);
    color: var(--accent-color); /* Acento Rojo en texto */
}

.btn-link {
    text-decoration: none;
    color: var(--accent-color); /* Acento Rojo */
    font-weight: bold;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--dark-color);
    letter-spacing: 0.5px;
}

/* --- Encabezado y Navegación (Sticky) --- */
.main-header {
    background: transparent;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
    height: var(--header-height);
}

.main-header.sticky {
    background: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 90px;
    --header-height: 90px;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--light-color);
}
.logo img {
    height: 70px; /* Ajusta la altura de tu logo */
    width: auto;
    transition: var(--transition);
}
.main-header.sticky .logo img {
    height: 60px; /* Logo ligeramente más pequeño en sticky */
}

.main-nav .nav-menu {
    display: flex;
    list-style: none;
}

.main-nav .nav-menu li {
    margin-left: 2rem;
}

.main-nav .nav-menu a {
    text-decoration: none;
    color: var(--light-color);
    font-weight: bold;
    font-size: 1rem;
    transition: var(--transition);
    padding-bottom: 5px;
    position: relative;
}

.main-nav .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color); /* Azul Primario */
    transition: width 0.3s ease;
}

.main-header.sticky .main-nav .nav-menu a {
    color: var(--dark-color);
}

.main-nav .nav-menu a:hover::after,
.main-nav .nav-menu a.active::after {
    width: 100%;
}
.main-nav .nav-menu a:hover,
.main-header.sticky .main-nav .nav-menu a:hover {
    color: var(--primary-color); /* Azul Primario */
}


.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-color);
}
.main-header.sticky .hamburger {
    color: var(--dark-color);
}

/* --- Sección Hero con Video y Máscara --- */
.hero-video {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-color);
    padding: 0 20px;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 36, 71, 0.9); /* Overlay con Azul Primario */
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: normal;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-content .btn {
    margin: 0 0.5rem;
}

/* Animación de entrada para Hero */
.hero-content .animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}
.hero-content .animate-in:nth-child(1) { animation-delay: 0.2s; }
.hero-content .animate-in:nth-child(2) { animation-delay: 0.4s; }
.hero-content .animate-in:nth-child(3) { animation-delay: 0.6s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* --- Sección "Por Qué Elegirnos" (Diseño Asimétrico) --- */
.about-us-section {
    background: var(--light-color);
}

.about-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    position: relative;
}

.features-list {
    list-style: none;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.features-list li {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.features-list i {
    color: var(--accent-color); /* Acento Rojo */
    font-size: 1.2rem;
    margin-right: 10px;
}

.about-us-image-wrapper {
    position: relative;
}

.overlapping-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateX(10%);
}

/* --- Sección de Productos (Diseño "Flotante") --- */
.products-section {
    background-color: #00499C;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem; 
}

.product-card {
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    padding: 2rem;
    padding-top: 0; 
    text-align: center;
    transition: var(--transition);
}

.product-image-container {
    margin-top: -3rem; 
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.product-image-container img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 73, 156, 0.2); /* Sombra Azul */
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card:hover .product-image-container img {
    box-shadow: 0 20px 40px rgba(0, 73, 156, 0.3); /* Sombra Azul */
    transform: scale(1.03);
}

.product-content h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* --- Sección Aplicaciones --- */
.applications-section {
    background: var(--light-color);
}
.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.app-item {
    background: var(--grey-bg);
    padding: 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    transition: var(--transition);
}
.app-item:hover {
    background: var(--accent-color); /* Acento Rojo */
    color: var(--light-color);
}
.app-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--accent-color); /* Acento Rojo */
    transition: var(--transition);
}
.app-item:hover i {
    color: var(--light-color);
}

/* --- Sección Testimonios (Slider) --- */
.testimonial-section {
    background: var(--grey-bg);
}
.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}
.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.testimonial-card {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}
.testimonial-card.active {
    opacity: 1;
    position: relative;
}
.testimonial-card p {
    font-size: 1.2rem;
    font-style: italic;
    color: #333;
    margin-bottom: 1.5rem;
}
.testimonial-card h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}
.testimonial-card .stars {
    color: #f39c12; /* Estrellas doradas */
}

.slider-nav {
    text-align: center;
    margin-top: 1.5rem;
}
.slider-nav button {
    background: var(--accent-color); /* Acento Rojo */
    color: var(--light-color);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1rem;
    cursor: pointer;
    margin: 0 0.5rem;
    transition: var(--transition);
}
.slider-nav button:hover {
    background: var(--dark-color);
}


/* --- Banner CTA --- */
.cta-banner {
    background: var(--primary-color); /* Azul Primario */
    color: var(--light-color);
    padding: 5rem 0;
    text-align: center;
    clip-path: polygon(0 15%, 100% 0, 100% 85%, 0 100%);
}
.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.cta-banner .btn-primary {
    background: var(--light-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}
.cta-banner .btn-primary:hover {
    background: var(--light-color);
    color: var(--accent-color); /* Hover rojo */
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* --- Sección Contacto --- */
.contact-section { background: var(--grey-bg); }
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    background: var(--light-color);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
.contact-info h3, .contact-form h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}
.contact-info ul { list-style: none; }
.contact-info li {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}
.contact-info li i {
    font-size: 1.2rem;
    color: var(--accent-color); /* Acento Rojo */
    margin-right: 1rem;
    width: 20px;
    text-align: center;
    margin-top: 4px;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--dark-color);
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color); /* Azul Primario */
    box-shadow: 0 0 8px rgba(0, 73, 156, 0.3);
}
.contact-form .btn-primary {
    box-shadow: 0 4px 15px rgba(248, 0, 53, 0.3);
}
.contact-form .btn-primary:hover {
     box-shadow: 0 6px 20px rgba(248, 0, 53, 0.4);
}

/* --- Footer --- */
.main-footer { background: var(--dark-color); color: #ccc; padding-top: 6rem; }
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-col h4 {
    font-size: 1.3rem;
    color: var(--light-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color); /* Acento Rojo */
}
.footer-col p { font-size: 0.95rem; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul a { text-decoration: none; color: #ccc; transition: var(--transition); }
.footer-col ul a:hover { color: var(--light-color); padding-left: 5px; }
.footer-bottom { text-align: center; padding: 1.5rem 0; border-top: 1px solid #444; font-size: 0.9rem; }

/* --- Animaciones de Scroll --- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--delay, 0s);
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Media Queries (Responsivo) --- */
@media (max-width: 992px) {
    .section-title h2 { font-size: 2.2rem; }
    .hero-content h1 { font-size: 3rem; }

    .about-us-grid {
        grid-template-columns: 1fr;
    }
    .overlapping-image {
        transform: translateX(0);
        max-width: 500px;
        margin: 2rem auto 0;
        display: block;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 6rem; 
    }

    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-padding { padding: 3rem 0; }
    .btn-cotizar { display: none; }
    .hamburger { display: block; }

    .main-nav .nav-menu {
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background: var(--light-color);
        flex-direction: column;
        align-items: center;
        border-top: 1px solid #eee;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }
    .main-nav .nav-menu.active {
        max-height: 500px;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.05);
    }
    .main-nav .nav-menu li { margin: 0.5rem 0; width: 100%; text-align: center; }
    .main-nav .nav-menu a,
    .main-header.sticky .main-nav .nav-menu a {
        padding: 0.8rem 0;
        display: block;
        width: 100%;
        border-bottom: none;
        color: var(--dark-color) !important;
    }
    .main-nav .nav-menu a::after { display: none; }
    
    .logo img { height: 40px; }
    .main-header.sticky .logo img { height: 40px; }
    
    .hero-video { clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
    .hero-content .btn {
        display: block;
        width: 80%;
        margin: 0.5rem auto;
    }

    .applications-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; padding: 2rem; }
    .cta-banner { clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%); }
}
/* === WhatsApp === */
.whatsapp-float { 
    position: fixed; 
    width: 60px; 
    height: 60px; 
    bottom: 40px; 
    left: 40px; 
    background-color: #25d366; 
    color: #FFF; 
    border-radius: 50px; 
    text-align: center; 
    font-size: 30px; 
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2); 
    z-index: 100; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    animation: pulse 2s infinite; 
}