/* --- RAÍZ: DEFINICIÓN DE VARIABLES DE MARCA --- */
:root {
    --color-primario: #152028; /* Azul Petróleo */
    --color-acento-rojo: #D12B38;
    --color-acento-verde: #4EBA74;
    --color-texto: #4B4B4B; /* Equivalente a Greyscale-70% */
    --color-fondo: #FFFFFF;
    
    --fuente-titulos: 'Archivo Black', sans-serif;
    --fuente-cuerpo: 'Roboto', sans-serif;
}

/* --- ESTILOS GENERALES Y MEJORA DE ROBUSTEZ --- */
*, *::before, *::after {
    box-sizing: border-box; /* Previene problemas de ancho y padding */
}

body {
    font-family: var(--fuente-cuerpo);
    margin: 0;
    background-color: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.6;
    padding-top: 105px; /* Espacio para la cabecera fija */
    overflow-x: hidden; /* SOLUCIÓN LÍNEA BLANCA: Previene el desbordamiento horizontal */
}

.container {
    width: 85%;
    max-width: 1100px;
    margin: 0 auto;
}

h1, h2 {
    font-family: var(--fuente-titulos);
    color: var(--color-primario);
}

/* --- CABECERA Y NAVEGACIÓN --- */
.header {
    background-color: var(--color-primario);
    color: var(--color-fondo);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: padding 0.3s ease-in-out;
}

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

/* --- ESTILOS PARA EL LOGO --- */
.logo a {
    display: block;
}

.logo img {
    width: 300px; 
    height: auto;
    display: block; 
    transition: width 0.3s ease-in-out;
}

.nav-menu a {
    color: var(--color-fondo);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 700;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #a7a7a7;
}

.nav-menu a.active {
    color: var(--color-acento-rojo);
}

/* --- SECCIÓN HERO (SOLO PÁGINA DE INICIO) --- */
.hero {
    background-color: var(--color-primario);
    color: var(--color-fondo);
    text-align: center;
    padding: 80px 0;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--color-fondo);
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-acento-rojo);
    color: var(--color-fondo);
    padding: 15px 30px;
    text-decoration: none;
    font-family: var(--fuente-titulos);
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #A9232D;
}

/* --- CONTENIDO DE PÁGINAS INTERNAS --- */
.page-content {
    padding: 40px 0;
}


/* --- PIE DE PÁGINA --- */
.footer {
    background-color: var(--color-primario);
    color: var(--color-fondo);
    text-align: center;
    padding: 20px 0;
    margin-top: 0; 
}

/* --- ESTILOS PARA EL BANNER A ANCHO COMPLETO --- */
.full-width-banner {
    padding: 100px 0; 
    background-image: url('banner-bobinas-completo.jpg');
    background-size: cover; 
    background-position: center center; 
    background-attachment: fixed; 
}

/* --- SECCIÓN DE PRODUCTOS DESTACADOS (PÁGINA DE INICIO) --- */
.featured-products {
    padding: 60px 0;
    text-align: center;
}

.featured-products h2 {
    font-size: 2.8rem;
    margin-bottom: 50px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background-color: var(--color-fondo);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; 
    flex-direction: column; 
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: contain; 
    display: block;
}

.product-card h3 {
    font-family: var(--fuente-titulos);
    color: var(--color-primario);
    font-size: 1.5rem;
    padding: 20px 20px 10px 20px;
    margin: 0;
}

.product-card p {
    padding: 0 20px 20px 20px;
    margin: 0;
    line-height: 1.7;
}

.product-button {
    display: inline-block;
    background-color: var(--color-acento-rojo);
    color: var(--color-fondo);
    padding: 10px 20px;
    margin: 0 20px 20px 20px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.product-button:hover {
    background-color: #A9232D; 
}

/* --- SECCIÓN PROPUESTA DE VALOR (POR QUÉ ELEGIRNOS) --- */
.value-proposition {
    padding: 60px 0;
    background-color: #f8f9fa; 
}

.value-proposition h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.value-item .value-icon {
    margin-bottom: 20px;
}

.value-item .value-icon img {
    width: 70px; 
    height: 70px;
}

.value-item h3 {
    font-family: var(--fuente-titulos);
    color: var(--color-primario);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- SECCIÓN DE INDUSTRIAS --- */
.industries-section {
    padding: 60px 0;
}

.industries-section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    text-align: center;
}

.industry-item {
    padding: 20px;
}

.industry-item img {
    width: 120px; 
    height: 120px; 
    margin-bottom: 15px;
}

.industry-item h4 {
    font-family: var(--fuente-cuerpo);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-texto);
    margin: 0;
}

/* --- ESTILOS PARA LA PÁGINA "SOBRE NOSOTROS" --- */
.about-us-container h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
}

.about-section {
    margin-bottom: 40px;
}

