/* ==========================================================================
   GISCO INDUSTRIAL - Estilo Premium Corporativo de Alta Visibilidad
   ========================================================================== */

/* Importación de tipografías sans-serif modernas y altamente legibles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ===== VARIABLES DE DISEÑO Y TEMAS DE ALTO CONTRASTE ===== */
:root {
    /* Paleta Industrial: Azul Cobalto y Naranja Seguridad */
    --brand-blue: #2563eb;         /* Azul Cobalto */
    --brand-blue-dark: #1d4ed8;
    --brand-orange: #ea580c;       /* Naranja Seguridad */
    --brand-orange-dark: #c2410c;
    --brand-amber: #f59e0b;

    /* Tema Claro (Contraste Máximo Garantizado) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;       /* Gris Hielo */
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.9);
    
    --border-color: #cbd5e1;       /* Gris claro bien visible */
    --border-hover: #94a3b8;
    --border-accent: var(--brand-blue);
    
    --text-primary: #0f172a;       /* Pizarra oscuro (Máxima visibilidad) */
    --text-secondary: #334155;     /* Gris pizarra oscuro */
    --text-muted: #64748b;         /* Gris medio */
    --text-light: #ffffff;

    --bg-dark-section: #0f172a;    /* Para secciones oscuras contrastadas */
    --card-dark-bg: rgba(255, 255, 255, 0.05);

    /* Radios y Sombras Corporativas */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.12);
    
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Tema Oscuro (Gris Grafito de Alta Legibilidad) */
.dark-theme {
    --bg-primary: #0b0f19;         /* Negro azulado profundo */
    --bg-secondary: #111827;       /* Gris oscuro */
    --bg-card: #1f2937;            /* Gris tarjeta */
    --bg-glass: rgba(11, 15, 25, 0.92);

    --border-color: #374151;       /* Bordes muy definidos */
    --border-hover: #4b5563;
    --border-accent: #60a5fa;      /* Azul claro en modo oscuro */

    --text-primary: #f9fafb;       /* Blanco hielo (Contraste perfecto) */
    --text-secondary: #d1d5db;     /* Gris claro */
    --text-muted: #9ca3af;
    --text-light: #0b0f19;

    --bg-dark-section: #030712;
    --card-dark-bg: rgba(0, 0, 0, 0.3);

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ===== ESTILOS BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Títulos con tipografía Outfit de impacto y excelente legibilidad */
h1, h2, h3, h4, .brand-text, .nav-links a, .cta-button, .section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== BARRA INFORMATIVA SUPERIOR ===== */
.top-bar {
    background-color: var(--bg-dark-section);
    padding: 10px 0;
    border-bottom: 2px solid var(--brand-blue);
    font-size: 0.85rem;
    color: #e2e8f0;
}

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

.top-bar-left span {
    margin-right: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.top-bar-right {
    display: flex;
    gap: 20px;
}

.top-bar-right a {
    color: #e2e8f0;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.top-bar-right a:hover {
    color: var(--brand-amber);
}

/* ===== CABECERA PRINCIPAL ===== */
header {
    background-color: var(--bg-primary);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

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

.brand-section {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.brand-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
}

.brand-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--brand-blue);
    letter-spacing: 1px;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 5px;
}

.brand-text span {
    color: var(--brand-orange);
}

.brand-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

.header-badge {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.header-badge-icon {
    font-size: 1.5rem;
    color: var(--brand-orange);
}

.header-badge-text span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.header-badge-text strong {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 700;
}

/* ===== NAVEGACIÓN STICKY ===== */
nav {
    background-color: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-links {
    display: flex;
    list-style: none;
    height: 100%;
}

.nav-links li {
    height: 100%;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 100%;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--brand-blue);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--brand-blue);
    background-color: var(--bg-secondary);
}

.nav-links a:hover::after,
.nav-links li.active a::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:hover {
    transform: scale(1.08) rotate(15deg);
    border-color: var(--border-hover);
}

.cart-toggle-btn {
    background-color: var(--brand-blue);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 800;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.cart-toggle-btn:hover {
    background-color: var(--brand-blue-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.cart-badge {
    background-color: var(--brand-orange);
    color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -8px;
    right: -8px;
    font-weight: 800;
    border: 2px solid var(--bg-primary);
    animation: pulse 2.5s infinite;
}

/* ===== SECCIÓN HERO (ALTO CONTRASTE Y COBERTURA DE IMAGEN) ===== */
.hero {
    /* Gradiente oscuro y denso sobre la imagen para maximizar contraste del texto */
    background: linear-gradient(to right, rgba(15, 23, 42, 0.92) 35%, rgba(15, 23, 42, 0.55) 100%), 
                url('../img/hero-bg.png') no-repeat center center/cover;
    padding: 120px 0;
    border-bottom: 4px solid var(--brand-blue);
    position: relative;
}

.hero-content {
    max-width: 750px;
    color: #ffffff;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero h1 span {
    color: var(--brand-orange);
    display: block;
    font-size: 1.1em;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 900;
}

.hero p {
    font-size: 1.25rem;
    color: #cbd5e1;       /* Gris claro de alto contraste */
    margin-bottom: 35px;
    line-height: 1.7;
    font-weight: 500;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--brand-orange);
    color: #ffffff;
    padding: 16px 36px;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    transition: var(--transition-bounce);
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: var(--brand-orange-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.6);
}

/* ===== SECCIONES GENERALES ===== */
section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 800;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--brand-blue);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===== CALCULADORA DE MATERIALES (ESTILO LIMPIO Y CONTRASTADO) ===== */
.calc-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.calc-panel {
    padding: 40px;
}

.calc-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
    gap: 10px;
}

.calc-tab {
    background: none;
    border: none;
    padding: 12px 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 3px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calc-tab:hover {
    color: var(--brand-blue);
}

.calc-tab.active {
    color: var(--brand-blue);
    border-bottom-color: var(--brand-blue);
}

.calc-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.calc-tab-content.active {
    display: block;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.input-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.input-slider-wrapper input[type="range"] {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
}

.input-slider-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--brand-blue);
    border: 3px solid #ffffff;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.input-slider-wrapper input[type="range"]::-webkit-slider-thumb:hover {
    background-color: var(--brand-blue-dark);
    transform: scale(1.1);
}

.input-number-box {
    width: 95px;
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    text-align: center;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    outline: none;
}

.input-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.input-select:focus {
    border-color: var(--brand-blue);
}

/* Panel lateral de resultados */
.calc-results {
    background-color: var(--bg-secondary);
    border-left: 2px solid var(--border-color);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.results-header h3 {
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 1.4rem;
    font-weight: 800;
}

.results-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.results-header strong {
    color: var(--brand-blue);
    font-size: 1rem;
    font-weight: 800;
}

.results-list {
    margin: 25px 0;
    list-style: none;
}

.results-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.results-item:last-child {
    border-bottom: none;
}

.results-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.results-label-icon {
    font-size: 1.25rem;
}

.results-value {
    font-weight: 900;
    color: var(--brand-orange);
    font-size: 1.3rem;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.results-value span {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.calc-action-btn {
    background-color: var(--brand-blue);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.calc-action-btn:hover {
    background-color: var(--brand-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== CATÁLOGO DE MATERIALES ===== */
.catalog-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.catalog-tabs-wrapper {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.catalog-tab-btn {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.catalog-tab-btn:hover {
    border-color: var(--border-hover);
    color: var(--brand-blue);
}

.catalog-tab-btn.active {
    background-color: var(--brand-blue);
    color: #ffffff;
    border-color: var(--brand-blue);
}

.search-wrapper {
    position: relative;
    width: 320px;
    max-width: 100%;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
    transition: var(--transition-smooth);
}

.search-input:focus {
    border-color: var(--brand-blue);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

/* Rejilla de Materiales - Más compacta y ajustada */
.materiales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.material-card {
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px 14px 18px;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

/* Imagen Real de Producto en Tarjeta */
.material-card-img-wrapper {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    background-color: var(--bg-secondary);
}

.material-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-bounce);
}

.material-card:hover .material-card-img {
    transform: scale(1.08);
}

.material-card:hover {
    border-color: var(--brand-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.material-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: inline-block;
}

.material-card h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.3;
}

.material-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.material-card-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.material-price {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--brand-blue);
    font-family: 'Outfit', sans-serif;
}

.material-price span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    margin-left: 2px;
}

.add-to-cart-btn {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.add-to-cart-btn:hover {
    background-color: var(--brand-blue);
    color: #ffffff;
    border-color: var(--brand-blue);
}

/* ===== SERVICIOS (MODERNOS, CUADRÍCULA LIMPIA) ===== */
.servicios-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.servicio-item {
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 35px;
    display: flex;
    gap: 20px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.servicio-item:hover {
    border-color: var(--brand-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.servicio-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    background-color: var(--bg-secondary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    transition: var(--transition-bounce);
}

.servicio-item:hover .servicio-icon {
    transform: scale(1.08);
    background-color: rgba(37, 99, 235, 0.08);
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.servicio-content h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.servicio-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== SOBRE NOSOTROS (ALTO CONTRASTE) ===== */
.nosotros-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.nosotros-text h3 {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 900;
}

.nosotros-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 16px;
    line-height: 1.7;
}

.valores-list {
    list-style: none;
    margin-top: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.valores-list li {
    padding: 10px 15px 10px 38px;
    position: relative;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.valores-list li::before {
    content: '✓';
    position: absolute;
    left: 15px;
    color: var(--brand-blue);
    font-weight: 900;
    font-size: 1.1rem;
}

.nosotros-image-wrapper {
    position: relative;
}

.nosotros-image {
    background-color: var(--bg-secondary);
    height: 400px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    border: 3px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
}

.nosotros-image-shadow {
    position: absolute;
    top: 20px;
    right: -20px;
    bottom: -20px;
    left: 20px;
    background-color: rgba(37, 99, 235, 0.05);
    border-radius: var(--radius-lg);
    z-index: 1;
    border: 2px dashed var(--border-color);
}

/* ===== SECCIÓN CONTACTO (CORPORATIVA) ===== */
.contacto-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contacto-card {
    background-color: var(--bg-card);
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.contacto-card:hover {
    border-color: var(--brand-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contacto-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: inline-block;
}

.contacto-card h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 800;
}

.contacto-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contacto-card a {
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.contacto-card a:hover {
    color: var(--brand-blue-dark);
    text-decoration: underline;
}

/* Formulario */
.contacto-form-wrapper {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.contacto-form-wrapper h3 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 800;
}

.contacto-form-wrapper p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 16px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--brand-blue);
    background-color: var(--bg-primary);
}

textarea.form-control {
    height: 110px;
    resize: none;
}

.submit-btn {
    background-color: var(--brand-orange);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 28px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.submit-btn:hover {
    background-color: var(--brand-orange-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ===== PIE DE PÁGINA CORPORATIVO ===== */
footer {
    background-color: var(--bg-dark-section);
    color: #cbd5e1;
    padding: 60px 0 25px;
    border-top: 4px solid var(--brand-blue);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.footer-brand-text {
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
}

.footer-brand-text span {
    color: var(--brand-orange);
}

.footer-info {
    max-width: 600px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #94a3b8;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: #64748b;
    width: 100%;
}

.footer-bottom p {
    margin-bottom: 4px;
}

/* ===== PANEL DE PRESUPUESTO LATERAL (DRAWER) ===== */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 460px;
    max-width: 100vw;
    background-color: var(--bg-primary);
    box-shadow: -6px 0 40px rgba(15, 23, 42, 0.15);
    z-index: 200;
    transform: translateX(100%);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--border-color);
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-drawer-header {
    background-color: var(--bg-dark-section);
    color: #ffffff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--brand-blue);
}

.cart-drawer-header h3 {
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.cart-close-btn {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.cart-close-btn:hover {
    color: var(--brand-orange);
}

.cart-drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: var(--bg-secondary);
}

.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
}

.cart-empty-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.cart-empty-state h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    position: relative;
    animation: fadeIn 0.25s ease;
}

.cart-item-icon {
    font-size: 1.8rem;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.2;
}

.cart-item-price {
    font-size: 0.95rem;
    color: var(--brand-blue);
    font-weight: 800;
}

.cart-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 3px;
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.qty-btn {
    background: none;
    border: none;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background-color: var(--border-color);
}

.qty-val {
    width: 30px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 800;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    height: 26px;
    line-height: 26px;
    color: var(--text-primary);
}

.remove-item-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition-smooth);
}

.remove-item-btn:hover {
    transform: scale(1.15);
}

.cart-drawer-footer {
    padding: 20px;
    border-top: 2px solid var(--border-color);
    background-color: var(--bg-primary);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
}

.cart-summary-total-val {
    color: var(--brand-orange);
}

.cart-send-btn {
    background-color: #22c55e;   /* Verde WhatsApp corporativo */
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.cart-send-btn:hover {
    background-color: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    z-index: 190;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===== NOTIFICACIONES TOAST ===== */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 300;
}

.toast {
    background-color: var(--bg-dark-section);
    color: #ffffff;
    border-left: 4px solid var(--brand-blue);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 280px;
    animation: slideInLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-icon {
    color: #22c55e;
    font-weight: 900;
}

/* ===== ANIMACIONES ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(234, 88, 12, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .calc-grid {
        grid-template-columns: 1fr;
    }
    .calc-results {
        border-left: none;
        border-top: 2px solid var(--border-color);
    }
    .nosotros-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .nosotros-image-wrapper {
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }
    .contacto-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .top-bar {
        display: none;
    }
    .header-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .brand-section {
        flex-direction: column;
    }
    .brand-text {
        font-size: 1.6rem;
    }
    .header-badge {
        width: 100%;
        justify-content: center;
    }
    .nav-container {
        height: auto;
        padding: 10px 16px;
        flex-direction: column;
        gap: 10px;
    }
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .nav-links a {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .hero {
        padding: 60px 0;
        text-align: center;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.05rem;
    }
    .calc-panel {
        padding: 20px;
    }
    .calc-results {
        padding: 20px;
    }
    .catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-wrapper {
        width: 100%;
    }
    .contacto-grid {
        grid-template-columns: 1fr;
    }
    .contacto-form-wrapper {
        padding: 20px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .valores-list {
        grid-template-columns: 1fr;
    }
}

/* Helper para Iconos SVG de Alta Definición */
.material-icon svg,
.results-label-icon svg,
.cart-item-icon svg,
.servicio-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.results-label-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.cart-item-icon {
    width: 32px;
    height: 32px;
    display: inline-block;
    flex-shrink: 0;
}

.servicio-icon svg {
    width: 28px;
    height: 28px;
}
