/* ═══════════════════════════════════════════════════
   TuMundoSeguro - CSS Personalizado v2
   Tema oscuro/azul/blanco con efectos modernos
   ═══════════════════════════════════════════════════ */

/* ── Desplazamiento suave ── */
html {
    scroll-behavior: smooth;
}

/* ── Barra de desplazamiento personalizada ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0A1628;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00A8E8, #1E3A5F);
    border-radius: 50px;
}

/* ═══════════════════════════════════════════════════
   ESTADOS DEL NAVBAR
   ═══════════════════════════════════════════════════ */

.navbar-top {
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-top .nav-text-color {
    color: #fff;
}

.navbar-top .nav-subtext-color {
    color: #94a3b8;
}

.navbar-top .nav-link-color {
    color: #cbd5e1;
}

.navbar-top .nav-link-color:hover {
    color: #00A8E8;
    background: rgba(0, 168, 232, 0.1);
}

.navbar-scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid rgba(0, 168, 232, 0.15);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.navbar-scrolled .nav-text-color {
    color: #ffffff;
}

.navbar-scrolled .nav-subtext-color {
    color: #94a3b8;
}

.navbar-scrolled .nav-link-color {
    color: #cbd5e1;
}

.navbar-scrolled .nav-link-color:hover {
    color: #00A8E8;
    background: rgba(0, 168, 232, 0.12);
}

/* Menu link hover & active effects */
.nav-link-item {
    position: relative;
    overflow: hidden;
}

.nav-link-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00A8E8, #60a5fa);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link-item:hover::after {
    width: 60%;
}

.nav-link-active::after {
    width: 60% !important;
}

.nav-link-active {
    color: #00A8E8 !important;
    background: rgba(0, 168, 232, 0.1) !important;
}

/* ═══════════════════════════════════════════════════
   SECCIÓN PRINCIPAL (HERO)
   ═══════════════════════════════════════════════════ */

.hero-gradient {
    background: linear-gradient(135deg, #050d1a 0%, #0A1628 30%, #1E3A5F 60%, #0A1628 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 168, 232, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(30, 58, 95, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(0, 168, 232, 0.08) 0%, transparent 50%);
    animation: heroShift 12s ease-in-out infinite alternate;
}

@keyframes heroShift {
    0% {
        transform: translateX(0) scale(1);
    }

    50% {
        transform: translateX(-20px) scale(1.05);
    }

    100% {
        transform: translateX(20px) scale(1);
    }
}

.hero-grid {
    background-image:
        linear-gradient(rgba(0, 168, 232, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 168, 232, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 168, 232, 0.35);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.8;
    }
}

/* ═══════════════════════════════════════════════════
   CARRUSEL GENERAL
   ═══════════════════════════════════════════════════ */

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.85) 0%, rgba(10, 22, 40, 0.4) 60%, transparent 100%);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 168, 232, 0.5);
    border-color: rgba(0, 168, 232, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 16px;
}

.carousel-btn.next {
    right: 16px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #00A8E8;
    box-shadow: 0 0 12px rgba(0, 168, 232, 0.6);
    width: 28px;
    border-radius: 8px;
}

/* ═══════════════════════════════════════════════════
   SLIDER PROMOCIONAL (deslizamiento horizontal – una imagen a la vez)
   ═══════════════════════════════════════════════════ */

.promo-slider-container {
    position: relative;
    width: 100%;
    max-width: 753px;
    height: 400px;
    margin: 0 auto;
    background: #0a1628;
    overflow: hidden;
    border-radius: 1rem;
}

@media (max-width: 768px) {
    .promo-slider-container {
        max-width: 100%;
        height: 280px;
    }
}

.promo-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.promo-slide {
    min-width: 100%;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a1628;
}

.promo-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.promo-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.promo-slider-btn:hover {
    background: rgba(0, 168, 232, 0.6);
    border-color: rgba(0, 168, 232, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.promo-slider-btn.prev {
    left: 12px;
}

.promo-slider-btn.next {
    right: 12px;
}

.promo-slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.promo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-dot.active {
    background: #00A8E8;
    box-shadow: 0 0 10px rgba(0, 168, 232, 0.6);
    width: 26px;
    border-radius: 8px;
}

/* ═══════════════════════════════════════════════════
   ANIMACIONES
   ═══════════════════════════════════════════════════ */

.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 100ms !important;
}

.delay-200 {
    transition-delay: 200ms !important;
}

.delay-300 {
    transition-delay: 300ms !important;
}

.delay-400 {
    transition-delay: 400ms !important;
}

/* Anillo pulsante para botón de acción */
.pulse-ring {
    position: relative;
}

.pulse-ring::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid rgba(0, 168, 232, 0.4);
    animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseRing {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.08);
        opacity: 0;
    }
}

/* Círculo azul pulsante del logo */
.logo-pulse-ring {
    position: relative;
    display: inline-flex;
}

.logo-pulse-ring::before,
.logo-pulse-ring::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(0, 168, 232, 0.6);
    animation: logoPulse 2s ease-in-out infinite;
}

