@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary-color: #0d9488;
    --secondary-light: #14b8a6;
    --accent-color: #f59e0b;
    --accent-warm: #d97706;
    --dark-color: #0f172a;
    --dark-surface: #1e293b;
    --light-color: #f8fafc;
    --text-color: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-radius: 10px;
    --border-radius-lg: 14px;
    --border-radius-xl: 20px;
    --box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    --box-shadow-lg: 0 4px 12px rgba(0,0,0,0.08), 0 20px 48px rgba(0,0,0,0.06);
    --box-shadow-soft: 0 1px 2px rgba(0,0,0,0.04);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --section-padding-y: 5.5rem;
    --section-padding-y-sm: 3.5rem;
    --content-gap: 1.5rem;
    --container-padding: clamp(1.25rem, 4vw, 2rem);
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.65;
    color: var(--text-color);
    background-color: #f1f5f9;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ══════════════════════════════════════
   WHATSAPP BUTTON
   ══════════════════════════════════════ */
.whatsapp-button {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 62px;
    height: 62px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 9999;
    text-decoration: none;
    border: none;
    color: white;
    animation: whatsappPulse 2.5s infinite;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35), 0 0 0 10px rgba(37, 211, 102, 0); }
}

.whatsapp-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
    animation: none;
}

body.mobile-menu-open .whatsapp-button {
    z-index: 100;
}

/* ══════════════════════════════════════
   HEADER
   ══════════════════════════════════════ */
header {
    background: var(--dark-color);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 99998;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    overflow: visible;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.9rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    overflow: visible;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.03em;
    color: white;
    text-decoration: none;
}

.logo {
    position: relative;
    overflow: hidden;
}

.logo:hover {
    color: white;
    opacity: 1;
}

.logo:hover .logo-img {
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6)) drop-shadow(0 0 16px rgba(245, 158, 11, 0.35));
    animation: logo-glow 1.5s ease-in-out infinite alternate;
}

/* Brillo que cruza el logo al hacer hover (solo cuando el logo es imagen) */
.logo:has(.logo-img)::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-22deg);
    pointer-events: none;
}

.logo:has(.logo-img):hover::after {
    animation: logo-shine 0.7s ease-out forwards;
}

@keyframes logo-glow {
    from { filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6)) drop-shadow(0 0 16px rgba(245, 158, 11, 0.35)); }
    to   { filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.8)) drop-shadow(0 0 24px rgba(245, 158, 11, 0.5)); }
}

@keyframes logo-shine {
    to { left: 150%; }
}

.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    position: relative;
    transition: filter 0.3s ease;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.logo-name {
    color: inherit;
    white-space: nowrap;
    font-weight: 700;
}

.logo i {
    color: var(--accent-color);
    font-size: 26px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    position: relative;
    letter-spacing: 0.01em;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
    border-radius: 1px;
}

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

.nav-links a:hover {
    color: white;
}

.cart-icon, .user-icon {
    position: relative;
    cursor: pointer;
    font-size: 19px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    color: rgba(255,255,255,0.8);
}

.cart-icon:hover, .user-icon:hover {
    transform: scale(1.1);
    color: white;
}

/* ══════════════════════════════════════
   DROPDOWN MENU USUARIO
   ══════════════════════════════════════ */
.user-menu-dropdown {
    position: fixed;
    /* top y right se asignan por JS al abrir para quedar debajo del icono */
    background: #ffffff !important;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
    min-width: 260px;
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    color: var(--dark-color) !important;
    overflow: hidden;
}

.user-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    padding: 20px;
    background: var(--dark-color);
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-menu-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: white;
}

.user-menu-info {
    flex: 1;
}

.user-menu-info .name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    color: white;
}

.user-menu-info .email {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.user-menu-items {
    padding: 6px 0;
    background: #ffffff;
    color: #1f2937;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: var(--text-color) !important;
    text-decoration: none;
    transition: var(--transition);
    font-size: 13.5px;
    font-weight: 500;
}

.user-menu-item:hover {
    background: #f8fafc;
    color: var(--primary-color);
}

.user-menu-item:hover i {
    color: var(--primary-color);
}

.user-menu-item i {
    width: 18px;
    color: var(--text-muted) !important;
    font-size: 15px;
}

.user-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.user-menu-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border-color);
    background: #ffffff;
}

.user-menu-logout {
    width: 100%;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 9px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.user-menu-logout:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid var(--dark-color);
}

/* ══════════════════════════════════════
   MENU HAMBURGUESA
   ══════════════════════════════════════ */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1001;
    border-radius: 10px;
}

.menu-toggle:hover {
    background: rgba(255,255,255,0.08);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 88vw);
    min-width: 280px;
    height: 100vh;
    background: var(--dark-color);
    z-index: 10001;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 8px 0 40px rgba(0,0,0,0.4);
    animation: slideInLeft 0.35s ease;
    padding-top: 20px;
    box-sizing: border-box;
}

.mobile-menu * {
    box-sizing: border-box;
}

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

