/* BLAX LLANTAS - Global Stylesheet
Consolidación de estilos para Index, TPMS, Servicios y Paquetes
*/

:root {
    --blax-red: #c41e24;
    --blax-black: #0a0a0a;
    --blax-dark-gray: #1a1a1a;
    --blax-accent: #ff2d35;
}


/* Base & Typography */

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--blax-black);
    color: #ffffff;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-orbitron {
    font-family: 'Orbitron', sans-serif;
}


/* Custom Utilities for Tailwind */

.bg-blax-red {
    background-color: var(--blax-red);
}

.text-blax-red {
    color: var(--blax-red);
}

.border-blax-red {
    border-color: var(--blax-red);
}


/* Layout Components */

.skew-box {
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
}

.skew-box-sm {
    clip-path: polygon(2% 0%, 100% 0%, 98% 100%, 0% 100%);
}

.diagonal-bg {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
}


/* UI Effects */

.glass-effect {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-gradient {
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 1) 100%);
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--blax-red);
    box-shadow: 0 20px 25px -5px rgba(196, 30, 36, 0.2);
}


/* Animations */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes scanline {
    0% {
        bottom: 100%;
    }

    100% {
        bottom: 0%;
    }
}

.scanline::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--blax-red);
    opacity: 0.3;
    animation: scanline 4s linear infinite;
}


/* Specific Section Styles */

.step-number {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    color: transparent;
    font-size: 5rem;
    line-height: 1;
}


/* Swiper Customization (if used) */

.swiper-pagination-bullet {
    background: #555 !important;
}

.swiper-pagination-bullet-active {
    background: var(--blax-red) !important;
}


/* Mobile Adjustments */

@media (max-width: 768px) {

    .skew-box,
    .skew-box-sm {
        clip-path: none;
        /* Mejor legibilidad en móviles si es necesario */
    }
}

.tech-pattern {
    background-image: radial-gradient(circle at 2px 2px, #222 1px, transparent 0);
    background-size: 32px 32px;
}

.glass-card {
    /*background: rgba(255, 255, 255, 0.05);*/
    backdrop-filter: blur(10px);
    /*border: 1px solid rgba(255, 255, 255, 0.05);*/
    /* Tu nueva forma irregular */
    clip-path: polygon(0% 0%, 85% 0%, 100% 15%, 100% 100%, 15% 100%, 0% 85%);
    transition: background-color 0.4s ease, filter 0.4s ease;
}


/*.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 40%, transparent 60%, rgba(196, 30, 36, 0.2) 100%);
    z-index: 1;
    pointer-events: none;
}*/

.glass-card:hover {
    background: rgba(190, 12, 12, 0.295);
}

.package-glass-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    clip-path: polygon(0% 0%, 85% 0%, 100% 15%, 100% 100%, 15% 100%, 0% 85%);
    transition: background-color 0.4s ease, filter 0.4s ease;
}

.package-glass-card:hover {
    background: rgba(255, 255, 255, 0.10);
}

.skew-box {
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0% 100%);
}


/* Swiper Custom Styles */

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    background: var(--blax-red);
    opacity: 1;
}

.btn-racing {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-block;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--blax-red);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
    font-family: sans-serif;
}

.glow-png {
    /* Sintaxis: eje-x eje-y difuminado color */
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.95));
}


/* Estilo para asegurar que el video cubra todo el fondo */

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.top-menu-link {
    font-size: 18px !important;
}


/* --- CONTENEDOR TIPO MÓDULO --- */

.package-view {
    border-left: 2px solid var(--blax-red);
    background: linear-gradient(90deg, rgba(196, 30, 36, 0.03) 0%, transparent 100%);
}


/* --- PRECIOS DINÁMICOS --- */

.tier-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--blax-border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tier-card:hover,
.tier-card.active {
    border-color: var(--blax-red);
    background: rgba(196, 30, 36, 0.05);
}


/* --- SERVICIOS ENLAZADOS --- */

.linked-service {
    position: relative;
    height: 150px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    border: 1px solid var(--blax-border);
    transition: transform 0.4s ease;
}

.linked-service img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: grayscale(1);
    transition: all 0.5s ease;
}

