/*
Theme Name: JuniTex
Theme URI: https://junitex.com.ar/
Author: JuniTex
Author URI: https://junitex.com.ar/
Description: Theme industrial a medida para JuniTex, fábrica de bolsas tejidas de polipropileno en el Parque Industrial de Junín. One-page optimizado para SEO local y velocidad.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: junitex
Tags: one-page, industrial, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ============================================
   RESET & VARIABLES
============================================ */
:root {
    --color-primary: #e63012;
    --color-primary-dark: #b82510;
    --color-primary-light: #ff5a3a;
    --color-primary-rgb: 230, 48, 18;
    --color-dark: #333333;
    --color-darker: #1a1a1a;
    --color-dark-mid: #2a2a2a;
    --color-light: #ffffff;
    --color-gray: #f5f5f5;
    --color-gray-medium: #888888;
    --color-gray-border: #e5e5e5;

    --font-logo: 'Archivo Black', 'Impact', sans-serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --container-width: 1200px;
    --section-padding: 100px 0;
    --section-padding-mobile: 60px 0;

    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.18);
}

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

/* Accesibilidad WordPress */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--color-light);
    clip: auto !important;
    clip-path: none;
    color: var(--color-primary);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 900; letter-spacing: -1px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }

p {
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-light);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-light);
    border-color: var(--color-light);
}

.btn-outline:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
}

.btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ============================================
   HEADER
============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.site-header.scrolled {
    background-color: rgba(26, 26, 26, 0.98);
}

.site-header.scrolled .site-title {
    color: var(--color-light);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo {
    max-height: 55px;
    width: auto;
    transition: var(--transition);
}

/* En hero (header no scrolleado) el fondo es claro → logo normal */
/* Al scrollear, el fondo se vuelve oscuro → si querés invertir el logo, descomentá: */
/* .site-header.scrolled .custom-logo { filter: brightness(0) invert(1); } */

.site-title {
    font-family: var(--font-logo);
    font-size: 1.8rem;
    font-weight: 400; /* Archivo Black ya es peso 900 nativo */
    margin: 0;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-title span {
    color: var(--color-primary);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
    text-transform: uppercase;
}

.site-header.scrolled .header-phone {
    color: var(--color-light);
}

.header-phone svg {
    width: 20px;
    height: 20px;
    fill: var(--color-primary);
}

.header-cta {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    background-color: var(--color-darker);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.85) 0%,
        rgba(51, 51, 51, 0.75) 50%,
        rgba(230, 48, 18, 0.4) 100%
    );
}

.hero-pattern {
    position: absolute;
    inset: 0;
    z-index: 3;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 900px;
    text-align: center;
    color: var(--color-light);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    margin-bottom: 30px;
    background-color: rgba(230, 48, 18, 0.15);
    border: 1px solid var(--color-primary);
    border-radius: 2px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary-light);
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    color: var(--color-light);
    margin-bottom: 25px;
    line-height: 1.05;
}

.hero-title strong {
    color: var(--color-primary);
    font-weight: 700;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 70px auto 0;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.hero-stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.85;
}

/* ============================================
   SECTION: NOSOTROS
============================================ */
.section-nosotros {
    padding: var(--section-padding);
    background-color: var(--color-light);
    position: relative;
}

.section-nosotros::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary) 33%, var(--color-dark) 33%, var(--color-dark) 66%, var(--color-primary) 66%);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header .section-label {
    margin-left: auto;
    margin-right: auto;
    display: table; /* fuerza salto de línea + ancho al contenido */
}

.section-header .section-title {
    display: block;
    margin-top: 0;
}

.section-label {
    display: inline-block;
    padding: 8px 18px;
    margin-bottom: 24px;
    background-color: var(--color-primary);
    color: var(--color-light);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 2px;
}

.section-title {
    margin-bottom: 20px;
    position: relative;
}

.section-header .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    margin: 24px auto 0;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--color-gray-medium);
    line-height: 1.7;
    margin-top: 20px;
}

.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.nosotros-image {
    position: relative;
}

.nosotros-image-main {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
}

.nosotros-image-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.nosotros-image-main:hover img {
    transform: scale(1.05);
}

.nosotros-image-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 180px;
    height: 180px;
    background-color: var(--color-primary);
    color: var(--color-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transform: rotate(-5deg);
}

.nosotros-image-badge strong {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1;
    display: block;
    margin-bottom: 5px;
}

