

:root {
    --primary-blue: #0044CC;
    --primary-red: #D32F2F; /* Rojo optimizado para contraste AA */
    --midnight: #001a33;
    --industrial-grey: #f0f2f5;
    --white: #ffffff;
    --text-main: #1a202c;
    --text-muted: #3a4454; /* Más oscuro para mejor contraste */
    --radius: 16px;
    --shadow: 0 20px 40px rgba(0,0,0,0.08);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --space-xl: 100px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    height: 100px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img { height: 60px; width: auto; aspect-ratio: 1/1; }

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--midnight);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: var(--transition);
}

.header-cta {
    background: var(--primary-blue);
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.8rem !important;
}

/* Submenu Dropdown */
.dropdown { position: relative; }
.submenu {
    position: absolute;
    top: 130%;
    left: -20px;
    background: var(--white);
    width: 260px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-bottom: 4px solid var(--primary-blue);
}
.dropdown:hover .submenu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.submenu li a {
    padding: 12px 25px; display: block; border-radius: 0;
    text-transform: none; font-size: 0.95rem; font-weight: 600;
}
.submenu li a:hover { background: var(--industrial-grey); padding-left: 30px; }

/* Sections */
section { padding: var(--space-xl) 0; }
.hero {
    background: radial-gradient(circle at top right, #002b5c, var(--midnight));
    color: var(--white);
    text-align: center;
    padding: 120px 0;
}
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); margin-bottom: 25px; }
.hero span { color: var(--primary-red); }
.hero p { font-size: 1.25rem; max-width: 800px; margin: 0 auto 50px; opacity: 0.8; }

.btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 20px 40px; background: var(--primary-red); color: var(--white);
    text-decoration: none; border-radius: 100px; font-weight: 800;
    text-transform: uppercase; transition: var(--transition);
    box-shadow: 0 10px 30px rgba(238,59,51,0.4);
}
.btn:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(238,59,51,0.6); }

/* About Section */
.about-grid { display: flex; flex-wrap: wrap; gap: 60px; align-items: center; }
.about-image { flex: 1; min-width: 300px; }
.about-image img { width: 100%; border-radius: 30px; box-shadow: var(--shadow); }
.about-content { flex: 1.2; min-width: 300px; }
.about-features {
    list-style: none; display: grid; grid-template-columns: 1fr 1fr;
    gap: 15px; margin-top: 30px;
}
.about-features li { font-weight: 700; color: var(--midnight); }
.about-features i { color: var(--primary-blue); margin-right: 10px; }

/* Product Cards */
.section-title { margin-bottom: 70px; text-align: left; }
.section-title h2 { font-size: 3rem; color: var(--midnight); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 40px; }
.product-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: var(--transition);
    display: flex; flex-direction: column; height: 100%;
}
.product-card:hover { transform: translateY(-15px); box-shadow: 0 40px 80px rgba(0,0,0,0.12); }
.product-card img { width: 100%; height: 280px; object-fit: cover; flex-shrink: 0; }
.product-info { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.product-info h3 { font-size: 1.5rem; margin-bottom: 12px; }
.product-info p { margin-bottom: 20px; flex-grow: 1; }
.btn-small {
    align-self: flex-start;
    padding: 12px 25px; border: 2px solid var(--primary-blue); color: var(--primary-blue);
    border-radius: 8px; font-weight: 700; text-transform: uppercase; text-decoration: none;
}
.btn-small:hover { background: var(--primary-blue); color: var(--white); }

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 50px;
}
.gallery-item {
    position: relative; overflow: hidden; border-radius: 12px; height: 280px;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.gallery-item:hover img { transform: scale(1.15); }
.gallery-item::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0,26,51,0.4));
    opacity: 0; transition: opacity 0.3s ease;
}
.gallery-item:hover::after { opacity: 1; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }
.faq-item { background: var(--industrial-grey); padding: 40px; border-radius: 20px; transition: var(--transition); }
.faq-item:hover { background: var(--white); box-shadow: var(--shadow); }

