@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
    /* Brand Colors */
    --brand-blue: #003159;
    --brand-orange: #fe7a12;
    --brand-blue-dark: #001a33;
    --brand-orange-hover: #e56a09;
    
    /* Light Theme Colors */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-light: #e2e8f0;
    
    /* Layout & Shadows */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --shadow-soft: 0 10px 40px -10px rgba(0,49,89,0.1);
    --shadow-hover: 0 20px 40px -10px rgba(0,49,89,0.2);
    --transition-smooth: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .brand {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ANIMACIONES PREMIUM CONTINUAS */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

/* Botones con efecto de brillo (Shine) */
.btn-primary, .btn-secondary, .btn-wa-large {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before, .btn-secondary::before, .btn-wa-large::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    z-index: -1;
    animation: shine 5s infinite;
}

/* Micro-animación Navbar Navbar Logo */
.brand {
    transition: transform 0.3s;
}
.brand:hover {
    transform: scale(1.05);
}
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 15px 5%;
}

.brand {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-blue);
}

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

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brand-blue);
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--brand-orange);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--brand-orange);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.nav-links a:hover::after { width: 100%; }

.btn-contact {
    background: var(--brand-orange);
    color: #fff;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(254, 122, 18, 0.3);
}

.btn-contact:hover {
    background: var(--brand-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(254, 122, 18, 0.4);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--brand-blue);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    top: -20%; right: -10%;
    width: 800px; height: 800px;
    background: var(--brand-blue);
    border-radius: 50%;
    opacity: 0.03;
    z-index: 1;
}

.hero-bg-img {
    position: absolute;
    top: 50%; right: 5%;
    transform: translateY(-50%);
    width: 45%;
    max-height: 80vh;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    z-index: 2;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 3;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(254, 122, 18, 0.1);
    border: 1px solid rgba(254, 122, 18, 0.2);
    color: var(--brand-orange);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 25px;
    letter-spacing: -1.5px;
    color: var(--brand-blue);
}

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

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-subtitle {
    color: var(--brand-orange);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--brand-blue);
}

/* Categorias Grid (Home) */
.categories-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cat-card {
    position: relative;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.cat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.cat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,49,89,0.9), transparent);
    z-index: 1;
}

.cat-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.8s;
}

.cat-card:hover .cat-img { transform: scale(1.1); }

.cat-info {
    position: relative;
    z-index: 2;
    color: #fff;
    width: 100%;
}

.cat-info h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 5px; }
.cat-info span { font-weight: 600; font-size: 0.95rem; color: #fff; display: flex; align-items: center; gap: 8px; transition: 0.3s; }
.cat-card:hover .cat-info span { color: var(--brand-orange); }


/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0,49,89,0.1);
    box-shadow: var(--shadow-hover);
}

.product-img-wrapper {
    height: 250px;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

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

.product-badge {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--brand-orange);
    color: #fff;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(254, 122, 18, 0.3);
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-brand {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-blue);
    margin-bottom: 15px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer-dual {
    margin-top: auto;
    display: flex;
    gap: 10px;
    width: 100%;
}

.btn-dual {
    flex: 1;
    padding: 12px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-ver {
    background: var(--bg-primary);
    color: var(--brand-blue);
    border: 1px solid var(--border-light);
}

.btn-ver:hover {
    background: var(--brand-blue);
    color: #fff;
    border-color: var(--brand-blue);
}

.btn-wa {
    background: #25D366;
    color: #fff;
    border: 1px solid #25D366;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.btn-wa:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

.btn-wa-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 15px 25px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: 100px;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.25);
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-wa-large:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    color: #fff;
}

/* SEARCH BAR */
.search-container {
    margin-bottom: 25px;
    position: relative;
}
.search-input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}
.search-input:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(254, 122, 18, 0.1);
}
.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

/* FAQ ACCORDION */
.faq-item {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition-smooth);
}
.faq-question {
    padding: 20px;
    font-weight: 700;
    color: var(--brand-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    color: var(--text-secondary);
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}
.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 200px;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-question i {
    transition: transform 0.3s ease;
}

/* PRODUCT GALLERY */
.gallery-main {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 16px;
    margin-bottom: 15px;
}
.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}
.gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}
.gallery-thumb.active {
    border-color: var(--brand-orange);
}
.gallery-thumb:hover {
    transform: scale(1.05);
}

/* ADMIN TABS & REQUESTS */
.admin-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-light);
}
.tab-btn {
    background: none;
    border: none;
    padding: 10px 15px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition-smooth);
}
.tab-btn.active {
    color: var(--brand-blue);
    border-color: var(--brand-orange);
}
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}
.tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.request-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--brand-orange);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}
.request-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px dashed var(--border-light);
    padding-bottom: 10px;
}
.request-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    font-size: 0.95rem;
    margin-bottom: 15px;
}
.request-data strong {
    color: var(--brand-blue);
    display: block;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

/* PRODUCT SPECS TABLE */
.product-specs {
    margin-top: 30px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-bottom: 30px;
}
.spec-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    border-bottom: 1px solid var(--border-light);
}
.spec-row:last-child {
    border-bottom: none;
}
.spec-name {
    background: #f8fafc;
    padding: 12px 20px;
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-right: 1px solid var(--border-light);
}
.spec-val {
    padding: 12px 20px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* CATALOG LAYOUT */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.sidebar {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    position: sticky;
    top: 100px;
}

.sidebar h3 {
    font-size: 1.2rem;
    color: var(--brand-blue);
    margin-bottom: 20px;
    font-weight: 800;
}

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

.filter-list a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-list a::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: transparent;
    transition: 0.3s;
}

.filter-list a:hover, .filter-list a.active {
    color: var(--brand-orange);
}
.filter-list a:hover::before, .filter-list a.active::before {
    background: var(--brand-orange);
}

/* Footer */
.footer {
    background: var(--brand-blue-dark);
    color: #fff;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col p {
    color: #cbd5e1;
    margin: 20px 0;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--brand-orange);
    transform: translateY(-3px);
}

/* BRAND PILLS HORIZONTALES */
.brand-pills {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}
.brand-pills::-webkit-scrollbar { display: none; }
.brand-pill {
    padding: 8px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    white-space: nowrap;
}
.brand-pill:hover, .brand-pill.active {
    background: var(--brand-blue);
    color: #fff;
    border-color: var(--brand-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,49,89,0.15);
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 800;
}

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

.footer-col ul li a {
    color: #cbd5e1;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.footer-col ul li a:hover {
    color: var(--brand-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .catalog-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; margin-bottom: 30px; }
    .hero h1 { font-size: 3.5rem; }
    .hero-bg-img { width: 50%; }
}

@media (max-width: 768px) {
    /* Navbar móvil */
    .nav-links { display: none; }
    .btn-contact { display: none !important; }
    .mobile-toggle { display: block; }
    
    /* Hero y text */
    .hero { padding-top: 100px; padding-bottom: 50px; text-align: center; display: block; }
    .hero-content { margin: 0 auto; text-align: center; width: 100%; }
    .hero-content > div { justify-content: center; }
    
    /* Botones Hero Móvil */
    .hero-btns { flex-direction: column !important; width: 100%; gap: 15px !important; margin-bottom: 40px; }
    .hero-btns a { width: 100%; justify-content: center; display: flex; align-items: center; }
    
    .hero h1 { font-size: 2.4rem; margin-bottom: 15px; line-height: 1.1; }
    .hero p { font-size: 1.05rem; }
    .hero-image-wrapper { margin-top: 30px; display: block; width: 100%; }
    
    /* Layouts generales */
    .categories-preview { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-col { display: flex; flex-direction: column; align-items: center; }
    .section-title { font-size: 2.2rem; }
    .section { padding: 60px 0; }
    
    /* Admin Panel */
    .admin-grid { grid-template-columns: 1fr !important; }
    .admin-tabs { flex-direction: column; gap: 10px; }
    .tab-btn { text-align: left; padding: 12px; background: #fff; border: 1px solid var(--border-light); border-radius: 8px; }
    .tab-btn.active { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
    .admin-item { flex-direction: column; text-align: center; gap: 15px; }
    .admin-item > div:first-child { width: 100% !important; flex-direction: column; }
    
    /* Formularios Solicitud */
    .form-section { padding: 25px; margin: -30px 5% 30px; width: 90%; }
    
    /* Tarjetas de Producto */
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .product-img-wrapper { height: 200px; padding: 20px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.1rem; }
    .products-grid { grid-template-columns: 1fr; }
    .request-data { grid-template-columns: 1fr; }
    .spec-row { grid-template-columns: 1fr; }
    .spec-name { border-right: none; border-bottom: 1px dashed var(--border-light); }
}