.about-section h3 {
    font-family: var(--fuente-titulos);
    color: var(--color-primario);
    font-size: 1.8rem;
    border-bottom: 3px solid var(--color-acento-rojo);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* --- ESTILOS PARA LA PÁGINA DE PRODUCTOS --- */
.page-title {
    text-align: center;
    margin-bottom: 60px;
}

.page-title h1,
.page-title h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.page-title p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.product-entry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.product-entry.product-entry-reverse .product-image {
    order: 2;
}
.product-entry.product-entry-reverse .product-description {
    order: 1;
}

.product-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-description h3 {
    font-family: var(--fuente-titulos);
    font-size: 2rem;
    color: var(--color-primario);
    margin-top: 0;
}

.product-description h4 {
    font-family: var(--fuente-titulos);
    font-size: 1.2rem;
    color: var(--color-primario);
    margin-top: 30px;
}

.product-description ul {
    list-style-type: none;
    padding-left: 0;
}

.product-description ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.product-description ul li::before {
    content: '✔';
    color: var(--color-acento-verde);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- ESTILOS PARA PÁGINA DE CONTACTO --- */
.contact-main {
    display: grid;
    grid-template-columns: 1fr 1.2fr; 
    gap: 50px;
    margin-bottom: 60px;
}

.contact-info h3, .contact-form h3 {
    font-family: var(--fuente-titulos);
    color: var(--color-primario);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-list .info-icon {
    width: 30px; 
    height: 30px;
    margin-right: 20px;
    flex-shrink: 0; 
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px; 
    font-weight: 700;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--fuente-cuerpo);
    font-size: 1rem;
}


/* --- TÍTULOS Y FORMULARIO TRABAJA CON NOSOTROS --- */
.contact-title-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.contact-tab {
    background: transparent;
    border: none;
    font-family: var(--fuente-titulos);
    color: var(--color-primario);
    font-size: 2.8rem;
    cursor: pointer;
    padding: 0 0 8px 0;
    transition: color 0.3s ease, border-color 0.3s ease;
    border-bottom: 4px solid transparent;
}

.contact-tab.active,
.contact-tab:hover {
    color: var(--color-acento-rojo);
    border-bottom-color: var(--color-acento-rojo);
}

.contact-panel {
    display: none;
}

.contact-panel.active {
    display: block;
}

.work-form-wrapper {
    max-width: 760px;
    margin: 0 auto 60px auto;
    padding: 35px;
    border-radius: 12px;
    background-color: #f8f9fa;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.work-form-wrapper h3 {
    font-family: var(--fuente-titulos);
    color: var(--color-primario);
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.work-form-wrapper p {
    margin-top: 0;
    margin-bottom: 25px;
}

.form-group input[type="file"] {
    background-color: #fff;
}

.map-container {
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 40px; 
}

/* --- RESPONSIVE PARA TABLETS --- */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
    .value-grid {
        grid-template-columns: 1fr; 
        max-width: 500px;
        margin: 0 auto;
    }
    .industries-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
}

/* --- ESTILOS PARA MENÚ HAMBURGUESA --- */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger-menu .bar {
    width: 30px;
    height: 3px;
    background-color: var(--color-fondo);
    border-radius: 5px;
    transition: all 0.3s linear;
}

/* --- ESTILOS RESPONSIVE PARA MÓVILES (COMBINADO Y CORREGIDO) --- */
@media (max-width: 768px) {
    /* --- AJUSTES GENERALES PARA MÓVIL --- */
    body {
        padding-top: 70px;
    }

    .container {
        width: 90%;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.1rem; 
    }

    .featured-products h2, .value-proposition h2, .industries-section h2 {
        font-size: 2.2rem;
    }
    
    .industries-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .product-entry {
        grid-template-columns: 1fr;
    }
    
    .product-entry.product-entry-reverse .product-image {
        order: 1;
    }
    
    .product-entry.product-entry-reverse .product-description {
        order: 2;
    }
    
    .contact-main {
        grid-template-columns: 1fr;
    }

    .contact-title-buttons {
        gap: 15px;
    }

    .contact-tab {
        font-size: 2rem;
    }

    .work-form-wrapper {
        padding: 25px 20px;
    }

    /* --- AJUSTES DE CABECERA Y MENÚ PARA MÓVIL --- */
    .header {
        padding: 10px 0;
    }

    .logo img {
        width: 180px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-primario);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        gap: 30px;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.8rem;
        margin-left: 0;
    }

    .hamburger-menu {
        display: flex;
    }
}

/* --- AJUSTES CAMPAÑA DIGITAL INFLEX --- */
.logo img {
    width: 250px;
}

.nav-menu a {
    font-size: 1.05rem;
    margin-left: 18px;
}

.hero {
    background: linear-gradient(135deg, rgba(21,32,40,0.98), rgba(21,32,40,0.88)), url('banner-bobinas-completo.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 3.2rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.35rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.secondary-button {
    display: inline-block;
    color: var(--color-fondo);
    border: 2px solid var(--color-fondo);
    padding: 13px 28px;
    text-decoration: none;
    font-family: var(--fuente-titulos);
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.secondary-button:hover {
    background-color: var(--color-fondo);
    color: var(--color-primario);
}

.section-intro {
    max-width: 780px;
    margin: -25px auto 45px auto;
    text-align: center;
    font-size: 1.1rem;
}

.process-section {
    padding: 60px 0;
    background-color: var(--color-primario);
    color: var(--color-fondo);
}

.process-section h2 {
    text-align: center;
    color: var(--color-fondo);
    font-size: 2.8rem;
    margin-bottom: 50px;
}

.process-section .section-intro {
    color: #e5e5e5;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.process-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 24px;
}

.process-card h3 {
    font-family: var(--fuente-titulos);
    color: var(--color-acento-rojo);
    margin-top: 0;
    font-size: 1.25rem;
}

.knowledge-preview {
    padding: 70px 0;
    background: #f8f9fa;
    text-align: center;
}

.knowledge-preview h2 {
    font-size: 2.6rem;
    margin-bottom: 15px;
}

.knowledge-preview p {
    max-width: 760px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
}

.knowledge-hero-card {
    background: linear-gradient(135deg, var(--color-primario), #263641);
    color: #fff;
    border-radius: 14px;
    padding: 35px;
    margin-bottom: 40px;
}

.knowledge-hero-card h3 {
    font-family: var(--fuente-titulos);
    color: #fff;
    font-size: 1.8rem;
    margin-top: 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 50px;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 28px;
    display: flex;
    flex-direction: column;
    min-height: 260px;
}

.article-card h3 {
    font-family: var(--fuente-titulos);
    color: var(--color-primario);
    font-size: 1.45rem;
    margin: 10px 0 12px 0;
}

.article-card p {
    flex: 1;
}

.article-category {
    display: inline-block;
    color: var(--color-acento-rojo);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
}

.soon-label {
    color: var(--color-texto);
    font-weight: 700;
    opacity: 0.65;
}

.article-container {
    max-width: 850px;
}

.article-page h1 {
    font-family: var(--fuente-titulos);
    color: var(--color-primario);
    font-size: 2.6rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

.article-page h2 {
    font-size: 1.7rem;
    margin-top: 40px;
}

.article-lead {
    font-size: 1.25rem;
    color: #333;
}

.article-list {
    padding-left: 24px;
}

.article-cta {
    background: #f8f9fa;
    border-left: 5px solid var(--color-acento-rojo);
    padding: 28px;
    margin-top: 45px;
    border-radius: 8px;
}

.article-cta h3 {
    font-family: var(--fuente-titulos);
    color: var(--color-primario);
    margin-top: 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 25px;
    color: var(--color-acento-rojo);
    font-weight: 700;
    text-decoration: none;
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--fuente-cuerpo);
    font-size: 1rem;
    background-color: #fff;
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    background: #25D366;
    color: #fff;
    padding: 14px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 5px 18px rgba(0,0,0,0.25);
    z-index: 99;
}

.whatsapp-float:hover {
    background: #1ebe5d;
}

@media (max-width: 992px) {
    .process-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu a {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .article-page h1 {
        font-size: 2rem;
    }

    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        padding: 12px 15px;
    }
}

/* Páginas de confirmación de formularios */
.thank-you-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: radial-gradient(circle at top right, rgba(209, 43, 56, 0.25), transparent 35%), #152028;
}

.thank-you-card {
    width: min(720px, 100%);
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 46px 32px;
    color: #fff;
    box-shadow: 0 24px 70px rgba(0,0,0,0.35);
}

.thank-you-card h1 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
}

.thank-you-card p {
    max-width: 560px;
    margin: 0 auto 28px;
    color: rgba(255,255,255,0.86);
    line-height: 1.7;
}

.thank-you-card .secondary-button {
    display: inline-block;
    margin-left: 12px;
    padding: 13px 24px;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 640px) {
    .thank-you-card .secondary-button {
        margin-left: 0;
        margin-top: 12px;
    }
}

/* --- SECUENCIAS AUTOMÁTICAS DE PRODUCTOS --- */
.product-slideshow {
    position: relative;
    width: 100%;
    height: 300px;
    background: var(--color-fondo);
    overflow: hidden;
}

.product-slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background: var(--color-fondo);
}

.product-slideshow img.active {
    opacity: 1;
}

.product-slideshow-detail {
    height: 420px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.product-slideshow-detail img {
    border-radius: 8px;
}

@media (max-width: 768px) {
    .product-slideshow-detail {
        height: 320px;
    }
}

/* === PARCHE INFLEX: secciÃ³n procesos actualizada === */
.process-group-title {
    font-family: var(--fuente-titulos);
    color: var(--color-acento-rojo);
    font-size: 1.6rem;
    margin: 35px 0 20px;
    text-align: left;
}
.process-grid-production {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 35px;
}
.process-card-production {
    background: rgba(209,43,56,0.12);
    border-color: rgba(209,43,56,0.35);
}
.process-card p {
    line-height: 1.65;
}
@media (max-width: 992px) {
    .process-grid-production {
        grid-template-columns: 1fr;
    }
}
