/* =========================================
   PALETA CORPORATIVA SEYPRO & VARIABLES
========================================= */
:root {
    --seypro-blue: #0072ce;
    --seypro-orange: #ff6f00;
    --seypro-grey: #607d8b;
    --seypro-light: #A6B7FF;
    
    /* Sombras suaves minimalistas basadas en tus referencias */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 15px 35px rgba(0, 114, 206, 0.15);
}
/* =========================================
   CLASES UTILITARIAS CORPORATIVAS
   (Conectan el HTML con las variables del :root)
========================================= */

/* Para colores de texto */
.text-seypro-blue { 
    color: var(--seypro-blue) !important; 
}

.text-seypro-orange { 
    color: var(--seypro-orange) !important; 
}

.text-seypro-grey { 
    color: var(--seypro-grey) !important; 
}

/* Para colores de fondo (backgrounds) */
.bg-seypro-blue { 
    background-color: var(--seypro-blue) !important; 
}

.bg-seypro-orange { 
    background-color: var(--seypro-orange) !important; 
}

.bg-seypro-light { 
    background-color: var(--seypro-light) !important; 
}

body {
    background-color: #f4f7f6; /* Fondo gris muy claro para resaltar la tarjeta blanca */
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* =========================================
   COMPONENTES UI (Tarjetas, Inputs, Botones)
========================================= */

/* Tarjeta Principal Flotante */
.card-custom {
    border: none;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    background: #ffffff;
    transition: all 0.3s ease;
}

/* Inputs de texto y selectores (Estilo Píldora) */
.form-control, .form-select {
    border-radius: 50px !important;
    padding: 0.85rem 1.5rem;
    border: 1.5px solid #e2e8f0;
    background-color: #f8fafc;
    font-size: 0.95rem;
    color: #334155;
    transition: all 0.3s ease;
}

/* Textarea (El estilo píldora deforma las cajas grandes, usamos un radio suave acorde) */
textarea.form-control {
    border-radius: 20px !important;
}

/* Efecto Focus (Cuando haces clic en la caja) */
.form-control:focus, .form-select:focus {
    border-color: var(--seypro-light);
    box-shadow: 0 0 0 4px rgba(166, 183, 255, 0.25);
    background-color: #ffffff;
    outline: none;
}

/* Etiquetas (Labels) */
.form-label {
    font-weight: 600;
    color: var(--seypro-grey);
    margin-left: 10px;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

/* Botones estilo píldora con degradado moderno */
.btn-seypro-primary {
    background: linear-gradient(135deg, var(--seypro-blue), #005bb5);
    color: white;
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(0, 114, 206, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-seypro-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: white;
}

.btn-seypro-secondary {
    background-color: transparent;
    color: var(--seypro-grey);
    border: 1.5px solid #cbd5e1;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-seypro-secondary:hover {
    background-color: #f1f5f9;
    color: #475569;
    border-color: #94a3b8;
}

/* Navbar moderno */
.navbar-custom {
    background: linear-gradient(90deg, var(--seypro-blue), #00569e);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* =========================================
   CUSTOM SELECT (Choices.js) ESTILO PÍLDORA
========================================= */
.choices {
    margin-bottom: 0;
}
/* La caja del input */
.choices[data-type*="select-one"] .choices__inner {
    border-radius: 50px !important;
    padding: 0.45rem 1.5rem !important;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    min-height: 48px;
    display: flex;
    align-items: center;
    box-shadow: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #334155;
}
/* Efecto Focus del Select */
.choices[data-type*="select-one"].is-focused .choices__inner {
    border-color: var(--seypro-light);
    box-shadow: 0 0 0 4px rgba(166, 183, 255, 0.25);
    background-color: #ffffff;
}
/* La caja desplegable (Lista de opciones) */
.choices__list--dropdown {
    border-radius: 20px !important; /* Bordes curvos en la lista */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important; /* Sombra elegante */
    border: 1px solid #e2e8f0 !important;
    margin-top: 8px;
    padding: 10px !important;
    z-index: 10;
}
/* Las opciones individuales */
.choices__list--dropdown .choices__item {
    border-radius: 12px;
    padding: 10px 15px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}
/* Cuando pasas el mouse por encima de una opción */
.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: var(--seypro-blue) !important;
    color: white !important;
}

/* =========================================
   CATÁLOGO DE PRODUCTOS (VISTA CLIENTE)
========================================= */
.card-product {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0,0,0,0.04) !important;
}

.card-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 114, 206, 0.1);
}

.product-img-wrapper {
    height: 200px;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-product:hover .product-img {
    transform: scale(1.03); /* Ligero zoom al pasar el mouse */
}

/* Limitar texto a 2 líneas para uniformidad de las tarjetas */
.text-clamp {
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden;
}

.btn-add-cart {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* =========================================
   CATÁLOGO DE PRODUCTOS - DISEÑO MINIMALISTA SEYPRO
========================================= */
/* Banner más suave y redondeado */
.hero-banner {
    background: linear-gradient(135deg, var(--seypro-blue) 0%, #005bb5 100%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 114, 206, 0.08);
}

/* Tarjetas calcadas del estilo del formulario (Bordes suaves y redondos) */
.card-product {
    border: 1px solid #e2e8f0 !important;
    border-radius: 24px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-product:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 114, 206, 0.08);
}

/* Imagen con separador sutil */
.product-img-wrapper {
    height: 190px;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-product:hover .product-img {
    transform: scale(1.02);
}

/* Etiqueta de categoría más fina y limpia */
.badge-category {
    background-color: #f8fafc;
    color: var(--seypro-grey);
    font-weight: 500;
    font-size: 0.75rem;
    border: 1px solid #e2e8f0;
}

/* Texto de descripción más ligero */
.text-clamp {
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden;
    line-height: 1.5;
    font-size: 0.9rem;
    color: #64748b !important;
}

/* Botón Naranja refinado, menos tosco */
.btn-seypro-orange-cta {
    background: linear-gradient(135deg, var(--seypro-orange), #e66400);
    color: white;
    border: none;
    font-weight: 500;
    padding: 8px 20px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.15);
    transition: all 0.2s ease;
}

.btn-seypro-orange-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 111, 0, 0.25);
    color: white;
}

/* =========================================
   CARRITO DE COMPRAS - INPUT CANTIDAD
========================================= */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    opacity: 1; 
}

.input-cantidad {
    width: 80px !important; /* Forzamos un ancho pequeño y elegante */
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding-left: 0;
    padding-right: 0;
    border-radius: 12px !important;
}

.input-cantidad:focus {
    border-color: var(--seypro-blue);
    box-shadow: none;
    background-color: #ffffff;
}

/* =========================================
   MÓDULO DE AUTENTICACIÓN (LOGIN / REGISTRO)
========================================= */
.auth-card {
    max-width: 900px;
    border-radius: 24px;
    background-color: #ffffff;
}

.auth-sidebar {
    background: linear-gradient(135deg, var(--seypro-blue) 0%, #004c8c 100%);
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
}

.auth-tab {
    background: transparent;
    border: none;
    color: #94a3b8;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.auth-tab:hover {
    color: var(--seypro-blue);
}

.auth-tab.active {
    color: var(--seypro-blue);
    border-bottom-color: var(--seypro-blue);
}

.auth-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-input {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 10px 15px;
}

.auth-input:focus {
    background-color: #ffffff !important;
    border-color: var(--seypro-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 114, 206, 0.1);
}

.btn-seypro-blue {
    background-color: var(--seypro-blue);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-seypro-blue:hover {
    background-color: #005bb5;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 114, 206, 0.2);
    color: white;
}

/* =========================================
   LOGOTIPO CORPORATIVO
========================================= */
.logo-login {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-navbar {
    max-height: 45px;
    width: auto;
    object-fit: contain;
}

/* =========================================
   EFECTOS DEL CATÁLOGO DE PRODUCTOS 
   ========================================= */

/* Contenedor de la imagen */
.product-img-wrapper {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* Ajustamos el borde superior para que sea exactamente igual al de tu card (20px) */
    border-radius: 20px 20px 0 0; 
}
/* Imagen base con transición fluida */
.product-img-wrapper .product-img {
    transition: transform 0.4s ease-in-out;
}

/* Capa superpuesta (Lupa + Texto) */
.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 114, 206, 0.85); /* Azul Seypro corporativo con 85% de opacidad */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 2;
}

/* Acciones al pasar el mouse (Hover) */
.product-img-wrapper:hover .img-overlay {
    opacity: 1;
}
.product-img-wrapper:hover .product-img {
    transform: scale(1.08); /* Zoom sutil a la imagen */
}

/* Efecto Blur para el fondo del Modal */
.modal-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro semitransparente */
}

/* =========================================
   ESTILOS DEL INDEX (Página Principal)
   ========================================= */

/* 1. EL FONDO: Reemplaza el background-color de .index-body por esto: */
.index-body {
    /* Un degradado que hace que el centro brille sutilmente */
    background: radial-gradient(circle at 30% 50%, #0088ff 0%, #0072CE 40%, #004b87 100%);
    height: 100vh;
    width: 100vw;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    margin: 0;
}

.index-header {
    flex: 0 0 auto; 
    z-index: 10;
}

.index-main {
    flex: 1 1 auto; 
    display: flex;
    align-items: center; 
}

/* Redes Sociales */
.social-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.social-img:hover {
    transform: scale(1.15);
}

/* Persona anclada a la base (Ajustada más arriba) */
.hero-person {
    height: 88vh; /* Un pelín más pequeño para que no choque arriba */
    width: auto;
    object-fit: contain;
    position: absolute;
    bottom: 0.2vh; /* ¡Aquí lo subimos! Mientras mayor el número, más sube */
    left: 45%; 
    transform: translateX(-50%);
    filter: drop-shadow(5px 5px 15px rgba(0,0,0,0.4));
    z-index: 5;
    pointer-events: none; 
    animation: slideInLeft 1s ease-out forwards;
}

/* =========================================
   SWIPER 3D (Carrusel de Productos)
   ========================================= */
.mySwiper {
    width: 100%;
    padding: 10px 0; /* Menos espacio arriba/abajo */
}

/* Tarjetas Verticales (MÁS PEQUEÑAS PARA QUE ENTRE EL BOTÓN) */
.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 240px;  /* Reducido (antes 280) */
    height: 360px; /* Reducido (antes 420) */
    border-radius: 20px;
    box-sizing: border-box;
    transition: border 0.3s ease; 
}

.swiper-slide-shadow-left,
.swiper-slide-shadow-right {
    border-radius: 20px;
}

/* Borde blanco grueso SOLO para la tarjeta del centro */
.swiper-slide.swiper-slide-active {
    border: 5px solid #ffffff;
}

/* Estilo de las flechas de navegación */
.swiper-button-next, .swiper-button-prev {
    color: #FF6F00 !important; 
    background-color: rgba(255, 255, 255, 0.95); 
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100 !important; /* Absoluta prioridad sobre cualquier otra capa */
    pointer-events: auto !important; /* Obligamos a que escuche los clics */
    transition: transform 0.2s ease, background-color 0.2s ease;
}

/* Forzamos a las flechas a irse a los extremos del contenedor */
.swiper-button-prev {
    left: 5px !important; 
}
.swiper-button-next {
    right: 5px !important;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: #ffffff;
    transform: scale(1.1); 
}
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 1.6rem !important; 
    font-weight: bold;
}

/* 2. ANIMACIÓN DEL BOTÓN LATIDO */
.btn-pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(255, 111, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 111, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 111, 0, 0); }
}

/* 3. ANIMACIONES DE ENTRADA (Aparición suave al abrir la página) */
.hero-person {
    animation: slideInLeft 1s ease-out forwards;
}

.index-main .col-md-7 {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0; /* Inicia invisible */
}

@keyframes slideInLeft {
    from { transform: translateX(-60%); opacity: 0; }
    to { transform: translateX(-50%); opacity: 1; }
}

@keyframes fadeInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* =========================================
   ANIMACIONES DE ENTRADA AL HACER SCROLL (INTERSECTION OBSERVER)
   ========================================= */

/* Estado inicial oculto y desplazado */
.animate-on-scroll {
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Animación: Deslizar hacia arriba */
.fade-up {
    transform: translateY(40px);
}

/* Animación: Deslizar desde la izquierda */
.fade-right {
    transform: translateX(-40px);
}

/* Animación: Deslizar desde la derecha */
.fade-left {
    transform: translateX(40px);
}

/* Clases activas (agregadas por JS cuando entran en pantalla) */
.animate-on-scroll.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0);
}

/* Retrasos para efecto cascada (ej. Tarjetas de precios) */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }