/*
Theme Name: LAVATANQ Theme
Theme URI: https://www.lavatanq.com
Author: LAVATANQ Ramírez S.A.
Author URI: https://www.lavatanq.com
Description: Tema profesional para LAVATANQ - Limpieza de Tanques de Combustible Industrial. Diseño industrial con paleta azul/naranja. Contenido editable via JSON por sección.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: lavatanq
*/

/* ========================
   VARIABLES & RESET
   ======================== */
:root {
    --primary-blue: #003D7A;
    --primary-dark: #001F3F;
    --accent-orange: #FF6B00;
    --steel-gray: #4A5568;
    --steel-light: #718096;
    --steel-lighter: #A0AEC0;
    --warning-red: #DC2626;
    --success-green: #059669;
    --bg-light: #F7FAFC;
    --bg-dark: #1A202C;
    --white: #FFFFFF;

    --font-display: 'Exo 2', sans-serif;
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;

    --section-padding: 120px;
    --section-padding-mobile: 60px;
    --container-width: 1200px;

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.3);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--steel-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================
   TYPOGRAPHY
   ======================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}
h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-family: var(--font-display);
    font-weight: 900;
}
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--steel-gray);
}

/* ========================
   HEADER
   ======================== */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all 0.3s ease;
}
.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo span { color: var(--accent-orange); }

nav ul { display: flex; gap: 2rem; list-style: none; }
nav a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--steel-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}
nav a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}
nav a:hover { color: var(--primary-blue); }
nav a:hover::after { width: 100%; }

.cta-button {
    padding: 0.75rem 1.5rem;
    background: var(--accent-orange);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.cta-button:hover {
    background: #E55A00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
}
.menu-toggle span {
    width: 25px; height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
    display: block;
}

/* ========================
   HERO
   ======================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    overflow: hidden;
    padding-top: 80px;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    opacity: 0.5;
}
@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}
.hero-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-text h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    animation: slideInLeft 0.8s ease-out;
}
.hero-text h1 span { color: var(--accent-orange); }
.hero-text p {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: slideInLeft 0.8s ease-out 0.2s both;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideInLeft 0.8s ease-out 0.4s both;
}
.btn-primary {
    padding: 1rem 2rem;
    background: var(--accent-orange);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-primary:hover {
    background: #E55A00;
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}
.btn-secondary {
    padding: 1rem 2rem;
    background: transparent;
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    border-radius: 4px;
    border: 2px solid var(--white);
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    animation: slideInLeft 0.8s ease-out 0.6s both;
}
.stat-box {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}
.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-orange);
    display: block;
}
.stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-visual {
    position: relative;
    animation: slideInRight 0.8s ease-out;
}
.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    text-align: center;
    padding: 2rem;
}
.hero-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* ========================
   ANIMATIONS
   ======================== */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================
   CONTAINER / SECTION HEADER
   ======================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-tag {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 1rem;
}
.section-title { margin-bottom: 1rem; }
.section-description {
    max-width: 700px;
    margin: 0 auto;
    color: var(--steel-light);
}

/* ========================
   PROBLEMS SECTION
   ======================== */
.problems {
    padding: var(--section-padding) 2rem;
    background: var(--bg-light);
}
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.problem-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.problem-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--warning-red);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}
.problem-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.problem-card:hover::before { transform: scaleY(1); }
.problem-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--warning-red), #EF4444);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.problem-card h3 { margin-bottom: 1rem; color: var(--primary-dark); }
.problem-card p { color: var(--steel-gray); margin-bottom: 1rem; }
.problem-impact {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--warning-red);
    margin-top: 1rem;
}

/* ========================
   INDUSTRIES SECTION
   ======================== */
.industries {
    padding: var(--section-padding) 2rem;
    background: var(--white);
}
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.industry-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}
.industry-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.industry-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--primary-blue), var(--steel-gray));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.industry-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}
.industry-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.6) 100%);
}
.industry-content { padding: 1.5rem; }
.industry-card h3 { margin-bottom: 0.75rem; color: var(--primary-dark); }
.industry-card p { font-size: 0.95rem; color: var(--steel-light); margin-bottom: 1rem; }
.industry-link {
    color: var(--accent-orange);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}
.industry-link:hover { gap: 0.75rem; }

/* ========================
   PRODUCTS SECTION
   ======================== */
.products {
    padding: var(--section-padding) 2rem;
    background: var(--primary-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.products::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    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;
}
.products .container { position: relative; z-index: 1; }
.products .section-tag { color: var(--accent-orange); }
.products .section-title { color: var(--white); }
.products .section-description { color: rgba(255,255,255,0.8); }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.product-card {
    background: rgba(255,255,255,0.05);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.product-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.08);
    border-color: var(--accent-orange);
}
.product-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-orange);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}
.product-card h3 { color: var(--white); margin-bottom: 1rem; }
.product-card p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }
.product-benefits { list-style: none; }
.product-benefits li {
    color: rgba(255,255,255,0.9);
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
}
.product-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: 700;
}
.products-diagram {
    margin-top: 3rem;
    text-align: center;
}
.products-diagram img {
    max-width: 800px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
}

/* ========================
   CTA SECTION
   ======================== */
.cta-section {
    padding: var(--section-padding) 2rem;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #E55A00 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: rotateBg 60s linear infinite;
}
@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.cta-content h2 { color: var(--white); margin-bottom: 1.5rem; }
.cta-content p { color: rgba(255,255,255,0.95); font-size: 1.25rem; margin-bottom: 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-white {
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--accent-orange);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); }
.btn-outline-white {
    padding: 1rem 2rem;
    background: transparent;
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    border-radius: 4px;
    border: 2px solid var(--white);
    transition: all 0.3s ease;
}
.btn-outline-white:hover { background: var(--white); color: var(--accent-orange); }

/* ========================
   FOOTER
   ======================== */
footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
    padding: 4rem 2rem 2rem;
}
.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-column h4 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}
.footer-column p { color: rgba(255,255,255,0.7); margin-bottom: 1rem; }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 0.75rem; }
.footer-column a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s ease; }
.footer-column a:hover { color: var(--accent-orange); }
.footer-bottom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

/* ========================
   SCROLL REVEAL
   ======================== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 768px) {
    :root { --section-padding: 60px; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-stats { grid-template-columns: 1fr; }
    nav {
        position: fixed;
        top: 70px; left: 0; right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
    }
    nav.active { transform: translateY(0); opacity: 1; }
    nav ul { flex-direction: column; gap: 1rem; }
    .menu-toggle { display: flex; }
    .problems-grid, .industries-grid, .products-grid { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; }
    .footer-content { grid-template-columns: 1fr; }
}