.mobile-menu.active {
    display: block;
}

.mobile-menu-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-close {
    background: rgba(255,255,255,0.06);
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.mobile-menu-links {
    list-style: none;
    padding: 0;
}

.mobile-menu-links li {
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.mobile-menu-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-size: 14px;
}

.mobile-menu-links a:hover {
    background: rgba(255,255,255,0.04);
    color: white;
    padding-left: 24px;
}

.mobile-menu-links a i {
    font-size: 18px;
    width: 24px;
    color: var(--text-muted);
}

.mobile-menu-section {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mobile-menu-section .btn-primary {
    width: 100%;
    max-width: 100%;
    padding: 13px 16px;
    white-space: nowrap;
}

.mobile-menu-section h4 {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    font-weight: 600;
}

.mobile-user-info {
    background: rgba(255,255,255,0.04);
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}

.mobile-user-avatar {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.mobile-user-details {
    flex: 1;
}

.mobile-user-details .name {
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.mobile-user-details .email {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

.mobile-toggle-options-btn {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: var(--transition);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-toggle-options-btn:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.mobile-toggle-options-btn i {
    transition: var(--transition);
}

.mobile-user-options {
    margin-top: 10px;
    padding: 10px 0;
}

.mobile-menu-link-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    border-radius: 8px;
    transition: var(--transition);
    margin-bottom: 4px;
}

.mobile-menu-link-option:hover {
    background: rgba(255,255,255,0.06);
    color: white;
    padding-left: 18px;
}

.mobile-menu-link-option i {
    font-size: 15px;
    width: 20px;
    color: var(--accent-color);
}

.mobile-logout-btn {
    width: 100%;
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: var(--transition);
    margin-top: 12px;
}

.mobile-logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
}

.menu-overlay.active {
    display: block;
}

/* ══════════════════════════════════════
   SEARCH BAR
   ══════════════════════════════════════ */
.search-container {
    display: flex;
    width: 100%;
    padding: 12px 20px;
    background: rgba(255,255,255,0.04);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    gap: 15px;
    align-items: center;
}

.search-filter-bar {
    display: flex;
    width: 100%;
    margin-bottom: 1.75rem;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: white;
    padding: 0.8rem 1.125rem;
    border-radius: var(--border-radius);
    flex: 1;
    box-shadow: var(--box-shadow-soft);
    border: 1.5px solid var(--border-color);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    color: var(--text-color);
    font-family: inherit;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box i {
    color: var(--text-muted);
    font-size: 15px;
}

.clear-search-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px 8px;
    border-radius: 6px;
}

.clear-search-btn:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.06);
}

/* ══════════════════════════════════════
   CATEGORÍAS
   ══════════════════════════════════════ */
.products-filter-section {
    margin-bottom: 2rem;
}

.categories-tabs {
    background: white;
    padding: 18px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow-soft);
    position: relative;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.category-btn {
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    white-space: nowrap;
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.04);
}

.category-btn.active {
    background: var(--dark-color);
    color: white;
    border-color: var(--dark-color);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.category-count {
    background: rgba(0,0,0,0.06);
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.category-btn.active .category-count {
    background: rgba(255,255,255,0.2);
}

/* ══════════════════════════════════════
   SLIDER / HERO
   ══════════════════════════════════════ */
.slider-container {
    position: relative;
    width: 100%;
    background: var(--dark-color);
    overflow: hidden;
    height: min(560px, 80vh);
}

.slider-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(37, 99, 235, 0.15), transparent),
        radial-gradient(ellipse 60% 50% at 80% 70%, rgba(13, 148, 136, 0.1), transparent);
    z-index: 1;
    pointer-events: none;
}

.slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: clamp(3rem, 8vw, 5rem) 2rem;
    position: relative;
    overflow: hidden;
}

.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 15% 50%, rgba(37, 99, 235, 0.08), transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(245, 158, 11, 0.06), transparent 50%);
    pointer-events: none;
}

