/* Paleta de Colores "Brisa Helada" */
:root {
    --primary: #0284c7; /* Azul profundo (Fuerza y profesionalismo) */
    --secondary: #38bdf8; /* Azul cielo (Frescura) */
    --accent: #0ea5e9; /* Cian vibrante para llamadas a la acción */
    --bg-main: #ffffff; /* Blanco nieve */
    --bg-light: #f1f5f9; /* Gris metalizado claro */
    --text-dark: #0f172a; /* Texto oscuro */
    --text-light: #64748b; /* Texto secundario */
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Tipografía y Utilidades */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.section { padding: 80px 0; scroll-margin-top: 70px; }
.section-title { font-size: 2.5rem; margin-bottom: 40px; color: var(--primary); }

/* Header */
.header {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}
.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px; max-width: 1200px; margin: 0 auto;
}
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.nav-menu a {
    text-decoration: none; color: var(--text-dark);
    margin: 0 15px; font-weight: 600; transition: var(--transition);
}
.nav-menu a:hover { color: var(--accent); }
.admin-link { color: #f59e0b !important; font-size: 0.9rem; border: 1px solid #f59e0b; padding: 5px 10px; border-radius: 5px;}

/* Icono del Carrito */
.cart-icon {
    font-size: 1.5rem; color: var(--primary); cursor: pointer; position: relative;
}
.cart-count {
    position: absolute; top: -10px; right: -10px;
    background: var(--accent); color: white;
    font-size: 0.8rem; font-weight: bold;
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.9), rgba(56, 189, 248, 0.8)), url('https://images.unsplash.com/photo-1581094288338-2314dddb7ece?auto=format&fit=crop&w=1920&q=80') center/cover;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: white; padding-top: 70px;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Botones */
.btn {
    padding: 12px 25px; border: none; border-radius: 8px;
    font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition); text-decoration: none; display: inline-block;
}
.btn-primary { background-color: var(--accent); color: white; }
.btn-primary:hover { background-color: var(--primary); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(2, 132, 199, 0.3); }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); width: 100%;}
.btn-outline:hover { background: var(--accent); color: white; }

/* Grids y Tarjetas (Preparadas para CMS) */
.grid-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px;
}
.card {
    background: white; border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: var(--transition);
    border: 1px solid #e2e8f0;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-color: var(--secondary); }
.card-img { height: 200px; width: 100%; display: flex; justify-content: center; }
.card-body { padding: 20px; text-align: left; }
.card-body h3 { margin-bottom: 10px; font-size: 1.2rem; color: var(--primary); }
.card-body .price { font-size: 1.1rem; font-weight: bold; color: var(--text-dark); margin-bottom: 15px; }

/* Portafolio Blog Tags */
.tag { background: var(--secondary); color: white; padding: 3px 10px; border-radius: 20px; font-size: 0.8rem; display: inline-block; margin-bottom: 10px;}
.read-more { color: var(--accent); text-decoration: none; font-weight: 600; display: inline-block; margin-top: 10px;}

/* Filtros */
.filters { margin-bottom: 30px; }
.filter-btn {
    background: transparent; border: none; padding: 8px 15px;
    font-size: 1rem; font-weight: 600; color: var(--text-light);
    cursor: pointer; transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover { color: var(--primary); border-bottom: 2px solid var(--primary); }

/* Animaciones de Scroll */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Sidebar del Carrito de Cotizaciones */
.quote-sidebar {
    position: fixed; top: 0; right: -400px; width: 400px; height: 100vh;
    background: white; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1000; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
}
.quote-sidebar.open { right: 0; }
.sidebar-header { padding: 20px; background: var(--primary); color: white; display: flex; justify-content: space-between; align-items: center; }
.close-btn { background: transparent; border: none; color: white; font-size: 1.5rem; cursor: pointer; }
.sidebar-body { padding: 20px; flex-grow: 1; overflow-y: auto; }
.sidebar-footer { padding: 20px; border-top: 1px solid #e2e8f0; }
.cart-item { display: flex; justify-content: space-between; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #f1f5f9; }
.sidebar-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 999; display: none; opacity: 0; transition: opacity 0.3s;
}
.sidebar-overlay.active { display: block; opacity: 1; }