/* ==========================================================================
   STYLE.CSS - Sistema de Diseño Premium y Optimizado (Muebles Provi)
   Pautas de Accesibilidad WCAG AA, Core Web Vitals y Google Ads Safe
   ========================================================================== */

/* Variables del Sistema de Diseño (Regla 60-30-10) */
:root {
    /* 60% Dominante (Fondo Limpio y Profesional) */
    --color-bg-primary: #f8fafc;     /* Slate 50 */
    --color-bg-secondary: #ffffff;   /* Blanco puro */
    --color-bg-alt: #f1f5f9;         /* Slate 100 */

    /* 30% Estructural (Azules Profundos y Grises Corporativos) */
    --color-text-main: #0f172a;      /* Slate 900 */
    --color-text-muted: #475569;     /* Slate 600 */
    --color-primary: #1e293b;        /* Slate 800 */
    --color-primary-light: #334155;  /* Slate 700 */
    
    /* 10% Acento / CTA (Ámbar / Óxido Premium - Contraste WCAG > 4.5:1) */
    --color-accent: #d97706;         /* Amber 600 (Para CTAs) */
    --color-accent-hover: #b45309;   /* Amber 700 */
    --color-accent-light: #fef3c7;   /* Amber 100 */
    
    /* Indicadores y Estados */
    --color-success: #10b981;        /* Esmeralda */
    --color-error: #ef4444;          /* Rojo */
    
    /* Tipografías */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Sombras y Bordes */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Transiciones */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. Reset Global & Tipografía Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primary);
}

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

ul {
    list-style: none;
}

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

/* 2. Clases Utilitarias */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.section-padding { padding: 80px 0; }

/* Botones con Micro-interacciones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-bg-secondary);
}

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

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

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-secondary);
    transform: translateY(-2px);
}

.btn-nav-cta {
    background-color: var(--color-accent);
    color: var(--color-bg-secondary);
    padding: 8px 18px;
    font-size: 14px;
}

.btn-nav-cta:hover {
    background-color: var(--color-accent-hover);
}

/* 3. Top-Bar de Urgencia */
.top-bar {
    background-color: var(--color-primary);
    color: var(--color-bg-secondary);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 100;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
    display: inline-block;
}

/* Animación de Punto Parpadeante */
@keyframes blink {
    0% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.3; transform: scale(1); }
}

.dot.active {
    animation: blink 1.5s infinite ease-in-out;
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

.top-email a:hover {
    color: var(--color-accent);
}

.top-phone, .top-whatsapp {
    font-weight: 500;
}

.top-phone:hover, .top-whatsapp:hover {
    color: var(--color-accent);
}

/* 4. Cabecera Principal */
.main-header {
    background-color: var(--color-bg-secondary);
    padding: 16px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 99;
    transition: var(--transition-smooth);
}

.main-header.shrink {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--color-accent);
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-menu a {
    font-weight: 500;
    font-size: 15px;
    color: var(--color-text-muted);
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--color-accent);
}

/* Menú Hamburguesa Móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

/* 5. Secciones de Landing (Index) */

/* Hero Section */
.hero {
    background: radial-gradient(circle at 10% 20%, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 90%), url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: var(--color-bg-secondary);
    padding: 100px 0;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: 48px;
    color: var(--color-bg-secondary);
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-content p {
    font-size: 18px;
    color: var(--color-bg-alt);
    margin-bottom: 32px;
}

.hero-bullets {
    margin-bottom: 32px;
}

.hero-bullets li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 500;
}

.hero-bullets li::before {
    content: "✓";
    color: var(--color-accent);
    font-weight: bold;
    font-size: 18px;
}

/* Formulario de Captura Hero */
.lead-form-container {
    background-color: var(--color-bg-secondary);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    color: var(--color-text-main);
}

.lead-form-container h3 {
    font-size: 22px;
    margin-bottom: 8px;
    text-align: center;
}

