/* --- VARIABLES DE COLOR --- */
:root {
    --bg-dark: #070B14;       /* Fondo principal oscuro */
    --bg-card: #121826;       /* Fondo de tarjetas y botones secundarios */
    --accent-blue: #2B5CFF;   /* Azul vibrante */
    --text-white: #FFFFFF;
    --text-gray: #8A92A6;
    --border-color: #1F2937;
    --green-dot: #10B981;
}

/* --- RESET Y BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    /* Fondo punteado sutil (opcional, simula el de tu imagen) */
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- HEADER --- */
.header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Línea sutil abajo */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar {
    display: flex;
    gap: 30px;
}

.navbar a {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: var(--text-white);
}

/* --- BOTONES --- */
.btn-primary {
    background-color: var(--accent-blue);
    color: var(--text-white);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #1c42cc;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    transition: border-color 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--text-gray);
}

/* --- HERO SECTION --- */
.hero {
    padding: 80px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 550px;
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(43, 92, 255, 0.1);
    color: var(--text-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(43, 92, 255, 0.2);
}

.dot-green {
    width: 6px;
    height: 6px;
    background-color: var(--green-dot);
    border-radius: 50%;
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.text-blue {
    color: var(--accent-blue);
}

.hero-text p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

/* --- ESTADÍSTICAS --- */
.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.stat-item h4 {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-item p {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 0;
}

/* --- HERO IMAGE & BADGES --- */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.image-wrapper {
    position: relative;
    max-width: 500px;
}

.image-wrapper img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Flotantes sobre la imagen */
.floating-badge {
    position: absolute;
    border-radius: 12px;
    padding: 12px 20px;
    backdrop-filter: blur(10px);
}

.badge-top-right {
    top: 20px;
    right: -20px;
    background-color: var(--accent-blue);
    display: flex;
    flex-direction: column;
}

.badge-top-right .badge-small {
    font-size: 0.7rem;
    opacity: 0.8;
}

.badge-top-right strong {
    font-size: 1.2rem;
}

.badge-bottom-left {
    bottom: 20px;
    left: -40px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge-bottom-left .badge-text {
    display: flex;
    flex-direction: column;
}

.badge-bottom-left strong {
    font-size: 0.9rem;
}

.badge-bottom-left span {
    font-size: 0.7rem;
    color: var(--text-gray);
}

/* --- SECCIÓN SERVICIOS --- */
.services {
    padding: 60px 0;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    gap: 40px;
}

.services-title-wrapper {
    flex: 1;
}

.section-subtitle {
    display: inline-block;
    background-color: rgba(43, 92, 255, 0.1);
    color: var(--accent-blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border: 1px solid rgba(43, 92, 255, 0.2);
}

.services-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.services-header-text {
    color: var(--text-gray);
    font-size: 1rem;
    max-width: 380px;
    line-height: 1.5;
    padding-bottom: 5px; /* Alineación visual con el título */
}

/* --- GRID DE TARJETAS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas de igual tamaño */
    gap: 30px;                             /* Espaciado entre tarjetas */
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(43, 92, 255, 0.2);
}

/* Contenedor de iconos */
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border: 1px solid transparent;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1; /* Hace que el texto ocupe el espacio y las etiquetas se alineen abajo */
}

/* --- BADGES / ETIQUETAS INFERIORES --- */
.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* --- SISTEMA DE COLORES ESPECÍFICOS PARA CADA TARJETA --- */

/* Azul (PC / Entrega) */
.icon-blue { background-color: rgba(43, 92, 255, 0.1); color: #2B5CFF; border-color: rgba(43, 92, 255, 0.2); }
.badge-blue { background-color: rgba(43, 92, 255, 0.08); color: #537FFF; }
.badge-blue .badge-dot { background-color: #2B5CFF; }

/* Púrpura (Impresoras / Marcas) */
.icon-purple { background-color: rgba(147, 51, 234, 0.1); color: #A855F7; border-color: rgba(147, 51, 234, 0.2); }
.badge-purple { background-color: rgba(147, 51, 234, 0.08); color: #C084FC; }
.badge-purple .badge-dot { background-color: #A855F7; }

/* Verde (Mantenimiento / Plan) */
.icon-green { background-color: rgba(16, 185, 129, 0.1); color: #10B981; border-color: rgba(16, 185, 129, 0.2); }
.badge-green { background-color: rgba(16, 185, 129, 0.08); color: #34D399; }
.badge-green .badge-dot { background-color: #10B981; }

/* Naranja (Software / Windows) */
.icon-orange { background-color: rgba(245, 158, 11, 0.1); color: #F59E0B; border-color: rgba(245, 158, 11, 0.2); }
.badge-orange { background-color: rgba(245, 158, 11, 0.08); color: #FBBF24; }
.badge-orange .badge-dot { background-color: #F59E0B; }

/* Rojo (Datos / Éxito) */
.icon-red { background-color: rgba(239, 68, 68, 0.1); color: #EF4444; border-color: rgba(239, 68, 68, 0.2); }
.badge-red { background-color: rgba(239, 68, 68, 0.08); color: #F87171; }
.badge-red .badge-dot { background-color: #EF4444; }

/* Cyan / Celeste (Domicilio / Ciudad) */
.icon-cyan { background-color: rgba(6, 182, 212, 0.1); color: #06B6D4; border-color: rgba(6, 182, 212, 0.2); }
.badge-cyan { background-color: rgba(6, 182, 212, 0.08); color: #22D3EE; }
.badge-cyan .badge-dot { background-color: #06B6D4; }

/* =========================================
   DISEÑO RESPONSIVE (MEDIA QUERIES)
   ========================================= */

/* --- TABLETS Y PANTALLAS MEDIANAS (hasta 1024px) --- */
@media (max-width: 1024px) {
    /* Ajustamos el tamaño del título principal */
    .hero-text h1 {
        font-size: 3.5rem;
    }

    /* La grilla de servicios pasa a 2 columnas en vez de 3 */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- CELULARES (hasta 768px) --- */
@media (max-width: 768px) {
    /* Header: Apilamos el logo, el menú y el botón */
    .header-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .navbar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    /* Hero Section: Todo en una columna */
    .hero {
        padding: 40px 0;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 20px; /* Centra el subtítulo */
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-text p {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Estadísticas: Se apilan para que no queden apretadas */
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        border-top: none;
        padding-top: 10px;
    }

    .stat-item {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 15px;
        width: 100%;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    /* Imagen y tarjetas flotantes en celular */
    .hero-image {
        margin-top: 30px;
        justify-content: center;
    }

    .image-wrapper {
        width: 100%;
        max-width: 400px;
    }

    /* Metemos los badges hacia adentro para evitar scroll horizontal */
    .badge-top-right {
        top: 10px;
        right: 10px;
        transform: scale(0.85);
        transform-origin: top right;
    }

    .badge-bottom-left {
        bottom: 10px;
        left: 10px;
        transform: scale(0.85);
        transform-origin: bottom left;
    }

    /* Sección de Servicios en celular */
    .services {
        padding: 60px 0;
    }

    .services-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .services-header h2 {
        font-size: 2rem;
    }

    /* La grilla de servicios pasa a 1 sola columna */
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* --- CELULARES MUY CHICOS (hasta 480px) --- */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%; /* Botones de ancho completo para que sea más fácil tocarlos */
    }
}

html {
    scroll-behavior: smooth;
}

/* --- HEADER --- */
.header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    
    /* Agregamos esto para que se quede fijo */
    position: sticky;
    top: 0;
    z-index: 1000; /* Asegura que el header siempre esté por encima de todo el contenido */
    
    /* Le damos un fondo semi-transparente con efecto blur (vidrio esmerilado) */
    background-color: rgba(7, 11, 20, 0.85); /* Usa tu color --bg-dark pero con 85% de opacidad */
    backdrop-filter: blur(12px); /* Crea el efecto difuminado por detrás */
    -webkit-backdrop-filter: blur(12px); /* Para compatibilidad con Safari */
}

.footer {
    background-color: var(--bg-dark);
    padding: 50px 0 20px; /* Reducimos el padding superior de 80px a 50px */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px; /* Achicamos el espacio entre columnas */
    margin-bottom: 30px; /* Reducimos el espacio antes del copyright a la mitad */
}

/* Marca */
.footer-brand .logo {
    display: inline-block;
    margin-bottom: 10px; /* Antes era 20px */
}

.brand-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 10px; /* Antes era 20px */
    max-width: 350px;
}

/* Listas de Enlaces */
.footer-links h4 {
    color: var(--text-white);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px; /* Antes era 25px */
}

.footer-links li {
    margin-bottom: 8px; /* Juntamos más los links (antes 15px) */
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Footer Bottom (Copyright y Redes) */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px; /* Antes era 30px */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    font-size: 0.85rem;
}
@media (max-width: 1024px) {
/* Pasa de 4 columnas a 2 columnas */
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 30px;
    }
}

@media (max-width: 768px) {
/* Todo a 1 sola columna y centrado */
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .brand-desc {
        margin: 0 auto 20px;
    }
    
    /* El copy y las redes se apilan */
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* =========================================
   PÁGINA DE CONTACTO
   ========================================= */
.contact-page {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* La columna derecha es un pelín más ancha */
    gap: 80px;
    align-items: start;
}

/* --- COLUMNA IZQUIERDA --- */
.contact-info h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.contact-desc {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 450px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(43, 92, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-blue);
    background-color: rgba(43, 92, 255, 0.05);
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-text span {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.info-text strong {
    font-size: 1rem;
    color: var(--text-white);
    font-weight: 500;
}

.map-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-gray);
    transition: border-color 0.3s ease;
}

.map-box:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

/* --- COLUMNA DERECHA (FORMULARIO) --- */
.form-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
}

.form-card h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Estilos de los inputs, select y textarea */
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    background-color: #0d121c; /* Fondo súper oscuro para los campos */
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 14px 16px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background-color: #111827; /* Se aclara apenitas al hacer foco */
}

/* Cambiar color del placeholder */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #4B5563;
}

/* El select en dark mode a veces requiere este truco */
.contact-form select option {
    background-color: var(--bg-card);
    color: var(--text-white);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 10px;
}

.form-footer-text {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 20px;
}
@media (max-width: 768px) {
/* Ajustes para la página de Contacto en celular */
    .contact-grid {
        grid-template-columns: 1fr; /* Pasa todo a 1 columna */
        gap: 50px;
    }
    
    .contact-info h1 {
        font-size: 2.8rem;
    }
    
    .form-card {
        padding: 25px; /* Achicamos el padding interno de la tarjeta */
    }
    
    .form-row {
        grid-template-columns: 1fr; /* Apilamos Nombre y Teléfono */
        gap: 0;
    }
}

/* =========================================
   SECCIÓN NOSOTROS (IDÉNTICO AL DISEÑO)
   ========================================= */
.about {
    padding: 100px 0;
    background-color: var(--bg-dark); 
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; /* Antes estaba en 80px, lo bajamos para dar más ancho */
    align-items: start;
}
/* --- COLUMNA IZQUIERDA --- */
.badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(43, 92, 255, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(43, 92, 255, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 30px; /* Reducimos la separación hacia abajo */
    line-height: 1.2;
    letter-spacing: -1px;
    max-width: 100%; /* Le sacamos el límite de 450px que apretaba el texto */
}

.features {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Antes estaba en 35px, ahora quedan más juntitos */
    margin-bottom: 30px;
}

.feature-content p {
    color: var(--text-gray);
    font-size: 0.9rem; /* Lo achicamos un pelo para que ocupe menos renglones */
    line-height: 1.5;
    max-width: 100%;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 45px;
    height: 45px;
    background-color: #111827;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-white);
    flex-shrink: 0; /* Evita que el ícono se achique */
}

.feature-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feat-num {
    color: var(--accent-blue);
    font-size: 0.9rem;
    font-weight: 700;
}


/* Caja CTA de la izquierda */
.about-cta-box {
    background: linear-gradient(145deg, #111827, #0d121c);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cta-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.cta-text p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* --- COLUMNA DERECHA (TESTIMONIOS) --- */
.testimonial-heading {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.testimonial-card {
    background-color: #111827;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.stars {
    color: #F59E0B; /* Amarillo dorado exacto */
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.testimonio-texto {
    font-style: italic;
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.client-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
}

/* Colores de los avatares */
.bg-blue { background-color: #1D4ED8; } /* Azul oscuro */
.bg-purple { background-color: #4C1D95; } /* Violeta */
.bg-green { background-color: #047857; } /* Verde oscuro */

.client-info {
    display: flex;
    flex-direction: column;
}

.client-info strong {
    font-size: 0.95rem;
    color: var(--text-white);
}

.client-info span {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.feature-icon svg {
    width: 20px;
    height: 20px;
}

/* --- RESPONSIVE PARA NOSOTROS --- */
@media (max-width: 992px) {
    .about-grid { 
        grid-template-columns: 1fr; /* Pasa a 1 columna en tablets y celulares */
        gap: 60px; 
    }
    
    .section-title { font-size: 2.5rem; }
    
    .about-cta-box { 
        flex-direction: column; 
        text-align: center; 
    }
}

.about-cta-box .btn-primary {
    white-space: nowrap; /* Obliga al texto a quedar en una sola línea */
    flex-shrink: 0;      /* Evita que la caja aplaste al botón */
}


/* =========================================
   PÁGINA DE PRODUCTOS
   ========================================= */
.products-page {
    padding: 80px 0;
}

/* Encabezado */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    gap: 40px;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 15px;
    letter-spacing: -1px;
}

.header-right p {
    color: var(--text-gray);
    max-width: 300px;
    line-height: 1.5;
}

/* Filtros */
.products-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

/* Grilla de productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas */
    gap: 25px;
}

/* Tarjeta de producto */
.prod-card {
    background-color: #0b1018; /* Un poco más oscuro que las tarjetas de servicios */
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.prod-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.prod-img-box {
    position: relative;
    width: 100%;
    height: 180px;
    background-color: #111827;
}

.prod-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Etiquetas sobre la imagen */
.prod-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    z-index: 2;
}

/* Colores de las etiquetas */
.badge-teal { background-color: rgba(13, 148, 136, 0.2); color: #2DD4BF; border: 1px solid rgba(45, 212, 191, 0.2); }
.badge-orange { background-color: rgba(217, 119, 6, 0.2); color: #FBBF24; border: 1px solid rgba(251, 191, 36, 0.2); }
.badge-blue { background-color: rgba(37, 99, 235, 0.2); color: #60A5FA; border: 1px solid rgba(96, 165, 250, 0.2); }
.badge-red { background-color: rgba(220, 38, 38, 0.2); color: #F87171; border: 1px solid rgba(248, 113, 113, 0.2); }
.badge-purple { background-color: rgba(124, 58, 237, 0.2); color: #C084FC; border: 1px solid rgba(192, 132, 252, 0.2); }
.badge-dark { background-color: rgba(255, 255, 255, 0.1); color: #D1D5DB; border: 1px solid rgba(255, 255, 255, 0.1); }

/* Info de la tarjeta */
.prod-info {
    padding: 20px;
}

.prod-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    line-height: 1.3;
}

.prod-desc {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.5;
    /* Cortar texto si es muy largo (2 renglones) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prod-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prod-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.btn-agregar {
    background-color: transparent;
    border: 1px solid rgba(43, 92, 255, 0.3);
    color: var(--accent-blue);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-agregar:hover {
    background-color: rgba(43, 92, 255, 0.1);
    border-color: var(--accent-blue);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .products-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .page-title { font-size: 2.8rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .products-grid { grid-template-columns: 1fr; }
}

/* =========================================
   NOTIFICACIÓN DE CARRITO (TOAST)
   ========================================= */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-blue);
    color: white;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(43, 92, 255, 0.4);
    z-index: 10000;
    
    /* Estado inicial (oculto y desplazado hacia abajo) */
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Animación con rebote */
}

/* Estado activo (visible) */
.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Lo hacemos un pelín más oscuro para compensar que sacamos el blur */
    background: rgba(0, 0, 0, 0.75); 
    z-index: 9999;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    /* En vez de animar 'all', animamos solo lo necesario */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    width: 420px;
    max-width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    border-left: 1px solid var(--border-color);
    padding: 25px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    /* Usamos una curva de animación más natural y fluida */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* MAGIA ANTI-LAG: Le avisa a la placa de video que esto se va a mover */
    will-change: transform; 
}

.cart-overlay.active .cart-sidebar {
    transform: translateX(0);
}

/* Estilos internos del carrito */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.cart-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover { color: white; }

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.empty-cart {
    text-align: center;
    color: var(--text-gray);
    margin-top: 40px;
}

.cart-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: auto;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.btn-delete-item {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    cursor: pointer;
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-delete-item:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.cart-client-info {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;
}

.cart-client-info h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: white;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-input::placeholder {
    color: var(--text-gray);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.08);
}

.search-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px auto; /* Centrado y con margen abajo */
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 14px 20px 14px 45px; /* Espacio extra a la izquierda para un ícono invisible */
    border-radius: 30px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    /* Un pequeño truco para poner una lupita con código */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 15px center;
}

.search-input::placeholder {
    color: var(--text-gray);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(43, 92, 255, 0.2);
}

/* =========================================
   BUSCADOR DE PRODUCTOS Y SUGERENCIAS
   ========================================= */
.search-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px auto;
    position: relative; /* Súper importante para que la lista flote justo acá */
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 14px 20px 14px 45px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 15px center;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(43, 92, 255, 0.2);
}

/* El panel flotante de sugerencias */
.search-suggestions {
    position: absolute;
    top: calc(100% + 5px); /* Se pega justo abajo del input */
    left: 0;
    width: 100%;
    background-color: var(--bg-dark); /* Color de fondo de tu web */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    list-style: none;
    padding: 5px 0;
    margin: 0;
    display: none; /* Oculto por defecto */
}

.search-suggestions.active {
    display: block; /* Se muestra cuando JS le da la orden */
}

.suggestion-item {
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent-blue);
}

.footer-asterisco {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px; /* Antes era 30px */
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* =========================================
   ESTILOS FORMULARIO CARRITO & WHATSAPP
   ========================================= */
#cart-paso-2 .form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-family: inherit;
}

#cart-paso-2 .form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.btn-whatsapp {
    background-color: #25D366; /* Color oficial de WhatsApp */
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #1EBE56;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0 5px;
}

.btn-close:hover {
    color: #ff4d4d; /* Se pone rojo al pasar el mouse */
}


.dev-credit a {
    color: var(--accent-blue); /* Usa el mismo color que ya tiene tu web */
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.dev-credit a:hover {
    text-decoration: underline;
    color: #fff;
}