/* CSS Personalizado - Estilo PREMIUM Apple/Tech */

body {
    /* Gradiente premium TECNOLÓGICO: Azul oscuro -> Negro Profundo -> Destello Blanco suave */
    /* Hacemos los colores mucho más fuertes e intensos para que se visualicen mejor */
    background: linear-gradient(135deg, #0d2b45 0%, #000000 45%, #000000 25%, #a0a0ac 100%);
    background-color: #000; /* Color base si el gradiente falla */
    background-attachment: fixed; /* El fondo se queda quieto al hacer scroll, dando efecto Parallax */
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
}

/* Logo MyApol - Manzana con M superpuesta */
.logo-myapol {
    position: relative;
    display: inline-block;
    font-size: 1.8rem;
    line-height: 1;
}

.logo-letter {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.55em;
    font-weight: 900;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #1a1f24;
    pointer-events: none;
}

/* Navbar estilo Apple */
.navbar {
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(145deg, #0d324d 0%, #000000 100%);
    border-radius: 20px;
    padding: 4rem 2rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Efecto de luz detrás del banner */
.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.1) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Títulos */
.text-gradient {
    background: linear-gradient(90deg, #ffffff 0%, #007aff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Estilos del Carrito Lateral */
.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #282c34;
    border-radius: 8px;
}

.cart-item-info { flex: 1; }
.cart-item-title { font-size: 0.9rem; font-weight: bold; margin-bottom: 2px; }
.cart-item-price { font-size: 0.85rem; color: #007aff; }

.hover-scale { 
    transition: all 0.25s ease; 
}

.hover-scale:hover,
.hover-scale:focus {
    transform: scale(1.15) !important;
    background-color: #007aff !important;
    border-color: #007aff !important;
    box-shadow: 0 0 15px rgba(0, 122, 255, 0.6) !important;
    color: #ffffff !important;
}



/* Tarjetas de productos y comentarios */
.card {
    background-color: rgba(25, 28, 33, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Solo animar tarjetas que sean interactivas */
.card-hoverable:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 122, 255, 0.15);
    border-color: rgba(0, 122, 255, 0.3) !important;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Botones personalizados */
.btn-filtro {
    border-radius: 30px;
    transition: 0.3s;
}

.btn-accent {
    background-color: #007aff;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    transition: 0.3s;
}

.btn-accent:hover {
    background-color: #0056b3;
    color: white;
    transform: scale(1.05);
}

/* Botones de Call To Action (Animados) */
/* Animación de latido (pulse) */
@keyframes pulse-yellow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(255, 193, 7, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

.badge-warning-pulse {
    background-color: #ffc107;
    color: #000;
    font-weight: bold;
    animation: pulse-yellow 2s infinite;
}

.btn-cta {
    background: linear-gradient(45deg, #ffc107, #ff9800);
    color: #000;
    border: none;
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    transition: 0.3s;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.btn-cta:hover {
    background: linear-gradient(45deg, #ff9800, #ffc107);
    transform: scale(1.05);
    color: #000;
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.6);
}

/* Inputs de texto y formularios */
.form-control {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-radius: 30px;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #007aff !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 122, 255, 0.25) !important;
    color: white !important;
}

::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Caja de búsqueda más redonda */
#buscador {
    padding-left: 1.5rem;
}

/* Textarea de comentarios menos redondo */
#texto-comentario {
    border-radius: 16px;
}

/* Separador en comentarios */
.comment-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* =========================================
   FOOTER INVERSO (CLARO) - CRÉDITOS DE AUTOR
   ========================================= */
.footer-inverso {
    /* Color inverso al Navbar oscuro: Un blanco crudo/gris perla muy elegante */
    background-color: rgba(245, 245, 247, 0.95);
    backdrop-filter: blur(10px); /* Efecto Glassmorphism */
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5); /* Sombra hacia arriba que corta con el fondo negro */
    margin-top: auto; /* Empuja el footer siempre hacia abajo */
}

/* Enlace a Portafolio (Degnisdev) */
.signature-link {
    transition: all 0.3s ease;
    text-shadow: 0px 0px 0px rgba(13, 110, 253, 0);
}

.signature-link:hover {
    color: #0d6efd !important; /* Azul más vivo al pasar el mouse */
    text-shadow: 0 0 12px rgba(13, 110, 253, 0.6); /* Destello de neón azul */
    letter-spacing: 0.5px; /* Animación sutil de estiramiento */
}

/* Banner de Redes Sociales - FULL WIDTH */
.social-banner {
    /* Usamos el fondo oscuro del navbar para que sea consistente */
    background-color: rgba(0, 0, 0, 0.9); 
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%; /* Lado a lado */
    margin-top: 50px;
}

.social-icon {
    font-size: 2rem; /* Iconos más imponentes */
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.social-icon:hover {
    transform: scale(1.2) translateY(-5px);
}

/* Colores de marca al pasar el mouse */
.si-tiktok:hover { color: #00f2ea; } /* Color cyan de tiktok */
.si-facebook:hover { color: #1877F2; }
.si-instagram:hover { color: #E4405F; }
.si-youtube:hover { color: #CD201F; }


/* Botón Flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #FFF;
}

/* Pequeña animación de pulso para llamar la atención */
@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
    animation: pulse-whatsapp 2s infinite;
}

/* Galería de miniaturas en detalle */
.thumbnail-galeria {
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.6;
}
.thumbnail-galeria:hover,
.thumbnail-activa {
    border-color: #007aff !important;
    opacity: 1 !important;
    transform: scale(1.08);
}