.logo-pulse-ring::after {
    inset: -8px;
    border-color: rgba(0, 168, 232, 0.3);
    animation-delay: 0.5s;
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
        box-shadow: 0 0 0 0 rgba(0, 168, 232, 0.4);
    }

    50% {
        transform: scale(1.1);
        opacity: 0;
        box-shadow: 0 0 20px 5px rgba(0, 168, 232, 0.2);
    }
}

/* Carrusel de imágenes de servicios */
.services-carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8;
    background: #0a1628;
    overflow: hidden;
    border-radius: 1rem;
}

.services-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.services-carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.services-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #0a1628;
}

.services-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(10, 22, 40, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.services-carousel-btn:hover {
    background: rgba(0, 168, 232, 0.5);
    border-color: rgba(0, 168, 232, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.services-carousel-btn.prev {
    left: 10px;
}

.services-carousel-btn.next {
    right: 10px;
}

.services-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.svc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.svc-dot.active {
    background: #00A8E8;
    box-shadow: 0 0 10px rgba(0, 168, 232, 0.6);
    width: 22px;
    border-radius: 6px;
}

/* ═══════════════════════════════════════════════════
   INDICADOR DE PASOS DEL COTIZADOR
   ═══════════════════════════════════════════════════ */

.step-indicator {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.4s ease;
}

.step-indicator.inactive {
    background: #1E293B;
    color: #64748b;
}

.step-indicator.active {
    background: linear-gradient(135deg, #00A8E8, #1E3A5F);
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 168, 232, 0.35);
}

.step-indicator.completed {
    background: #10b981;
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.step-connector {
    flex: 1;
    height: 3px;
    background: #1E293B;
    border-radius: 50px;
    margin: 0 8px;
    transition: background 0.4s ease;
}

.step-connector.filled {
    background: linear-gradient(90deg, #10b981, #00A8E8);
}

/* ═══════════════════════════════════════════════════
   ESTILOS DE TARJETAS E INSIGNIAS
   ═══════════════════════════════════════════════════ */

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Variante de tarjeta oscura */
.card-dark {
    background: linear-gradient(145deg, #111827, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.card-dark:hover {
    border-color: rgba(0, 168, 232, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 168, 232, 0.05);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.badge-info {
    background: rgba(0, 168, 232, 0.1);
    color: #00A8E8;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

/* ═══════════════════════════════════════════════════
   UTILIDAD GLASSMORPHISM (EFECTO CRISTAL)
   ═══════════════════════════════════════════════════ */

.glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
    background: rgba(10, 22, 40, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ═══════════════════════════════════════════════════
   ACORDEÓN (PREGUNTAS FRECUENTES)
   ═══════════════════════════════════════════════════ */

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-content.open {
    max-height: 500px;
}

.accordion-arrow {
    transition: transform 0.3s ease;
}

.accordion-arrow.rotated {
    transform: rotate(180deg);
}

/* ═══════════════════════════════════════════════════
   SECCIONES OSCURAS
   ═══════════════════════════════════════════════════ */

.section-dark {
    background: #0A1628;
    color: #ffffff;
}

.section-dark-gradient {
    background: linear-gradient(180deg, #0A1628 0%, #111827 50%, #0A1628 100%);
}

/* ═══════════════════════════════════════════════════
   COTIZADOR v3 — Producto cards, carrito, formulario
   ═══════════════════════════════════════════════════ */

/* Product card in cotizador */
.cot-product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cot-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.cot-product-card.ring-1 {
    box-shadow: 0 0 20px rgba(0, 168, 232, 0.1);
}

/* Cart summary scroll */
#cart-items::-webkit-scrollbar {
    width: 4px;
}

#cart-items::-webkit-scrollbar-thumb {
    background: rgba(0, 168, 232, 0.3);
    border-radius: 10px;
}

/* Form inputs */
.cot-input {
    font-size: 14px;
    transition: all 0.3s ease;
}

.cot-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.1);
}

.cot-input.border-red-500 {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Quantity buttons */
.qty-btn {
    transition: all 0.2s ease;
}

.qty-btn:hover {
    transform: scale(1.1);
}

.qty-btn:active {
    transform: scale(0.95);
}

/* Admin table row hover */
#admin-tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Admin modal */
#admin-modal .absolute:first-child {
    cursor: pointer;
}

/* Step panel transitions */
.step-panel {
    animation: stepFadeIn 0.4s ease-out;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add-to-cart button pulse on hover */
.add-to-cart:hover {
    animation: btnPulse 0.4s ease;
}

@keyframes btnPulse {
    50% {
        transform: scale(1.05);
    }
}

/* ═══════════════════════════════════════════════════
   TARJETAS DE PRODUCTO EN COTIZADOR
   ═══════════════════════════════════════════════════ */

/* Hover en tarjetas de producto */
.producto-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.producto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Tarjeta seleccionada (con producto en carrito) */
.producto-card.ring-1 {
    box-shadow: 0 0 20px rgba(0, 168, 232, 0.1);
}

/* Borde rojo para errores de validación */
.cot-input.border-red-400 {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}