.slide-content {
    max-width: 640px;
    animation: slideUp 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.slide-content .btn-add {
    flex: none;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    display: inline-flex;
    background: white;
    color: var(--dark-color);
    font-weight: 700;
    padding: 12px 28px;
    font-size: 14px;
    border-radius: 10px;
}

.slide-content .btn-add:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.slide p {
    font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
    margin-bottom: 1.5rem;
    opacity: 0.7;
    line-height: 1.7;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.slide-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.75rem;
    letter-spacing: -0.02em;
}

.slider-controls {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    background: rgba(255,255,255,0.08);
    padding: 10px 18px;
    border-radius: 50px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.slider-dot.active {
    background-color: white;
    width: 28px;
    border-radius: 5px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    backdrop-filter: blur(8px);
}

.slider-btn:hover {
    background-color: rgba(255,255,255,0.15);
    color: white;
    transform: translateY(-50%) scale(1.05);
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

/* ══════════════════════════════════════
   CARRUSEL PROYECTOS A LA MEDIDA
   ══════════════════════════════════════ */
#proyectos-medida {
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(30, 58, 95, 0.04) 100%);
}

.proyectos-carousel-wrap {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 50px;
}

@media (min-width: 992px) {
    .proyectos-carousel-wrap {
        max-width: 1100px;
    }
}

.proyectos-carousel {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.proyectos-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
}

/* Por defecto: una tarjeta 100% (móvil) */
.proyecto-card {
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Cuando el track tiene ancho fijado por JS, cada tarjeta usa --proyectos-card-width-pct (móvil y desktop) */
.proyectos-track[style*="width"] .proyecto-card {
    flex: 0 0 calc(var(--proyectos-card-width-pct, 33.333) * 1%);
    min-width: calc(var(--proyectos-card-width-pct, 33.333) * 1%);
    width: calc(var(--proyectos-card-width-pct, 33.333) * 1%);
}

/* Pocos proyectos: repartir ancho para que no quede media tarjeta (1 = 100%, 2 = 50% cada una) */
@media (min-width: 992px) {
    .proyectos-carousel-wrap.proyectos-few-items .proyecto-card {
        flex: 0 0 var(--proyectos-card-width, 50%);
        min-width: var(--proyectos-card-width, 50%);
        width: var(--proyectos-card-width, 50%);
    }
}

/* Ocultar flechas y puntos cuando solo hay una página */
.proyectos-carousel-wrap.proyectos-single-page .proyectos-carousel-btn,
.proyectos-carousel-wrap.proyectos-single-page .proyectos-carousel-dots {
    display: none;
}

.proyecto-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.proyecto-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
    border-color: var(--primary-color);
}

.proyecto-card-link:hover .proyecto-card-cta {
    color: var(--primary-color);
}

.proyecto-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--dark-color);
    overflow: hidden;
}

.proyecto-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.proyecto-card-image-fallback {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(13, 148, 136, 0.15));
    color: var(--primary-color);
    font-size: 3rem;
    opacity: 0.8;
}

.proyecto-card-body {
    padding: 1.5rem 1.75rem;
}

.proyecto-card-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.proyecto-card-body p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.proyecto-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: color 0.2s ease;
}

.proyectos-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.proyectos-carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.05);
}

.proyectos-carousel-btn.prev { left: 0; }
.proyectos-carousel-btn.next { right: 0; }

.proyectos-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.25rem;
}

.proyectos-carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: background 0.2s, width 0.2s;
}

.proyectos-carousel-dots .dot.active {
    background: var(--primary-color);
    width: 26px;
    border-radius: 5px;
}

.proyectos-carousel-dots .dot:hover {
    background: var(--primary-color);
    opacity: 0.8;
}

/* ══════════════════════════════════════
   CONTAINER & SECTIONS
   ══════════════════════════════════════ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

section {
    padding: var(--section-padding-y) 0;
}

.section-label {
    display: block;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

section h2 {
    font-family: 'Space Grotesk', sans-serif;
    text-align: center;
    font-size: clamp(1.625rem, 3.5vw, 2.25rem);
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 700;
    position: relative;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -0.875rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

section > .container > p {
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 3rem;
    margin-top: 1.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ══════════════════════════════════════
   PRODUCTOS
   ══════════════════════════════════════ */
#productos {
    background: #f1f5f9;
    padding: var(--section-padding-y) 0;
}

#productos .container > h2 { margin-bottom: 0.5rem; }
#productos .container > p { margin-bottom: 2.5rem; margin-top: 1.25rem; font-size: 1rem; }
#productos .products-filter-section { margin-bottom: 2rem; }
#productos .categories-tabs { padding: 1.125rem 1.25rem; border-radius: var(--border-radius-lg); }

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--content-gap);
}

.productos-load-more-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-ver-mas {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color, #2563eb);
    background: rgba(37, 99, 235, 0.08);
    border: 2px solid var(--accent-color, #2563eb);
    border-radius: var(--border-radius-lg, 10px);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-ver-mas:hover {
    background: var(--accent-color, #2563eb);
    color: white;
    transform: translateY(-2px);
}

.btn-ver-mas .ver-mas-count {
    font-size: 0.85em;
    font-weight: 500;
    opacity: 0.9;
}

.product-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    opacity: 0;
    transition: var(--transition);
}

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

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--dark-surface) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.1), transparent 60%);
    pointer-events: none;
}

.product-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card-emoji-fallback {
    font-size: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.product-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-category {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.product-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 6px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.product-description {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.product-features {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.feature-tag {
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
}

.product-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.product-footer {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-add {
    flex: 1;
    background: var(--dark-color);
    color: white;
    border: none;
    padding: 9px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
}

.btn-add:hover {
    background: var(--primary-color);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

.btn-add:active {
    transform: translateY(0);
}

.btn-info {
    background: white;
    color: var(--dark-color);
    border: 1.5px solid var(--border-color);
    padding: 9px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 13px;
    font-family: inherit;
}

.btn-info:hover {
    border-color: var(--dark-color);
    background: #f8fafc;
}

/* ══════════════════════════════════════
   MODAL DE PREVIA PRODUCTO
   ══════════════════════════════════════ */
.product-preview-header {
    background: var(--dark-color);
    padding: 28px;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.product-preview-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--dark-surface), var(--dark-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
}

.product-preview-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: radial-gradient(circle at 30% 40%, rgba(37,99,235,0.12), transparent 60%);
}

.product-preview-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.product-preview-category {
    color: rgba(255,255,255,0.5);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.product-preview-body {
    padding: 28px;
}

.preview-section {
    margin-bottom: 22px;
}

.preview-section h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.preview-section p {
    font-size: 14.5px;
    color: var(--text-light);
    line-height: 1.7;
}

.preview-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preview-feature-item {
    background: var(--dark-color);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.preview-price-section {
    background: #f8fafc;
    padding: 18px;
    border-radius: 10px;
    margin: 22px 0;
    border: 1px solid var(--border-color);
}

.preview-price-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.preview-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 30px;
    font-weight: 700;
    color: var(--dark-color);
}

.preview-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

.preview-footer button {
    padding: 13px 18px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13.5px;
    font-family: inherit;
}

.btn-preview-add {
    background: var(--primary-color);
    color: white;
    grid-column: 1 / -1;
}

.btn-preview-add:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.btn-preview-close {
    background: #f1f5f9;
    color: var(--text-color);
    grid-column: 1 / -1;
}

.btn-preview-close:hover {
    background: #e2e8f0;
}

/* ══════════════════════════════════════
   SOBRE NOSOTROS
   ══════════════════════════════════════ */
#sobre-nosotros {
    background: white;
    padding: var(--section-padding-y) 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    margin-top: 3rem;
    align-items: center;
}

.about-image {
    position: relative;
    min-height: 280px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}

.image-placeholder {
    width: 100%;
    height: 380px;
    background: var(--dark-color);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    box-shadow: var(--box-shadow-lg);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.1), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.06), transparent 50%);
    pointer-events: none;
}

.image-placeholder i {
    font-size: 80px;
    margin-bottom: 16px;
    opacity: 0.5;
    z-index: 1;
}

.image-placeholder p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    z-index: 1;
    opacity: 0.5;
}

.about-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    color: var(--dark-color);
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.about-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 14px;
}

.about-content p strong {
    color: var(--primary-color);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 28px 0;
}

.stat-item {
    background: #f8fafc;
    padding: 22px 16px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-item:hover {
    transform: translateX(4px);
    border-color: var(--border-color);
    background: white;
}

.feature-item i {
    color: var(--accent-color);
    font-size: 18px;
    width: 20px;
}

.feature-item span {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

/* ══════════════════════════════════════
   SOBRE DESARROLLADOR (2 columnas)
   ══════════════════════════════════════ */
@keyframes developerCardIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#sobre-desarrollador {
    background: linear-gradient(165deg, #f1f5f9 0%, #e2e8f0 50%, #f8fafc 100%);
    padding: var(--section-padding-y) 0;
    position: relative;
}

#sobre-desarrollador .section-label {
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--primary-color);
}

.developer-section-intro {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.developer-container {
    margin-top: 2.5rem;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.developer-card {
    display: grid;
    grid-template-columns: minmax(220px, 340px) 1fr;
    gap: 0;
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    overflow: hidden;
    animation: developerCardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    transition: box-shadow var(--transition), transform 0.3s ease;
}

.developer-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06), 0 24px 56px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.developer-col {
    padding: clamp(1.75rem, 4vw, 3rem);
}

.developer-col-image {
    background: linear-gradient(155deg, #0f172a 0%, #1e293b 40%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    position: relative;
    overflow: hidden;
}

/* Patrón sutil tipo grid/código en la columna imagen */
.developer-col-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.developer-col-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.15));
    pointer-events: none;
}

.developer-icon-wrap {
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 1;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.developer-card:hover .developer-icon-wrap {
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

.developer-image-wrap {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.developer-image-wrap img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    display: block;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.developer-card:hover .developer-image-wrap img {
    transform: scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.developer-col-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    position: relative;
    padding-left: clamp(2rem, 4vw, 3rem);
}

/* Línea de acento vertical junto al contenido */
.developer-col-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.developer-col-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 2.4vw, 1.65rem);
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.developer-text {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    flex: 1;
}

.developer-cta {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.developer-cta p {
    font-size: 0.875rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.developer-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.developer-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* Responsive: una columna en móvil */
@media (max-width: 768px) {
    .developer-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .developer-col-image {
        min-height: 220px;
        padding: 2rem 1.5rem;
    }

    .developer-col-image::after {
        display: none;
    }

    .developer-icon-wrap {
        width: 90px;
        height: 90px;
        font-size: 2rem;
    }

    .developer-col-content {
        text-align: center;
        padding-left: clamp(1.5rem, 4vw, 2rem);
    }

    .developer-col-content::before {
        display: none;
    }
}

/* ══════════════════════════════════════
   BLOG
   ══════════════════════════════════════ */
#blog {
    background: #f1f5f9;
    padding: var(--section-padding-y) 0;
}

.blog-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-section-header .section-title-wrap {
    flex: 1;
    min-width: 200px;
}

.blog-section-header .section-title-wrap h2 {
    text-align: left;
}

.blog-section-header .section-title-wrap h2::after {
    left: 0;
    transform: none;
}

.blog-section-header .section-title-wrap p {
    text-align: left;
    margin-bottom: 0;
    margin-top: 0.5rem;
}

.blog-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--dark-color);
    color: white !important;
    padding: 0.7rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    transition: var(--transition);
    white-space: nowrap;
}

.blog-cta-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.2);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
    margin-top: 0;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 6px 20px rgba(0,0,0,0.06);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08), 0 20px 50px rgba(0,0,0,0.06);
    border-color: rgba(37, 99, 235, 0.15);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-image {
    width: 100%;
    height: 192px;
    background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(13, 148, 136, 0.1), transparent 60%);
    pointer-events: none;
}

