/* --- VARIABLES GLOBALES --- */
:root {
    --bg-dark: #07101a;       /* Azul muy oscuro / casi negro */
    --bg-light: #f5f7fa;      /* Gris extra claro */
    --text-light: #e2e8f0;    /* Texto claro sobre fondos oscuros */
    --text-dark: #1e293b;     /* Texto oscuro sobre fondos claros */
    --accent-blue: #0070f3;   /* Azul tecnológico brillante */
    --accent-hover: #005bb5;
    --metallic: #94a3b8;      /* Gris metálico para detalles */
}

/* --- RESET Y TIPOGRAFÍA --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* --- ESTILOS DEL LOGO --- */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 85px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(0, 112, 243, 0.25)) brightness(1.05);
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 0 18px rgba(0, 112, 243, 0.45)) brightness(1.12);
}

/* --- NAVEGACIÓN --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    background-color: rgba(7, 16, 26, 0.92);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--metallic);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

/* --- BOTONES --- */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 0 15px rgba(0, 112, 243, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--metallic);
}

.btn-secondary:hover {
    border-color: #fff;
    color: #fff;
}

.btn-outline {
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-outline:hover {
    background-color: var(--accent-blue);
    color: #fff;
}

.btn-primary-light {
    display: inline-block;
    margin-top: 1rem;
    background-color: var(--bg-dark);
    color: #fff;
}

.btn-primary-light:hover {
    background-color: var(--accent-blue);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    text-align: center;
}

/* --- HERO SECTION B2B --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    margin-top: 60px;
    background: radial-gradient(circle at center, #10243e 0%, var(--bg-dark) 70%);
}

.hero-content {
    max-width: 850px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--metallic);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --- PROCESO B2B --- */
.process-section {
    padding: 5rem 5%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #fff;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.card-process {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, border-color 0.3s;
}

.card-process:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.card-process .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* --- SECCIÓN E-WASTE & DESPEJE BODEGAS --- */
.ewaste-section {
    padding: 6rem 5%;
    background-color: #050b12;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.ewaste-header {
    max-width: 850px;
    margin: 0 auto 4rem auto;
}

.ewaste-subtitle {
    font-size: 1.15rem;
    color: var(--metallic);
    line-height: 1.6;
    margin-top: -1.5rem;
}

.ewaste-grid {
    margin-bottom: 3rem;
}

.ewaste-cta {
    margin-top: 1.5rem;
}

/* --- SECCIÓN SOBRE NOSOTROS --- */
.about-section {
    padding: 6rem 5%;
    background-color: var(--bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.about-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.about-subtitle {
    font-size: 1.15rem;
    color: var(--metallic);
    line-height: 1.6;
    margin-top: -1.5rem;
}

.about-subtitle strong {
    color: #fff;
}

/* Pilares */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.card-pillar {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2.5rem 1.8rem;
    text-align: left;
    transition: all 0.3s ease;
}

.card-pillar:hover {
    border-color: var(--accent-blue);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 112, 243, 0.15);
}

.pillar-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
}

.card-pillar h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.card-pillar p {
    color: var(--metallic);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Compliance Banner */
.compliance-banner {
    background: linear-gradient(90deg, rgba(0, 112, 243, 0.08) 0%, rgba(16, 36, 62, 0.4) 100%);
    border: 1px solid rgba(0, 112, 243, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.compliance-badge {
    display: inline-block;
    color: #38bdf8;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.compliance-banner p {
    color: var(--metallic);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 750px;
    margin: 0 auto;
}

/* --- SECCIÓN TIENDA B2C (CONTRASTE CLARO) --- */
.store-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 6rem 5%;
    text-align: center;
}

.dark-text {
    color: var(--text-dark) !important;
}

.store-header p {
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.6;
}

.store-cta {
    margin-top: 2rem;
}

.btn-primary-store {
    background-color: var(--bg-dark);
    color: #fff;
    padding: 1.1rem 2.5rem;
    font-size: 1.05rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(7, 16, 26, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
}

.btn-primary-store:hover {
    background-color: var(--accent-blue);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 112, 243, 0.35);
}

/* --- ESTILOS PARA PÁGINAS INDEPENDIENTES (PRIVACIDAD, TÉRMINOS, ETC.) --- */
.page-hero {
    padding: 9rem 5% 4rem 5%;
    background: radial-gradient(circle at center, #10243e 0%, var(--bg-dark) 70%);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.page-badge {
    display: inline-block;
    background: rgba(0, 112, 243, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(0, 112, 243, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.page-hero-content h1 {
    font-size: 2.4rem;
    color: #fff;
    margin-bottom: 1.2rem;
    line-height: 1.25;
}

.page-hero-content p {
    font-size: 1.1rem;
    color: var(--metallic);
    line-height: 1.6;
}

.legal-content-section {
    padding: 5rem 5%;
    background-color: var(--bg-dark);
}

.legal-container {
    max-width: 1100px;
    margin: 0 auto;
}

.legal-grid {
    margin-bottom: 4rem;
}

.legal-terms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.legal-terms-grid .card-pillar {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.legal-terms-grid .card-pillar p {
    flex-grow: 1;
}

@media (max-width: 1024px) {
    .legal-terms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .legal-terms-grid {
        grid-template-columns: 1fr;
    }
}


.legal-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-card strong {
    color: #fff;
}

.legal-compliance {
    margin-top: 3rem;
}

/* --- MODAL DE COTIZACIÓN B2B --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 8, 13, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: #0d1b2a;
    border: 1px solid rgba(0, 112, 243, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 112, 243, 0.15);
    border-radius: 16px;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    color: #fff;
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--metallic);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.modal-header.text-center {
    text-align: center;
}

.modal-header p {
    color: var(--metallic);
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 500;
    color: #e2e8f0;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.form-group select {
    color: #ffffff;
    cursor: pointer;
}

.form-group select option {
    background-color: #0d1b2a;
    color: #e2e8f0;
    padding: 0.5rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #64748b;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 112, 243, 0.25);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem;
}

.checkbox-grid label {
    font-size: 0.85rem;
    color: var(--metallic);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-submit {
    margin-top: 1rem;
}

/* --- MODAL DE ÉXITO / CONFIRMACIÓN DE LA INDUSTRIA --- */
.success-container {
    max-width: 520px;
    text-align: center;
    padding: 3rem 2.5rem;
}

.success-icon-badge {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.2) 0%, rgba(56, 189, 248, 0.1) 100%);
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.8rem auto;
    box-shadow: 0 0 25px rgba(0, 112, 243, 0.35);
    animation: pulseGlow 2.5s infinite ease-in-out;
}

.success-icon {
    font-size: 2.2rem;
    color: #38bdf8;
    font-weight: 700;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 112, 243, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 35px rgba(0, 112, 243, 0.6);
        transform: scale(1.04);
    }
}

.success-text {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--metallic);
    margin-bottom: 2rem;
}

.success-text strong {
    color: #fff;
}

.success-info-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: left;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.88rem;
    color: var(--metallic);
}

.info-item strong {
    color: #fff;
}

.info-icon {
    font-size: 1.2rem;
}

/* --- FOOTER PERFECCIONADO --- */
footer {
    background-color: #03080d;
    padding: 4rem 5% 2rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.footer-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.footer-logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 112, 243, 0.2));
}

.footer-tagline {
    color: var(--metallic);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-address {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--accent-blue);
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
}

.address-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-address p {
    color: var(--metallic);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.2rem 0;
}

.footer-map {
    height: 100%;
    min-height: 250px;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    min-height: 250px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* BARRA INFERIOR DE ENLACES LEGALES (ESTILO SHOPIFY DE LA IMAGEN) */
.footer-bottom-bar {
    max-width: 1200px;
    margin: 3rem auto 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-bottom-bar p {
    color: var(--metallic);
    font-size: 0.76rem;
    line-height: 1.8;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.copyright-text {
    color: var(--metallic);
    font-size: 0.76rem;
}

.footer-bottom-bar .sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
    user-select: none;
}

.footer-bottom-link {
    color: var(--metallic);
    text-decoration: none;
    font-size: 0.76rem;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.25s ease;
}

.footer-bottom-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: #ffffff;
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-bottom-link:hover {
    color: #ffffff;
}

.footer-bottom-link:hover::after {
    width: 100%;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-bottom-bar p {
        flex-direction: column;
        gap: 0.3rem;
    }

    .footer-bottom-bar .sep {
        display: none;
    }
}
