:root {
    /* PALETA DE COLOR REFINADA */
    --primary-dark: #121212;
    --secondary-dark: #1E1E24;
    --text-main: #333333; /* Texto oscuro base */
    --text-paragraph: #444444; /* Texto de lectura oscurecido para contraste */
    --bg-off-white: #F9FAFB;
    
    /* Colores de Marca */
    --brand-blue: #0096C7; 
    --brand-purple: #9B5DE5;
    --brand-red: #E63946;
    --brand-green: #00F5D4;
    
    /* Degradados */
    --gradient-primary: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-purple) 100%);
    --gradient-header-pe: linear-gradient(135deg, #0077B6, var(--brand-blue));
    --gradient-header-pp: linear-gradient(135deg, #7209B7, var(--brand-purple));
    --gradient-header-other: linear-gradient(135deg, #D00000, var(--brand-red));

    --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 35px rgba(0,0,0,0.15);
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Tipografía Industrial */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

p {
    color: var(--text-paragraph);
    font-weight: 500; /* Mejor legibilidad */
}

h2.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px; /* Reducido para dar espacio al subtítulo SEO */
    position: relative;
}

h2.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background: var(--gradient-primary);
    margin: 15px auto 0;
    border-radius: 3px;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    color: #666;
    font-size: 1.1rem;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- HEADER --- */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6%;
    border-bottom: 1px solid #eee;
}

.logo-container img {
    height: 75px; /* AUMENTADO para mejor visibilidad */
    width: auto;
    transition: height 0.3s ease;
}

nav ul {
    display: flex;
    gap: 35px;
    align-items: center;
}

nav ul li a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--primary-dark);
}

nav ul li a:hover { color: var(--brand-blue); }

.btn-cta-nav {
    background: var(--gradient-primary);
    color: white !important;
    padding: 12px 28px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 150, 199, 0.3);
}
.btn-cta-nav:hover {
    box-shadow: 0 8px 20px rgba(0, 150, 199, 0.5);
    transform: translateY(-2px);
}

.menu-toggle { display: none; font-size: 1.8rem; color: var(--primary-dark); cursor: pointer; }

/* --- HERO SECTION --- */
.hero-single-image {
    margin-top: 90px;
    height: 85vh;
    /* Degradado oscurecido (0.75 y 0.55) para garantizar lectura del texto blanco */
    background: linear-gradient(rgba(18, 18, 18, 0.75), rgba(18, 18, 18, 0.55)), url('../img/hero.png') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    color: white;
    padding: 0 8%;
    position: relative;
}

.hero-single-image::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 30%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 150, 199, 0.2), transparent 60%);
    pointer-events: none;
}

.hero-single-image h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    max-width: 800px;
    line-height: 1.1;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-single-image p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 600px;
    font-weight: 400;
    color: #f0f0f0; /* Blanco hueso para contraste en Hero */
    opacity: 1;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.btn-hero-single {
    background: var(--gradient-primary);
    color: white;
    padding: 18px 45px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 150, 199, 0.4);
    transition: all 0.3s ease;
}

.btn-hero-single:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 150, 199, 0.6);
}

/* --- SECCIONES GENERALES --- */
section { padding: 100px 8%; }

/* --- WHY US --- */
.why-us {
    background: linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)), url('../img/nosotros.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 50px;
}

.feature-card {
    text-align: left;
    padding: 25px;
    background: #ffffff; /* Fondo blanco sólido */
    border: 1px solid #eaeaea; /* Borde sutil para definición */
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border-radius: 12px;
    transition: transform 0.3s;
}

.feature-card:hover { transform: translateY(-5px); }

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(0, 150, 199, 0.1);
    border-radius: 20px;
    margin-bottom: 25px;
}

.f-c1 .icon-wrapper { background: rgba(155, 93, 229, 0.1); color: var(--brand-purple); }
.f-c2 .icon-wrapper { background: rgba(0, 150, 199, 0.1); color: var(--brand-blue); }
.f-c3 .icon-wrapper { background: rgba(230, 57, 70, 0.1); color: var(--brand-red); }
.f-c4 .icon-wrapper { background: rgba(0, 245, 212, 0.1); color: var(--brand-green); }

.feature-card i { font-size: 1.8rem; }
.feature-card h3 { margin-bottom: 15px; font-size: 1.3rem; }
.feature-card p { color: var(--text-paragraph); line-height: 1.6; font-size: 0.95rem; }

/* --- PRODUCTS --- */
.products {
    background-color: var(--bg-off-white);
    position: relative;
    background: linear-gradient(rgba(249, 250, 251, 0.92), rgba(249, 250, 251, 0.92)), url('../img/plastic-texture.png');
    background-size: cover;
    background-position: center;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    position: relative; z-index: 2;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.p-header {
    padding: 30px;
    color: white;
    text-align: left;
}

.ph-blue { background: var(--gradient-header-pe); }
.ph-purple { background: var(--gradient-header-pp); }
.ph-red { background: var(--gradient-header-other); }

.p-header h3 { color: white; font-size: 1.6rem; margin-bottom: 5px; }
.p-subtitle { font-size: 0.9rem; opacity: 0.95; font-weight: 600; }

.p-body { padding: 35px; }
.p-body ul { margin-left: 15px; margin-bottom: 30px; }
.p-body li {
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--secondary-dark);
    display: flex;
    align-items: center;
}
.p-body li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--brand-blue);
    margin-right: 10px;
    font-size: 0.9rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tag {
    background: var(--bg-off-white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    border: 1px solid #ddd;
}

/* --- APPLICATIONS --- */
.applications { 
    background: white; 
    overflow-x: hidden; /* Prevenir scroll horizontal por el efecto breakout */
}

.app-header-visual {
    /* Truco para "romper" el contenedor y ocupar todo el ancho */
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);

    height: 400px;
    margin-top: 60px; /* Espacio después del subtítulo */
    margin-bottom: 60px; /* Espacio antes de la cuadrícula de iconos */
}