.lead-form-container p {
    font-size: 14px;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    background-color: var(--color-bg-primary);
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: var(--color-bg-secondary);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

/* Advertencia e Información de Privacidad Estricta Google Ads */
.privacy-notice {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 12px;
    text-align: center;
    line-height: 1.4;
}

.privacy-notice a {
    color: var(--color-accent);
    text-decoration: underline;
    font-weight: 500;
}

.privacy-notice a:hover {
    color: var(--color-accent-hover);
}

/* 6. Grillas de Servicios / Productos */
.section-title-wrapper {
    margin-bottom: 50px;
}

.section-subtitle {
    text-transform: uppercase;
    color: var(--color-accent);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: 36px;
    position: relative;
    display: inline-block;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.service-card {
    background-color: var(--color-bg-secondary);
    padding: 40px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent-light);
}

.service-icon {
    font-size: 32px;
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.service-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.service-link:hover {
    color: var(--color-accent-hover);
}

/* 7. Bloque de Proceso Técnico */
.process-section {
    background-color: var(--color-bg-alt);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.process-card {
    text-align: center;
    position: relative;
    padding: 20px;
}

.process-number {
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    color: var(--color-bg-secondary);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
}

.process-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.process-card p {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* 8. Cobertura Local (Venezuela) */
.coverage-section {
    background-color: var(--color-bg-secondary);
}

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

.coverage-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.coverage-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 15px;
}

.coverage-item::before {
    content: "📍";
}

.map-placeholder {
    height: 350px;
    background: #e2e8f0;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px;
    border: 2px dashed var(--color-text-muted);
}

.map-placeholder span {
    font-size: 40px;
    margin-bottom: 12px;
}

/* 9. Sección de Contacto Completa */
.contact-section-split {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
}

.contact-info-block {
    background-color: var(--color-primary);
    color: var(--color-bg-secondary);
    padding: 40px;
    border-radius: var(--radius-md);
}

.contact-info-block h2 {
    color: var(--color-bg-secondary);
    margin-bottom: 24px;
}

.info-item {
    margin-bottom: 24px;
}

.info-item h4 {
    color: var(--color-accent);
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.info-item p, .info-item a {
    font-size: 15px;
    color: var(--color-bg-alt);
}

/* 10. Pie de Página (Footer) */
.main-footer {
    background-color: var(--color-primary);
    color: var(--color-bg-alt);
    padding: 60px 0 20px;
    font-size: 14px;
    border-top: 4px solid var(--color-accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 26px;
    color: var(--color-bg-secondary);
    margin-bottom: 8px;
    display: block;
}

.company-sub {
    font-size: 13px;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.rif-display {
    font-size: 14px;
    color: var(--color-bg-secondary);
    margin-bottom: 8px;
}

.currency-disclaimer {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
}

.footer-col h3 {
    color: var(--color-bg-secondary);
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.legal-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.legal-links a:hover {
    color: var(--color-accent);
}

.backup-attribution {
    font-size: 10px;
    color: #64748b;
    text-align: right;
    margin-top: 4px;
}

.backup-attribution a {
    color: #64748b;
    text-decoration: underline;
}

.backup-attribution a:hover {
    color: var(--color-bg-secondary);
}

/* 11. Páginas Internas (Servicios, Quiénes Somos, Contacto, Legal) */
.page-header {
    background-color: var(--color-primary);
    color: var(--color-bg-secondary);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--color-bg-secondary);
    font-size: 38px;
    margin-bottom: 10px;
}

.breadcrumbs {
    font-size: 14px;
    color: var(--color-bg-alt);
}

.breadcrumbs a:hover {
    color: var(--color-accent);
}

/* Página Quienes Somos */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.about-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 16px;
    color: var(--color-text-muted);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

.about-feature-item {
    background-color: var(--color-bg-secondary);
    padding: 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.about-feature-item h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.about-feature-item p {
    font-size: 13px;
    margin-bottom: 0;
}

/* Catálogo de Servicios */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.catalog-item {
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: var(--transition-smooth);
}

.catalog-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.catalog-img-placeholder {
    height: 220px;
    background-color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-light);
    font-weight: 600;
}

.catalog-info {
    padding: 24px;
}

.catalog-price {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.catalog-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.catalog-info p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

/* Financiamiento */
.financial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.financial-card {
    background-color: var(--color-bg-secondary);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition-smooth);
}

.financial-card.featured {
    border-color: var(--color-accent);
    position: relative;
}

.financial-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    color: var(--color-bg-secondary);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.financial-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.financial-card .term {
    font-size: 36px;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.financial-card ul {
    margin-bottom: 30px;
}

.financial-card ul li {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

/* Contenido Legal */
.legal-content {
    background-color: var(--color-bg-secondary);
    padding: 48px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 22px;
    margin: 32px 0 16px;
}

.legal-content p, .legal-content li {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.legal-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 16px;
}

/* 12. Página de Agradecimiento (Gracias) */
.thank-you-wrapper {
    max-width: 600px;
    margin: 80px auto;
    text-align: center;
    background-color: var(--color-bg-secondary);
    padding: 60px 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.success-icon {
    font-size: 60px;
    color: var(--color-success);
    margin-bottom: 24px;
}

.thank-you-wrapper h1 {
    font-size: 36px;
    margin-bottom: 16px;
}

.thank-you-wrapper p {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.thank-you-urgency-banner {
    background-color: var(--color-accent-light);
    border: 1px solid var(--color-accent);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 30px;
}

.thank-you-urgency-banner h4 {
    color: var(--color-accent-hover);
    margin-bottom: 8px;
}

.thank-you-urgency-banner p {
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
}

/* 13. Página de Error (404) */
.error-page {
    text-align: center;
    padding: 100px 0;
}

.error-code {
    font-size: 120px;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 20px;
}

.error-page h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.error-page p {
    color: var(--color-text-muted);
    max-width: 500px;
    margin: 0 auto 32px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* 14. Diseño Responsivo Adaptado a Móvil (Mobile-First) */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-bullets {
        display: inline-block;
        text-align: left;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .contact-section-split {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }
    
    .top-bar-left {
        justify-content: center;
        width: 100%;
    }
    
    .top-bar-right {
        justify-content: center;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 8px;
    }
    
    /* Menú Desplegable en Móvil */
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg-secondary);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }
    
    .nav-menu.open {
        max-height: 400px;
        border-top: 1px solid #e2e8f0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        padding: 24px;
        align-items: stretch;
        gap: 16px;
    }
    
    .nav-menu li {
        text-align: center;
    }
    
    .nav-cta-item {
        margin-top: 8px;
    }
    
    .coverage-grid {
        grid-template-columns: 1fr;
    }
    
    .error-actions {
        flex-direction: column;
    }
}