.blog-category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    color: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.blog-content {
    padding: 26px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-date-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.blog-date {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-date i {
    color: var(--primary-color);
    opacity: 0.85;
}

.blog-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 18px;
    flex-grow: 1;
    line-height: 1.65;
}

.blog-author {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-author-avatar {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.blog-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-footer {
    display: flex;
    gap: 12px;
    margin-top: auto;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.blog-footer .blog-views {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-footer .blog-views i {
    color: var(--primary-color);
    opacity: 0.8;
}

.blog-footer .blog-footer-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-read-more {
    background: var(--dark-color);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    text-decoration: none;
}

.btn-read-more:hover {
    background: var(--primary-color);
    transform: translateX(3px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-share {
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid var(--border-color);
    padding: 7px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
}

.btn-share:hover {
    border-color: var(--dark-color);
    color: var(--dark-color);
}

/* MODAL BLOG */
.blog-modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.blog-modal-header {
    background: var(--dark-color);
    padding: 36px 28px;
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
}

.blog-modal-image {
    width: 100%;
    height: 260px;
    background: linear-gradient(135deg, var(--dark-surface), var(--dark-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    margin-bottom: 22px;
    border-radius: 10px;
}

.blog-modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.blog-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

.blog-modal-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-modal-body {
    padding: 36px 28px;
}

.blog-article-section {
    margin-bottom: 30px;
}

.blog-article-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-article-section p {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 10px;
}

.blog-article-list {
    list-style: none;
    padding: 0;
}

.blog-article-list li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    font-size: 14.5px;
    color: var(--text-color);
    line-height: 1.6;
}

.blog-article-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 16px;
}

.blog-highlight {
    background: #f8fafc;
    border-left: 3px solid var(--accent-color);
    padding: 18px;
    border-radius: 0 8px 8px 0;
    margin: 18px 0;
}

.blog-highlight p {
    margin: 0;
    font-size: 14.5px;
    color: var(--dark-color);
    font-weight: 500;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--border-color);
}

.blog-tag {
    background: #f1f5f9;
    color: var(--text-light);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--border-color);
}

.blog-close-btn {
    background: rgba(255,255,255,0.08);
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.blog-close-btn:hover {
    background: rgba(255,255,255,0.12);
    color: white;
}

/* ══════════════════════════════════════
   PÁGINA BLOG (blog.php)
   ══════════════════════════════════════ */
.page-blog main {
    padding-bottom: 3rem;
}

.blog-page-hero {
    background: linear-gradient(145deg, var(--dark-color) 0%, #1e293b 100%);
    color: white;
    padding: clamp(1.75rem, 5vw, 2.5rem) var(--container-padding);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.blog-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(13, 148, 136, 0.08), transparent);
    pointer-events: none;
}

.blog-page-hero .hero-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.blog-page-hero .hero-label {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.75rem;
}

.blog-page-hero .hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.blog-page-hero .hero-title i { opacity: 0.7; font-size: 0.85em; }

.blog-page-hero .hero-desc {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.5;
}

.blog-page-hero .hero-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.blog-page-hero .hero-back:hover {
    color: white;
    transform: translateX(-3px);
}

.blog-page-hero .hero-back i { transition: var(--transition); }

.page-blog .blog-filters {
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.04);
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    border: 1px solid var(--border-color);
}

.page-blog .blog-filters .search-box {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    padding: 0.7rem 1rem;
    border-radius: var(--border-radius);
    border: 1.5px solid var(--border-color);
    transition: var(--transition);
}

.page-blog .blog-filters .search-box:focus-within {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.06);
}

.page-blog .blog-filters .search-box i { color: var(--text-muted); font-size: 0.9rem; }

.page-blog .blog-filters .search-box input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.875rem;
    color: var(--text-color);
    font-family: inherit;
}

.page-blog .blog-filters .search-box input::placeholder { color: var(--text-muted); }

.page-blog .category-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-blog .category-filters .category-btn {
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 12.5px;
}

.page-blog .blog-grid { margin-bottom: 2.5rem; }

/* Enlaces del blog sin aspecto "marcado": sin subrayado, estilo moderno */
.page-blog .blog-card a {
    text-decoration: none;
}

.page-blog .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.5rem;
    background: white;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.page-blog .pagination-info {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-right: 1.25rem;
    font-weight: 500;
}

.page-blog .pagination-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 0.75rem;
    border: 1.5px solid var(--border-color);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: var(--transition);
    color: var(--text-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-family: inherit;
}

.page-blog .pagination-btn:hover:not(.disabled):not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.06);
}

.page-blog .pagination-btn.active {
    background: var(--dark-color);
    color: white;
    border-color: var(--dark-color);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}

.page-blog .pagination-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.page-blog .pagination-btn.ellipsis {
    min-width: auto;
    padding: 0 0.5rem;
    border-color: transparent;
    background: transparent;
    cursor: default;
    color: var(--text-muted);
}

.page-blog .no-posts {
    text-align: center;
    padding: 4rem 1.5rem;
    color: var(--text-muted);
    background: white;
    border-radius: 16px;
    border: 1px dashed var(--border-color);
}

.page-blog .no-posts i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.35; }
.page-blog .no-posts h3 { color: var(--text-color); font-size: 1.25rem; margin-bottom: 0.5rem; }