.linked-service:hover img {
    opacity: 0.6;
    filter: grayscale(0);
    transform: scale(1.1);
}

.linked-service h4 {
    position: relative;
    z-index: 10;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 2px;
}


/* --- FORMULARIO DE AGENDADO (REF: IMAGEN) --- */

.form-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: block;
    font-style: italic;
}

.input-blax {
    background: #080808;
    border: 1px solid #1a1a1a;
    color: white;
    padding: 1rem;
    width: 100%;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: border-color 0.3s;
}

.input-blax:focus {
    outline: none;
    border-color: var(--blax-red);
}

.btn-submit-blax {
    background: var(--blax-red);
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 1.25rem;
    width: 100%;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-submit-blax:hover {
    background: #a3191e;
    letter-spacing: 5px;
}

.grid-dots {
    background-image: radial-gradient(#333 1px, transparent 1px);
    background-size: 15px 15px;
}


/**Detalle servicios*/

.hero-service {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-image: linear-gradient(to right, rgba(10, 10, 10, 1) 20%, rgba(10, 10, 10, 0.4) 100%), url('https://images.unsplash.com/photo-1486006396113-c7b349741f15?q=80&w=2000');
}


/* Formulario Horizontal Multilínea/Fila */

.booking-bar {
    background: #0f0f0f;
    border-top: 1px solid var(--blax-border);
    border-bottom: 1px solid var(--blax-border);
    position: relative;
    z-index: 50;
}

.input-detail-group-blax {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.input-detail-field-wrapper {
    flex: 1;
    min-width: 150px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.input-detail-label-min {
    font-family: 'Orbitron', sans-serif;
    font-size: 8px;
    color: var(--blax-red);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 12px 0 12px;
}

.input-detail-horizontal {
    background: transparent;
    border: none;
    color: white;
    padding: 10px 12px 14px 12px;
    width: 100%;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-detail-horizontal:focus {
    outline: none;
    background: rgba(196, 30, 36, 0.05);
}


/* Corregir alto del botón para que coincida con el contenedor del input */

.btn-blax-horizontal {
    background: var(--blax-red);
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    padding: 0 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    /* Alto igual a la suma de label + input */
}

.btn-blax-horizontal:hover {
    background: #ff1e26;
    letter-spacing: 4px;
}


/* Estilo para los inputs de fecha y hora */

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}


/* Cards de Paquetes */

.package-card {
    background: #0f0f0f;
    border: 1px solid var(--blax-border);
    clip-path: polygon(0% 0%, 85% 0%, 100% 15%, 100% 100%, 15% 100%, 0% 85%);
    transition: all 0.4s ease;
}

.package-card:hover {
    border-color: var(--blax-red);
    transform: translateY(-10px);
}

.inclusion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #888;
    padding: 6px 0;
    text-transform: uppercase;
}


/* Navegación Circular */

.service-detail-link {
    transition: all 0.5s;
    filter: grayscale(1);
    opacity: 0.6;
}

.service-detail-link:hover {
    filter: grayscale(0);
    opacity: 1;
}


/**Procesamiento de pagos*/


/* --- ESTILOS PARA EL MODAL DE PAGOS BLAX --- */


/* Fondo oscurecido con desenfoque de cristal */

.modal-overlay {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* Compatibilidad Safari */
}


/* Contenedor con corte poligonal asimétrico (Tech Style) */

.skew-box {
    clip-path: polygon(3% 0, 100% 0, 97% 100%, 0% 100%);
}


/* Estilización de inputs dentro del modal */

#payment-modal input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    transition: all 0.3s ease;
}

#payment-modal input:focus {
    border-color: var(--blax-red) !important;
    outline: none;
    background: rgba(255, 255, 255, 0.1) !important;
}


/* Estado deshabilitado para botones durante el procesamiento */

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}


/**Sección de llantas*/


/* Estilos específicos para la sección de Llantas de Alto Desempeño */


/* 1. Máscara de corte angular para el contenedor de la imagen */

.tire-mask {
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    border-left: 4px solid var(--blax-red);
    background-color: #1a1a1a;
    /* Correspondiente a zinc-800 */
    padding: 0.5rem;
    /* 2 unidades de Tailwind */
    overflow: hidden;
}


