/* --- VARIABLES GLOBALES Y RESET BÁSICO --- */
:root {
    --primary-color: #007bff; /* Azul Marino/Corporativo */
    --secondary-color: #28a745; /* Verde para Énfasis y Sostenibilidad */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: white;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

/* --- ESTILOS DE CABECERA (HEADER) --- */
.main-header {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.8em;
    color: var(--primary-color);
    font-weight: bold;
}

.main-nav {
    flex-grow: 1; 
    display: flex;
    justify-content: flex-end; 
}

.nav-list {
    display: flex;
}

.nav-list > li {
    padding: 0 15px;
    position: relative;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 500;
    padding: 20px 0;
    display: block;
    border-bottom: 3px solid transparent; 
}

.nav-list a:hover {
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
}

/* Estilos de Menú Desplegable (Dropdown) */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    z-index: 50;
    border-top: 5px solid var(--secondary-color);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    padding: 12px 15px;
    white-space: nowrap;
    border-bottom: none;
}

.menu-toggle {
    display: none; 
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: var(--primary-color);
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    margin-top: 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.btn.primary {
    background-color: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
}

.btn.primary:hover {
    background-color: #1e7e34; 
}

.btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* --- SECCIÓN HERO --- */
.hero-section {
    background: var(--primary-color); 
    color: white;
    padding: 120px 0 80px 0; 
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section h2 {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-image-placeholder {
    height: 350px; 
    background: rgba(255, 255, 255, 0.15);
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-style: italic;
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    font-size: 1.5em;
}

/* --- SECCIÓN DE PRODUCTOS DESTACADOS --- */
.products-section {
    padding: 80px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.product-card {
    background: white;
    padding: 40px 25px;
    border-radius: 8px;
    transition: transform 0.4s, box-shadow 0.4s;
    border: 1px solid #ddd;
    border-top: 8px solid var(--primary-color);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card .icon {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.product-card h3 {
    margin-bottom: 12px;
    color: var(--primary-color);
    font-size: 1.3em;
}

/* --- SECCIÓN DE DATOS Y ESTADÍSTICAS --- */
.stats-section {
    background: var(--light-bg);
    padding: 70px 0;
    text-align: center;
}

.stats-section .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 25px;
}

.stat-item {
    flex-basis: 200px;
    padding: 15px;
}

.stat-item .number {
    font-size: 3.5em;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-item .label {
    text-transform: uppercase;
    font-weight: 500;
    color: #666;
    margin-top: 10px;
    font-size: 0.9em;
}


/* --- ESTILOS DEL BOTÓN DE WHATSAPP FLOTANTE --- */
.whatsapp-button {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366; 
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000; 
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
}

.whatsapp-button:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* --- NUEVOS ESTILOS PARA LA SECCIÓN DE CONTACTO DETALLADA --- */
.full-contact-section {
    padding: 80px 20px;
    background-color: var(--light-bg); 
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; 
    gap: 40px;
    align-items: start;
}

.contact-form-side h2, 
.contact-form-side p {
    text-align: left;
}

.contact-info-side {
    padding-top: 20px;
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
}

.info-item {
    margin-bottom: 25px;
}

.info-item p, .info-item a {
    font-size: 1em;
    color: var(--text-color);
}

.info-item a {
    margin-top: 5px;
    margin-left: 0 !important;
    display: block;
}

.info-item a:hover {
    color: var(--secondary-color);
}

/* Estilos de Formulario Limpios */
.form-group {
    margin-bottom: 15px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 1em;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    height: 120px;
}

.map-container-iframe iframe {
    width: 100%; 
    max-width: 100%; 
    height: 300px; 
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* --- FIN DE ESTILOS PARA LA SECCIÓN DE CONTACTO DETALLADA --- */


/* --- PIE DE PÁGINA (FOOTER) --- */
footer {
    background: var(--dark-bg);
    color: #bbb;
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

footer h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1em;
}

footer a {
    color: #bbb;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--secondary-color);
}

.footer-social .social-icon {
    display: inline-block;
    font-size: 1.8em;
    margin-right: 15px;
    color: white;
    transition: color 0.3s;
}
.footer-social .social-icon:hover {
     color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding: 20px 20px;
    font-size: 0.85em;
    color: #777;
}


/* --- ESTILOS DE PÁGINA DE CATÁLOGO --- */
.page-header {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 20px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5em;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9em;
}

.breadcrumb a {
    color: #ccc;
}

.product-detail-section {
    padding: 60px 0;
}

/* --- CUADRÍCULAS DE LOS PRODUCTOS DE CATÁLOGO --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.feature-box {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.feature-box h4 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 10px;
    margin-top: 15px;
    line-height: 1.2;
}

.feature-box p {
    font-size: 0.95em;
}

/* --- ESTILOS DEL CARRUSEL --- */
.image-carousel {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 10px;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

/* Resalte para diferenciar Adherente de PVC */
.adherente { border-top: 4px solid var(--secondary-color); }
.pvc { border-top: 4px solid var(--primary-color); }


/* --- MEDIA QUERIES (RESPONSIVE) --- */
@media (max-width: 900px) {
    .main-nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 75px; 
        left: 0;
        background: white;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        padding-bottom: 10px;
        z-index: 99;
        text-align: center;
    }

    .main-nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-list > li {
        padding: 0;
        border-bottom: 1px solid var(--light-bg);
    }

    .nav-list a {
        padding: 15px;
        border-bottom: none;
    }
    .nav-list a:hover {
        border-bottom: none;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: none;
    }

    .dropdown-menu li a {
        padding-left: 30px;
        background: var(--light-bg);
    }

    .menu-toggle {
        display: block;
    }

    .stat-item {
        flex-basis: 45%; 
    }

    /* Responsive para la nueva sección de contacto */
    .contact-grid {
        grid-template-columns: 1fr; /* Columna única en móvil */
    }
    .contact-info-side {
        border-left: none;
        border-top: 3px solid var(--primary-color);
        padding-left: 0;
        padding-top: 30px;
        margin-top: 20px;
    }
}

@media (max-width: 600px) {
    .whatsapp-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    .hero-section h2 {
        font-size: 2.2em;
    }
    .stat-item {
        flex-basis: 100%;
    }
}
/* --- ESTILOS PARA LA GALERÍA MODAL/LIGHTBOX --- */
.lightbox-modal {
    display: none; /* Oculto por defecto */
    position: fixed; 
    z-index: 2000; /* Asegura que esté por encima de todo (incluyendo el menú) */
    padding-top: 60px; /* Espacio desde arriba */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.9); /* Fondo negro semitransparente */
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
    text-align: center;
}

#lightbox-image {
    width: 100%;
    height: auto;
    max-height: 80vh; /* Máximo 80% del alto de la ventana */
    display: block;
    margin: 0 auto;
    object-fit: contain; /* Asegura que la imagen se vea completa */
}

/* Botón de cerrar (X) */
.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001; /* Sobre los botones de flecha */
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
}

/* Botones de navegación (Flechas) */
.prev-btn, .next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
}

.prev-btn {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.next-btn {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

@media only screen and (max-width: 768px) {
  .lightbox-content {
    padding-top: 10px;
  }
  .prev-btn, .next-btn {
    padding: 10px;
    font-size: 16px;
    margin-top: -35px;
  }
  .close-btn {
    top: 5px;
    right: 20px;
    font-size: 30px;
  }
}