/* =========================================================
   D&S TECHNOLOGIES LANDING PAGE
   ========================================================= */

html, body {
    overflow-x: hidden;
    width: 100%;
}

/* =========================================================
   SECCIÓN INICIO
   ========================================================= */
.hero-wrapper {
    background-color: #ffffff !important; 
    background-image: url('../../images/recursos/fondosegundadivision.png') !important; 
    background-repeat: no-repeat !important;
    background-position: center bottom !important;
    background-size: cover !important;
    position: relative;
    padding-top: 80px; 
    padding-bottom: 220px; 
    overflow: hidden !important;
}

.celulares-hover-container {
    position: relative;
    display: block;
    width: 105%;
    transform: translate(-2%, 120px); 
    z-index: 10;
}

.celulares-hero-img {
    width: 100% !important; 
    height: auto !important;
    max-width: none;
    transition: opacity 0.4s ease-in-out;
}

.img-base {
    position: relative;
    display: block;
    transform: scale(1.08);
    transform-origin: center bottom; 
}

.btn-sistemas-glow {
    background: linear-gradient(135deg, var(--bs-warning) 0%, var(--bs-orange) 100%) !important;
    border: none !important;
    color: var(--bs-white) !important;
    box-shadow: 0 0 18px rgba(var(--bs-warning-rgb), 0.7) !important; 
    transition: all 0.3s ease-in-out !important;
}

.btn-sistemas-glow:hover {
    box-shadow: none !important;
    transform: translateY(-2px); 
}

.btn-sistemas-orange {
    background: linear-gradient(135deg, var(--bs-warning) 0%, var(--bs-orange) 100%) !important;
    border: none !important;
    color: var(--bs-white) !important;
    transition: all 0.3s ease-in-out !important;
}

.btn-sistemas-orange:hover {
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3) !important;
}

/* =========================================================
   GRID DE SISTEMAS - HOVER Y MARCA DE AGUA
   ========================================================= */

/* Marca de agua horizontal detrás del título */
.horizontal-watermark {
    position: absolute;
    top: 30px; /* Sube o baja según dónde quieras alinearla con el título */
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(6rem, 13vw, 16rem); /* Tipografía responsiva */
    font-weight: 900;
    color: rgba(36, 96, 227, 0.03); /* Color azul extremadamente sutil */
    pointer-events: none;
    letter-spacing: 0.5rem;
    z-index: 0;
    white-space: nowrap;
}

/* Contenedor circular para los logos */
.logo-container {
    width: 90px;
    height: 90px;
    background-color: #f4f6f9; /* Fondo gris/azulado suave por defecto */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    padding: 15px; /* Espaciado interno para que el logo no choque con el borde */
}

.logo-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Configuración base de la tarjeta y textos */
.system-grid-card {
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.system-text, .system-icon { 
    color: var(--bs-heading-color); 
    transition: color 0.3s ease; 
}

.system-text-muted { 
    color: #6c757d; 
    transition: color 0.3s ease; 
}

/* Estado Hover (Degradado Azul) */
.system-grid-card:hover {
    background: linear-gradient(to right, #1a4bd3, #2c72f5) !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(44, 114, 245, 0.25) !important;
}

/* Invertir textos e íconos a blanco en Hover */
.system-grid-card:hover .system-text,
.system-grid-card:hover .system-text-muted,
.system-grid-card:hover .system-icon {
    color: #ffffff !important;
}

/* Poner el círculo blanco puro cuando la tarjeta recibe el hover */
.system-grid-card:hover .logo-container {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* =========================================================
   SECCIÓN DE SISTEMAS Y MARCAS DE AGUA
   ========================================================= */
.system-grid-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.system-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
}

.system-grid-card img {
    object-fit: contain;
}

.vertical-watermark-left {
    position: absolute;
    top: 50%;
    left: -50px;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center center;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(36, 96, 227, 0.04);
    pointer-events: none;
    letter-spacing: 0.2rem;
    white-space: nowrap;
    z-index: 0;
}

.vertical-watermark-right {
    position: absolute;
    top: 50%;
    right: -50px;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: center center;
    font-size: 5rem;
    font-weight: 800;
    color: rgb(255, 255, 255);
    pointer-events: none;
    letter-spacing: 0.2rem;
    white-space: nowrap;
    z-index: 0;
}

@media (min-width: 1400px) {
    .vertical-watermark-left { left: 0; }
    .vertical-watermark-right { right: 0; }
}

.rounded-4 {
    border-radius: 0.8rem !important;
}

/* =========================================================
   SECCIÓN CATÁLOGO
   ========================================================= */
.catalog-section-gradient {
    background: linear-gradient(135deg, #1842b6 0%, #2460E3 100%) !important;
}

.btn-catalog-blue {
    background: linear-gradient(to right, #2c72f5, #5e9bff) !important;
    border: none !important;
    transition: all 0.3s ease;
}

.btn-catalog-blue:hover { 
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 114, 245, 0.4) !important;
}

.btn-catalog-green {
    background: linear-gradient(to right, #25D366, #1da851) !important;
    border: none !important;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4) !important;
    transition: all 0.3s ease;
}

.btn-catalog-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.8) !important;
}

.catalog-book-img {
    max-height: 500px;
    transform: scale(1.15) rotate(8deg);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.catalog-book-img:hover {
    transform: scale(1.15) rotate(0deg);
}

@media (max-width: 991px) {
    .catalog-book-img {
        transform: scale(1) rotate(5deg);
        max-width: 90%;
        margin-top: 2rem;
    }
    
    .catalog-book-img:hover {
        transform: scale(1) rotate(0deg);
    }
}

/* =========================================================
   SECCIÓN TESTIMONIOS
   ========================================================= */
.testimonial-card {
    max-width: 500px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
}

@media (min-width: 992px) {
    .shift-right-lg {
        margin-right: -3rem !important; 
    }
}

.btn-nivox-blue {
    background: linear-gradient(to right, #1a4bd3, #2c72f5) !important;
    border: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-nivox-blue:hover {
    background: linear-gradient(to left, #1a4bd3, #2c72f5) !important;
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(26, 75, 211, 0.4) !important;
}

/* =========================================================
   ANIMACIÓN DE LA TICKETERA (GESTOR DE COLAS)
   ========================================================= */
#contenedor-ticketera {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: bottom center;
}

#contenedor-ticketera.zoom-in {
    transform: scale(1.08);
}

.ticket-slot-container {
    position: absolute;
    top: 65%; 
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 68px;
    overflow: hidden;
    z-index: 2;
}

.ticket-item {
    width: 100%;
    height: auto;
    position: absolute;
    top: -120px;
    transition: top 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.ticket-item.imprimir {
    top: 0;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer-link {
    transition: opacity 0.3s ease, padding-left 0.3s ease;
}

.footer-link:hover {
    opacity: 1 !important;
    padding-left: 5px;
}

.hover-opacity-100 {
    transition: opacity 0.3s ease;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}



/* FLECHA GESTOR DE COLAS*/

.flecha-ticket {
    position: absolute;
    top: 110%;
    left: -60px;
    width: 150px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.9;
}