@media (max-width: 768px) {
    .blog-page-hero { padding: 1.5rem 1rem; }
    .page-blog .blog-filters { flex-direction: column; align-items: stretch; }
    .page-blog .blog-filters .search-box { min-width: auto; }
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.site-footer {
    background: var(--dark-color);
    color: white;
    padding: 2.5rem 0;
    margin-top: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

.site-footer .container { max-width: 680px; }

.site-footer p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
}

.site-footer .footer-secondary {
    color: var(--accent-color);
    margin-top: 0.375rem;
    display: block;
}

/* ══════════════════════════════════════
   CONTACTO
   ══════════════════════════════════════ */
#contacto {
    background: var(--dark-color);
    color: white;
    padding: var(--section-padding-y) 0;
    position: relative;
    overflow: hidden;
}

#contacto::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 50% 50% at 0% 50%, rgba(37, 99, 235, 0.08), transparent),
        radial-gradient(ellipse 50% 50% at 100% 80%, rgba(13, 148, 136, 0.06), transparent);
    pointer-events: none;
}

#contacto .section-label { color: var(--accent-color); }
#contacto h2, #contacto h2::after { color: white; }
#contacto > .container > p { color: rgba(255,255,255,0.55); }

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    margin-top: 3rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.5rem 0;
}

.info-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--accent-color);
}

.info-text h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    margin-bottom: 4px;
    font-weight: 600;
}

.info-text p {
    font-size: 13.5px;
    color: rgba(255,255,255,0.5);
}

.contact-form {
    background: rgba(255,255,255,0.04);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.06);
    color: white;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
    font-size: 14px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255,255,255,0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-primary {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 13px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ══════════════════════════════════════
   MODALES
   ══════════════════════════════════════ */
.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    animation: fadeIn 0.2s ease;
}

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

.modal-content {
    background: white;
    margin: 4% auto;
    padding: 0;
    border-radius: var(--border-radius-xl);
    width: 90%;
    max-width: 620px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    background: var(--dark-color);
    color: white;
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 50%, rgba(37, 99, 235, 0.12), transparent 50%);
    pointer-events: none;
}

.modal-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.modal-header h2 i {
    font-size: 22px;
    color: var(--accent-color);
}

.close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255,255,255,0.6);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 300;
    position: relative;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.close-btn:active {
    transform: scale(0.95);
}

.modal-body {
    padding: 28px;
    background: white;
}

.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.modal-content::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ══════════════════════════════════════
   CARRITO
   ══════════════════════════════════════ */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.cart-item:hover {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
}

.cart-item::before {
    display: none;
}

.cart-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 14.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-name i {
    color: var(--primary-color);
    font-size: 16px;
}

.cart-item-price {
    font-size: 13px;
    color: var(--text-muted);
}

.cart-item-price strong {
    font-family: 'JetBrains Mono', monospace;
    color: var(--dark-color);
    font-size: 17px;
    font-weight: 700;
}

.remove-btn {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
}

.remove-btn:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.remove-btn i { font-size: 13px; }

.cart-total {
    background: var(--dark-color);
    color: white;
    padding: 20px;
    border-radius: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    text-align: right;
    margin-top: 18px;
}

.checkout-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    margin-top: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
}

.checkout-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.checkout-btn i { font-size: 18px; }

.user-info {
    background: #f8fafc;
    color: var(--text-color);
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    line-height: 1.7;
    font-size: 13.5px;
    border: 1px solid var(--border-color);
}

.user-info i {
    margin-right: 6px;
    color: var(--primary-color);
}

