:root {
    /* Palette Eco-Industrial */
    --primary: #10b981;
    /* Verde Esmeralda */
    --primary-dark: #047857;
    --secondary: #0f172a;
    /* Azul Noche */
    --secondary-light: #1e293b;
    --bg-body: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;

    /* Shadows & Radius */
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 12px;
}

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
}

.text-center {
    text-align: center;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

/* --- HEADER & NAV --- */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin: 0;
}

.nav-links a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.phone-link {
    background: var(--secondary);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Banderas */
.lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 2px solid #eee;
}

.lang-flag {
    width: 28px;
    height: 20px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0.7;
    transition: 0.3s;
    display: block;
}

.lang-flag svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lang-flag:hover,
.lang-flag.active {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
}

.mobile-lang {
    display: none !important;
}

/* --- HERO SECTION --- */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.75) 100%),
        url('../img/hero-solar.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    color: white;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.hero-content p {
    color: #cbd5e1;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

/* Botones Hero */
.cta-button {
    background: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.cta-button:hover {
    background: #059669;
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: white;
    color: var(--secondary);
    border-color: white;
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: white;
}

/* --- COMPANY (Sobre Arkan Recycling) --- */
.company-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.company-header h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
}

.company-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin-top: 1rem;
}

.company-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.company-text p strong {
    color: var(--secondary);
}

/* --- SERVICIOS & VENTAJAS (Grids) --- */
.services-grid,
.process-steps,
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Escritorio: 3 columnas */
@media (min-width: 1024px) {

    .services-grid,
    .process-steps,
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid #f1f5f9;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.service-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: #d1fae5;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.benefit-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border-left: 4px solid var(--primary);
    transition: 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* --- PROCESO OSCURO (Ajustado con más margen) --- */
.process-section {
    background: var(--secondary);
    color: white;
    padding: 8rem 0;
    /* Aumentado padding vertical */
}

/* Espacio extra para que los números respiren */
.process-steps {
    gap: 4rem;
    /* Más separación entre tarjetas */
    margin-top: 5rem;
    /* Margen superior para los números flotantes */
}

.step {
    background: rgba(255, 255, 255, 0.05);
    /* Padding aumentado arriba (4rem) para que el número no toque el título */
    padding: 4rem 2rem 3rem;
    border-radius: var(--radius-md);
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.step:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    border-radius: 50%;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.step h3 {
    color: white;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.step p {
    color: #cbd5e1;
    font-size: 0.95rem;
}

/* --- FAQ --- */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
}

.faq-item.active .faq-question {
    background: #f8fafc;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease;
    padding: 0 1.5rem;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
    max-height: 300px;
}

/* --- CONTACTO --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid #e2e8f0;
}

.contact-info-box {
    background: var(--secondary);
    padding: 3rem;
    color: white;
}

.contact-info-box h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.contact-info-box p {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.map-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.contact-form-box {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
}

/* --- FOOTER --- */
.footer-custom {
    background: var(--secondary-light);
    color: #94a3b8;
    padding: 5rem 0 2rem;
    margin-top: 0;
    border-top: 1px solid #334155;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.2s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float::before {
    content: "";
    display: block;
    width: 35px;
    height: 35px;
    background: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"/></svg>');
}

/* RESPONSIVE */
@media (max-width: 992px) {

    .contact-container,
    .company-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #f1f5f9;
        align-items: stretch;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        text-align: center;
        border-bottom: 1px solid #f1f5f9;
        padding: 10px 0;
    }

    /* Fix for flags collapsing due to padding */
    .nav-links a.lang-flag {
        padding: 0;
        border: none;
        display: block;
        /* Ensure block model */
    }

    .lang-item {
        border-left: none;
        justify-content: center;
        margin: 10px 0 0 0;
        /* Ensure it is visible */
        display: flex !important;
    }

    .stats-bar {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-item {
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 1.5rem;
    }

    .company-header h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        gap: 2rem;
    }

    /* Contact Form Adjustments for Mobile */
    .contact-info-box,
    .contact-form-box {
        padding: 1.5rem;
    }

    .contact-container {
        gap: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 4rem 0;
    }

    .hero {
        padding-top: 140px;
        padding-bottom: 60px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-button,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .contact-form-box {
        padding: 1.25rem 1rem;
    }

    .cf-turnstile {
        transform: scale(0.85);
        transform-origin: center;
    }
}

/* Cookies */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 30px;
    max-width: 400px;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: none;
    border-left: 5px solid var(--primary);
}

.cookie-banner.show {
    display: block;
    animation: slideUp 0.5s ease;
}

.cookie-btns {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.btn-cookie-accept {
    flex: 1;
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
}

.btn-cookie-deny {
    flex: 1;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    padding: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}