.app-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0; /* Sin bordes para el look full-width */
    box-shadow: none;
    margin-top: 0;
}

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

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

.app-item {
    background: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}
.app-item:hover {
    border-color: var(--brand-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 150, 199, 0.1);
}

.app-item i {
    font-size: 2.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}
.app-item h4 { font-size: 1.1rem; }

/* --- CONTACT --- */
.contact {
    background: var(--primary-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -100px;
    width: 400px; height: 400px;
    background: var(--brand-blue);
    opacity: 0.1;
    filter: blur(80px);
    border-radius: 50%;
    pointer-events: none;
}

.contact h2.section-title { color: white; text-align: left; margin-bottom: 30px; }
.contact h2.section-title::after { margin: 15px 0 0; }
.contact p { color: #aaa; margin-bottom: 40px; max-width: 500px; font-weight: 400; }
.contact h3 { color: white; margin-top: 30px; margin-bottom: 10px; display: flex; align-items: center; }
.contact h3 i { color: var(--brand-green); margin-right: 15px; }

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    position: relative; z-index: 2;
}

.contact-info, .contact-form-wrapper { flex: 1; min-width: 300px; }

.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    padding: 18px;
    margin-bottom: 20px;
    border: 2px solid var(--secondary-dark);
    background: var(--secondary-dark);
    border-radius: 8px;
    font-family: inherit;
    color: white;
    font-weight: 600;
    transition: border-color 0.3s;
}

.contact-form input::placeholder, .contact-form textarea::placeholder { color: #777; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    outline: none;
    border-color: var(--brand-blue);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row input {
    flex: 1;
}

.btn-submit {
    background: var(--brand-blue);
    color: white;
    border: none;
    padding: 20px 30px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s;
}
.btn-submit:hover { background: #0077B6; box-shadow: 0 10px 20px rgba(0, 150, 199, 0.3); }

/* --- NOTIFICACIONES DEL FORMULARIO --- */
.form-notification {
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    display: none; /* Oculto por defecto */
    animation: fadeIn 0.5s;
}
.form-notification.success {
    display: block;
    background-color: rgba(0, 245, 212, 0.1);
    color: var(--brand-green);
}
.form-notification.error {
    display: block;
    background-color: rgba(230, 57, 70, 0.1);
    color: var(--brand-red);
}

/* --- FOOTER --- */
footer {
    background: #080808;
    color: #888;
    text-align: center;
    padding: 60px 20px;
    font-size: 0.9rem;
    border-top: 4px solid var(--brand-blue);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-address {
    margin-top: 20px;
    font-style: normal;
    line-height: 1.8;
    color: #666;
}

.footer-address i { color: var(--brand-blue); margin-right: 8px; }

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    border: 3px solid white;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 2000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.whatsapp-float:hover { transform: scale(1.1) rotate(10deg); }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    section { padding: 80px 5%; }
}

@media (max-width: 768px) {
    header { padding: 0 5%; height: 70px; }
    .logo-container img { height: 50px; } /* Ajuste móvil */
    nav ul {
        position: fixed;
        top: 70px; left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
    }
    nav ul li {
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    nav ul.active li {
        opacity: 1;
        transform: translateY(0);
    }
    nav ul.active li:nth-child(2) { transition-delay: 0.05s; }
    nav ul.active li:nth-child(3) { transition-delay: 0.1s; }
    nav ul.active li:nth-child(4) { transition-delay: 0.15s; }
    nav ul.active li:nth-child(5) { transition-delay: 0.2s; }
    nav ul.active { transform: translateY(0); }
    .menu-toggle { display: block; }
    
    .hero { margin-top: 70px; text-align: center; align-items: center; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    
    h2.section-title { font-size: 2rem; }
    .contact-container { flex-direction: column; gap: 40px; }
    .contact h2.section-title { text-align: center; }
    .contact h2.section-title::after { margin: 15px auto 0; }
    .contact-info { text-align: center; }
    .contact h3 { justify-content: center; }
    
    .app-featured-image { height: 200px; }

    .form-row {
        flex-direction: column;
    }
}

/* === HERO SLIDER === */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 90vh; /* Ocupa el 90% de la altura de la ventana */
    overflow: hidden;
    background-color: #333;
    margin-top: 90px; /* Espacio para el header */
}

.hero-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.hero-slide {
    flex: 0 0 100%; 
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    color: white;
    padding: 0 8%;
}

.hero-content h1 { font-size: 3.5rem; color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.3); margin-bottom: 20px; max-width: 800px; line-height: 1.1; }
.hero-content p { font-size: 1.3rem; color: #f0f0f0; margin-bottom: 40px; max-width: 600px; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }

.hero-slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
}
.hero-slider-nav button {
    background: rgba(0,0,0,0.3);
    border: none;
    color: white;
    width: 50px; height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}
.hero-slider-nav button:hover { background: rgba(0,0,0,0.6); }

.hero-slider-dots {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 10;
}
.hero-slider-dots .dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background-color 0.3s; }
.hero-slider-dots .dot.active { background: white; }