/* ══════════════════════════════════════
   AUTENTICACIÓN
   ══════════════════════════════════════ */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1.5px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 11px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13.5px;
    position: relative;
    font-family: inherit;
}

.auth-tab:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.03);
}

.auth-tab.active {
    color: var(--primary-color);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1.5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.auth-form { display: none; }
.auth-form.active { display: block; }

.auth-form .form-group label {
    color: var(--text-color) !important;
    text-shadow: none !important;
}

.auth-form .form-group label i {
    color: var(--text-muted);
    margin-right: 5px;
}

.auth-form .form-group input {
    background: white;
    border-color: var(--border-color);
    color: var(--text-color);
}

.auth-form .form-group input::placeholder {
    color: var(--text-muted);
}

.auth-form .form-group input:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.password-toggle-wrapper { position: relative; }
.password-toggle-wrapper input { padding-right: 44px !important; }

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 15px;
    padding: 6px;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-btn:hover {
    color: var(--primary-color);
}

.password-toggle-btn i { pointer-events: none; }

/* ══════════════════════════════════════
   NOTIFICACIONES
   ══════════════════════════════════════ */
.notification {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--dark-color);
    color: white;
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    animation: slideInUp 0.35s ease;
    z-index: 3000;
    max-width: 300px;
    border-left: 3px solid var(--accent-color);
    font-size: 14px;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.empty-cart-container {
    text-align: center;
    padding: 60px 20px;
    animation: fadeInUp 0.4s ease;
}

.empty-cart-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
    opacity: 0.2;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 768px) {
    section { padding: 48px 0; }
    section h2 { font-size: 24px; }
    section h2::after { width: 32px; }
    section > .container > p { font-size: 14.5px; }
    nav { gap: 10px; }

    .menu-toggle { display: flex; }
    .nav-links { display: none; }

    .search-filter-bar { flex-direction: column; gap: 12px; margin-bottom: 18px; }
    .search-box { min-width: auto; }
    .categories-tabs { padding: 14px; overflow: hidden; }
    .categories-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        justify-content: flex-start;
        padding-bottom: 6px;
        margin: 0 -4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .categories-list::-webkit-scrollbar { height: 6px; }
    .categories-list::-webkit-scrollbar-track { background: rgba(0,0,0,0.06); border-radius: 3px; }
    .categories-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 3px; }
    .category-btn { padding: 8px 14px; font-size: 12px; flex-shrink: 0; }

    .logo { font-size: 18px; gap: 6px; }
    .logo i { font-size: 22px; }
    .nav-links { gap: 12px; font-size: 12px; }
    .nav-links a { font-size: 12px; }

    .slide h2 { font-size: 26px; }
    .slide p { font-size: 14px; margin-bottom: 14px; }
    .slide-price { font-size: 24px; margin-bottom: 14px; }
    .slider-container { height: 380px; }
    .slide-content { max-width: 90%; }
    .slider-btn { width: 42px; height: 42px; font-size: 18px; }
    .slider-btn.prev { left: 10px; }
    .slider-btn.next { right: 10px; }

    .proyectos-carousel-wrap { padding: 0 44px; }
    .proyectos-carousel-btn { width: 38px; height: 38px; font-size: 14px; }
    .proyecto-card-body { padding: 1.25rem 1.5rem; }
    .proyecto-card-body h3 { font-size: 1.125rem; }

    .productos-grid, .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-section-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .blog-section-header .section-title-wrap h2 { text-align: center; }
    .blog-section-header .section-title-wrap h2::after { left: 50%; transform: translateX(-50%); }
    .blog-section-header .section-title-wrap p { text-align: center; }
    .blog-cta-link { justify-content: center; }

    .product-card { border-radius: 12px; }
    .product-image { height: 160px; font-size: 44px; }
    .product-content { padding: 18px; }
    .product-name { font-size: 15px; }
    .product-price { font-size: 18px; }
    .product-footer { flex-direction: column; }
    .btn-add, .btn-info { width: 100%; font-size: 13px; padding: 11px 16px; }

    .about-container { grid-template-columns: 1fr; gap: 28px; }
    .about-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .stat-item { padding: 16px 10px; }
    .stat-number { font-size: 26px; }
    .image-placeholder { height: 280px; }
    .image-placeholder i { font-size: 60px; }
    .about-content h3 { font-size: 22px; }
    .contact-container { grid-template-columns: 1fr; gap: 24px; }
    .contact-form { padding: 24px; }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        border-radius: 16px;
    }
    .modal-header { padding: 18px 16px; }
    .modal-header h2 { font-size: 17px; }
    .modal-header h2 i { font-size: 20px; }
    .close-btn { font-size: 18px; width: 36px; height: 36px; }
    .modal-body { padding: 20px 16px; }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px;
        gap: 12px;
    }
    .cart-item-info { width: 100%; }
    .remove-btn { width: 100%; margin-top: 0; justify-content: center; }
    .cart-total { font-size: 16px; padding: 16px; }
    .checkout-btn { padding: 14px 18px; font-size: 14px; }
    .auth-tabs { flex-direction: column; }
    .auth-tab { border-bottom: 1px solid var(--border-color); padding: 14px; }
    .auth-tab.active::after { display: none; }

    .form-group input,
    .form-group textarea { font-size: 16px; }
    .info-item { gap: 12px; }
    .info-icon { width: 40px; height: 40px; font-size: 18px; }

    .whatsapp-button {
        width: 56px;
        height: 56px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 600px) {
    body { font-size: 14px; }
    section { padding: 36px 0; }
    header { padding: 0; }

    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .logo { width: auto; justify-content: flex-start; }

    .search-filter-bar { flex-direction: column; gap: 10px; margin-bottom: 14px; }
    .search-box { padding: 10px 12px; font-size: 13px; }
    .categories-tabs { padding: 12px 10px; overflow: hidden; }
    .categories-tabs::after {
        content: '';
        position: absolute;
        top: 12px;
        right: 10px;
        bottom: 20px;
        width: 24px;
        background: linear-gradient(to left, white 30%, transparent);
        pointer-events: none;
        border-radius: 0 8px 8px 0;
    }
    .categories-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        padding-bottom: 8px;
        margin: 0 -2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .categories-list::-webkit-scrollbar { height: 5px; }
    .categories-list::-webkit-scrollbar-track { background: rgba(0,0,0,0.06); border-radius: 3px; }
    .categories-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.25); border-radius: 3px; }
    .category-btn { padding: 8px 14px; font-size: 12px; flex-shrink: 0; min-height: 38px; }
    .category-count { font-size: 10px; }
    .logo { font-size: 17px; }
    .nav-links { width: 100%; justify-content: space-around; gap: 8px; flex-wrap: wrap; }
    .nav-links a::after { display: none; }

    .slide { padding: 36px 15px; }
    .slide h2 { font-size: 21px; margin-bottom: 10px; }
    .slide p { font-size: 13px; margin-bottom: 10px; }
    .slide-price { font-size: 20px; }
    .slider-container { height: 310px; }
    .slider-controls { gap: 8px; padding: 8px 14px; bottom: 18px; }
    .slider-dot { width: 8px; height: 8px; }
    .slider-dot.active { width: 22px; }
    .slider-btn { width: 38px; height: 38px; font-size: 16px; }
    .slider-btn.prev { left: 8px; }
    .slider-btn.next { right: 8px; }
    section h2 { font-size: 20px; }
    section h2::after { width: 28px; }

    .product-image { height: 140px; font-size: 36px; }
    .product-badge { padding: 3px 10px; font-size: 10px; }
    .product-category { font-size: 9px; }
    .product-name { font-size: 14px; }
    .product-description { font-size: 12.5px; }
    .btn-add, .btn-info { font-size: 12px; padding: 9px 12px; }

    .blog-image { height: 140px; font-size: 36px; }
    .blog-title { font-size: 15px; }
    .blog-excerpt { font-size: 12.5px; }
    .blog-card { border-radius: 12px; }
    .blog-modal-title { font-size: 22px; }
    .blog-modal-image { height: 180px; font-size: 52px; }
    .blog-modal-body { padding: 22px 18px; }
    .blog-article-section h3 { font-size: 16px; }
    .btn-read-more, .btn-share { font-size: 11.5px; padding: 8px 12px; }

    .form-group label { font-size: 12px; }
    .form-group input, .form-group textarea { padding: 10px 13px; font-size: 14px; }
    .btn-primary { padding: 11px 18px; font-size: 13px; }
    .modal-content { max-height: 90vh; }
    .product-preview-image { height: 160px; font-size: 52px; }
    .product-preview-title { font-size: 18px; }
    .preview-price { font-size: 24px; }
    .preview-footer { grid-template-columns: 1fr; }
    .preview-footer button { grid-column: auto; }

    .user-info { font-size: 12.5px; padding: 14px; }
    .cart-total { font-size: 15px; }
    .checkout-btn { font-size: 13px; padding: 12px; }
    .notification { font-size: 13px; padding: 12px 16px; width: 90%; right: 5%; }
}

@media (max-width: 480px) {
    .logo { font-size: 15px; }
    .nav-links a { font-size: 11px; }
    .slider-container { height: 270px; }
    .slide h2 { font-size: 19px; }
    .slide p { font-size: 12px; }
    .slide-price { font-size: 18px; }
    .btn-add { font-size: 11px; padding: 8px 11px; }
    .product-content { padding: 14px; }
    .about-stats { grid-template-columns: 1fr; gap: 10px; }
    .stat-item { padding: 16px; }
    .stat-number { font-size: 28px; }
    .image-placeholder { height: 230px; }
    .image-placeholder i { font-size: 50px; }
    .image-placeholder p { font-size: 11px; }
    .about-content h3 { font-size: 19px; }
    .whatsapp-button { width: 50px; height: 50px; font-size: 24px; }
    .modal-content { margin: 35% auto; }
    .preview-footer { gap: 8px; }
}