/* Contact Cards */
.contact-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 50px; }
.contact-card {
    background: rgba(255,255,255,0.05); padding: 40px; border-radius: 24px;
    width: 300px; text-align: center; border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition); text-decoration: none; display: block;
}
.contact-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-10px); }
.contact-card i { font-size: 3rem; margin-bottom: 20px; display: block; }
.contact-card h3 { color: var(--white); margin-bottom: 10px; }
.contact-card p { color: rgba(255,255,255,0.9); } /* Opacidad aumentada para contraste */

/* Footer */
footer { background: var(--midnight); color: var(--white); padding: 100px 0 50px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 60px; margin-bottom: 80px; }
.footer-col h4 { border-bottom: 2px solid var(--primary-red); display: inline-block; padding-bottom: 5px; margin-bottom: 25px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 50px; opacity: 0.8; text-align: center; font-size: 0.85rem; } /* Opacidad aumentada */

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed; bottom: 40px; right: 40px; background: #25d366; color: white;
    width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 35px; box-shadow: 0 10px 30px rgba(37,211,102,0.4);
    z-index: 2000; transition: var(--transition);
}
.whatsapp-float:hover { transform: rotate(360deg) scale(1.1); }

@media (max-width: 968px) {
    header { height: 70px; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    /* Toggle para menú móvil */
    #menu-toggle:checked ~ .nav-links {
        display: flex;
    }

    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { font-size: 1.1rem; padding: 15px 0; display: block; border-bottom: 1px solid var(--industrial-grey); }
    .header-cta { margin-top: 15px; border-radius: 50px; }
    
    .menu-icon {
        display: block;
        font-size: 2rem;
        cursor: pointer;
        color: var(--midnight);
        padding: 10px; /* Incrementa área táctil a 44px+ */
        margin-right: -10px;
    }
    .hero h1 { font-size: 2.8rem; }
}

@media (min-width: 969px) {
    #menu-toggle, .menu-icon { display: none; }
}

/* Product Detail Pages */
.product-detail-hero { padding: 100px 0; background: var(--industrial-grey); }
.product-flex { display: flex; gap: 80px; align-items: center; flex-wrap: wrap; }
.product-img-large { flex: 1; min-width: 300px; }
.product-img-large img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); }
.product-info-detail { flex: 1.2; min-width: 300px; }
.product-info-detail h1 { font-size: 3.5rem; margin-bottom: 20px; }
.product-info-detail h1 span { color: var(--primary-blue); }
/* Tech Specs Table */
.specs-container { margin: 40px 0; overflow-x: auto; }
.tech-table {
    width: 100%; border-collapse: collapse; background: var(--white);
    border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.tech-table th, .tech-table td { 
    padding: 18px 25px; text-align: left; border-bottom: 1px solid var(--industrial-grey); 
}
.tech-table th { background: var(--midnight); color: var(--white); font-weight: 700; width: 35%; }
.tech-table tr:last-child th, .tech-table tr:last-child td { border-bottom: none; }

/* FAQ Accordion */
.faq-sec { margin-top: 60px; }
.faq-sec h2 { margin-bottom: 30px; }
.accordion-item { 
    margin-bottom: 15px; border: 1px solid rgba(0,0,0,0.05); 
    border-radius: 12px; background: var(--white); overflow: hidden;
}
.accordion-item summary {
    padding: 20px 25px; font-weight: 700; cursor: pointer; color: var(--midnight);
    list-style: none; display: flex; justify-content: space-between; align-items: center;
    transition: background 0.3s ease;
}
.accordion-item summary:hover { background: var(--industrial-grey); }
.accordion-item summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.8rem; transition: transform 0.3s ease; }
.accordion-item[open] summary::after { transform: rotate(180deg); }
.accordion-content { padding: 0 25px 20px; color: var(--text-muted); line-height: 1.8; }

/* Content Sections */
.rich-content { margin: 60px 0; font-size: 1.1rem; color: var(--text-muted); }
.rich-content h2, .rich-content h3 { color: var(--midnight); margin: 40px 0 20px; }
.rich-content p { margin-bottom: 25px; }
.rich-content ul { padding-left: 20px; margin-bottom: 30px; }
.rich-content li { margin-bottom: 10px; }