.nosotros-image-badge span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.nosotros-content h2 {
    margin-bottom: 25px;
}

.nosotros-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    margin: 20px 0 0;
}

.nosotros-text {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--color-dark);
}

.nosotros-features {
    list-style: none;
    margin-top: 35px;
    padding: 0;
}

.nosotros-features li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-gray-border);
    font-size: 1rem;
    color: var(--color-dark);
}

.nosotros-features li:last-child {
    border-bottom: none;
}

.nosotros-features .feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-light);
}

.nosotros-features .feature-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.nosotros-features strong {
    display: block;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 3px;
    color: var(--color-dark);
}

.nosotros-features span {
    font-size: 0.95rem;
    color: var(--color-gray-medium);
}

/* ============================================
   SECTION: MARQUEE INDUSTRIAL (banda animada)
============================================ */
.section-marquee {
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 40px 0;
    overflow: hidden;
    position: relative;
    border-top: 4px solid var(--color-darker);
    border-bottom: 4px solid var(--color-darker);
}

.marquee-track {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    animation: marquee-scroll 40s linear infinite;
    width: max-content;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 60px;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1;
}

.marquee-item span {
    display: inline-flex;
    align-items: center;
    gap: 60px;
}

.marquee-separator {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: var(--color-light);
    border-radius: 50%;
    flex-shrink: 0;
}

.marquee-outline {
    -webkit-text-stroke: 2px var(--color-light);
    color: transparent;
    font-weight: 900;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pausa al hover para accesibilidad */
.section-marquee:hover .marquee-track {
    animation-play-state: paused;
}

/* Respeta usuarios con prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }
}

/* ============================================
   SECTION: CONTACTO
============================================ */
.section-contacto {
    padding: var(--section-padding);
    background-color: var(--color-darker);
    color: var(--color-light);
    position: relative;
    overflow: hidden;
}

.section-contacto::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    pointer-events: none;
}

.section-contacto .section-title,
.section-contacto .section-intro {
    color: var(--color-light);
}

.section-contacto .section-intro {
    opacity: 0.85;
}

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.contacto-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    text-align: center;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contacto-card:hover {
    background-color: rgba(230, 48, 18, 0.08);
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(230, 48, 18, 0.2);
}

.contacto-card-icon {
    width: 70px;
    height: 70px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.contacto-card:hover .contacto-card-icon {
    transform: rotate(-8deg) scale(1.1);
}

.contacto-card-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--color-light);
}

.contacto-card h3 {
    font-size: 1.3rem;
    color: var(--color-light);
    margin-bottom: 12px;
}

.contacto-card p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    font-size: 0.95rem;
    min-height: 48px;
}

.contacto-card a {
    color: var(--color-primary-light);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    word-break: break-word;
}

.contacto-card a:hover {
    color: var(--color-light);
}

.contacto-cta {
    text-align: center;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.contacto-cta p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
    background-color: #0f0f0f;
    color: var(--color-light);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    color: var(--color-light);
    font-size: 2rem;
    font-family: var(--font-logo);
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.footer-brand h3 span {
    color: var(--color-primary);
}

.footer-brand p {
    opacity: 0.75;
    line-height: 1.7;
    max-width: 400px;
}

.footer-column h4 {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    opacity: 0.85;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-column ul li svg {
    width: 16px;
    height: 16px;
    fill: var(--color-primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-column ul li a {
    color: inherit;
}

.footer-column ul li a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

.footer-bottom a {
    color: var(--color-primary-light);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: float-pulse 2.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: var(--color-light);
}

@keyframes float-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.8), 0 0 0 12px rgba(37, 211, 102, 0.1); }
}

/* ============================================
   ANIMATIONS ON SCROLL
============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 992px) {
    .nosotros-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nosotros-image-main img {
        height: 400px;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }

    .header-phone {
        display: none;
    }

    .header-cta {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .hero {
        min-height: 90vh;
        padding: 100px 20px 60px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 50px;
        padding-top: 35px;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta-group .btn {
        justify-content: center;
    }

    .nosotros-image-badge {
        width: 130px;
        height: 130px;
        bottom: -20px;
        right: -10px;
    }

    .nosotros-image-badge strong {
        font-size: 1.8rem;
    }

    .nosotros-image-badge span {
        font-size: 0.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .whatsapp-float {
        width: 54px;
        height: 54px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .site-title {
        font-size: 1.4rem;
    }

    .contacto-card {
        padding: 30px 20px;
    }
}