/* 2. Efecto de resplandor rojo detrás de la imagen */

.red-glow {
    filter: drop-shadow(0 0 15px rgba(196, 30, 36, 0.4));
}


/* 3. Estilos para la imagen interna (Transiciones y Grayscale) */

.tire-mask img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 1000ms cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}


/* 4. Efecto Hover para la imagen */

.tire-mask:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}


/* 5. Caja inclinada (Skew) usada en botones y etiquetas decorativas */

.skew-box {
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0% 100%);
}


/**Listas por default*/


/* --- BLAX CUSTOM LISTS --- */


/* Clase base para la lista (UL) */

.blax-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}


/* Estilo para cada elemento (LI) */

.blax-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    transition: transform 0.2s ease;
}


/* El "bullet" personalizado (Cuadrado inclinado estilo Racing) */

.blax-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 10px;
    height: 10px;
    background-color: var(--blax-red);
    transform: skewX(-20deg);
    /* Mantiene la estética skew de tu sitio */
    box-shadow: 0 0 8px var(--blax-red);
}


/* Efecto hover sutil */

.blax-list li:hover {
    transform: translateX(5px);
    color: #fff;
}


/* --- VARIANTE: TECH / PROTOCOL --- 
   Ideal para fichas técnicas o detalles de paquetes
*/

.blax-list-tech li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.blax-list-tech li::before {
    content: "\f054";
    /* Icono de flecha de FontAwesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    background: none;
    box-shadow: none;
    color: var(--blax-red);
    font-size: 0.8rem;
    top: 0.6rem;
}


/* Estilo para resaltar etiquetas dentro de la lista */

.blax-list b,
.blax-list strong {
    color: var(--blax-red);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
}

/**modal de agenda*/

.modal-agenda-overlay {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

/* Estilización de scrollbar para el cuerpo del modal */
.modal-agenda-body-scroll::-webkit-scrollbar {
    width: 4px;
}

.modal-agenda-body-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.modal-agenda-body-scroll::-webkit-scrollbar-thumb {
    background: var(--blax-red);
}

/* Personalización de Flatpickr */
.flatpickr-calendar {
    background: #111 !important;
    border: 1px solid var(--blax-red) !important;
    box-shadow: 0 0 20px rgba(196, 30, 36, 0.3) !important;
}

.flatpickr-day.selected {
    background: var(--blax-red) !important;
    border-color: var(--blax-red) !important;
}

input:focus {
    border-color: var(--blax-red) !important;
    background: rgba(196, 30, 36, 0.05) !important;
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-error {
    border-color: var(--blax-red) !important;
    animation: shake 0.5s;
}

.glass-card-agenda {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Para Chrome, Safari, Edge y Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Para Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* Toggle Switch Estilizado */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--blax-red);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* Clases específicas para el sistema de agendado */
.modal-paqueteagenda-overlay {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
}

.input-paqueteagenda-field {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.8rem;
    width: 100%;
    outline: none;
    transition: all 0.3s;
    font-family: 'Rajdhani', sans-serif;
}

.input-paqueteagenda-field:focus {
    border-color: var(--blax-red);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(196, 30, 36, 0.2);
}

.input-paqueteagenda-field option {
    background: #0a0a0a;
    color: white;
}

.btn-paqueteagenda-submit {
    background-color: var(--blax-red);
    color: white;
    transition: all 0.3s ease;
}

.btn-paqueteagenda-submit:hover:not(:disabled) {
    background-color: white;
    color: black;
    transform: scale(1.02);
}

.btn-paqueteagenda-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Personalización de Flatpickr para Blax */
.flatpickr-calendar {
    background: #111 !important;
    border: 1px solid #333 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8) !important;
}

.flatpickr-day.selected {
    background: var(--blax-red) !important;
    border-color: var(--blax-red) !important;
}

.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover {
    background: #222 !important;
}

/* Estilos para el carrusel lateral en el Hero */
.hero-carousel-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.hero-carousel-item {
    min-width: 100%;
    height: 100%;
}

.hero-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2) contrast(1.1);
}

.hero-carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.h-dot {
    width: 25px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.h-dot.active {
    background: #c41e24;
    /* blax-red */
    width: 40px;
}