/* =========================================
   1. VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
:root {
    --brand-primary: #e63e28; 
    --brand-dark: #0a0a0a;
    --brand-gray: #1f1f1f;
    --text-light: #f0f0f0;
}

/* --- BLOQUEO DE SCROLLBAR (Full Invisible) --- */
html { scrollbar-width: none; }
body { -ms-overflow-style: none; scrollbar-width: none; overflow-y: scroll; }
::-webkit-scrollbar { display: none; width: 0px; background: transparent; }

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--brand-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

/* =========================================
   2. UTILIDADES
   ========================================= */
.text-danger { color: var(--brand-primary) !important; }
.bg-black { background-color: #000000 !important; }
.letter-spacing-2 { letter-spacing: 2px; }

.btn-danger {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-danger:hover {
    background-color: #c42e1b;
    border-color: #c42e1b;
    box-shadow: 0 0 15px rgba(230, 62, 40, 0.5);
    transform: translateY(-2px);
}
.btn-outline-light:hover {
    color: var(--brand-primary);
    background-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.ohnohoney { opacity: 0; position: absolute; top: 0; left: 0; height: 0; width: 0; z-index: -1; }

/* =========================================
   3. NAVEGACIÓN
   ========================================= */
#mainNav {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.navbar-brand img { transition: transform 0.3s; }
.navbar-brand:hover img { transform: scale(1.05); }
.nav-link { font-size: 0.9rem; font-weight: 500; letter-spacing: 1px; transition: color 0.3s; }
.nav-link.active, .nav-link:hover { color: var(--brand-primary) !important; }

/* =========================================
   4. SERVICIOS (AJUSTE IMÁGENES COMPLETAS)
   ========================================= */
.service-card {
    background-color: #121212;
    border: 1px solid #333;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(230, 62, 40, 0.2);
}

/* AQUÍ ESTÁ EL CAMBIO PRINCIPAL PARA LAS IMÁGENES */
.service-card img {
    transition: transform 0.5s ease;
    /* Reducimos un poco el brillo por defecto para que resalten al pasar el mouse */
    filter: brightness(0.9) contrast(1.1);
    width: 100%;
    /* Altura fija para uniformidad */
    height: 230px; 
    /* CONTAIN: Muestra la imagen entera sin recortar bordes */
    object-fit: contain; 
    /* Fondo negro para rellenar los huecos arriba/abajo */
    background-color: #000; 
}

.service-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1); /* Brillo total al hover */
}

.overlay-hover {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* Gradiente sutil solo en la parte inferior para que se lea el título */
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.9) 100%);
    pointer-events: none; z-index: 1;
}

/* =========================================
   5. EXTRAS
   ========================================= */
header h1 { text-shadow: 2px 2px 20px rgba(0,0,0,0.9); }
header p { text-shadow: 1px 1px 5px rgba(0,0,0,0.9); }
.ratio { border: 1px solid rgba(255, 255, 255, 0.1); transition: border-color 0.3s; }
.ratio:hover { border-color: var(--brand-primary); }
.hover-white:hover { color: white !important; }
.form-control:focus, .form-select:focus {
    background-color: #000; color: #fff; border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.25rem rgba(230, 62, 40, 0.25);
}

/* =========================================
   6. SLIDER INFINITO & LOGO BOX
   ========================================= */
.slider-container {
    height: 180px;
    margin: auto;
    position: relative;
    width: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.slide-track {
    display: flex;
    width: calc(250px * 28 * 2);
    animation: scroll 80s linear infinite;
}

.slide {
    height: 150px; width: 250px; display: flex; align-items: center; justify-content: center; padding: 15px; flex-shrink: 0;
}

.logo-box {
    background-color: #ffffff;
    width: 180px; 
    height: 100px; 
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.logo-box img {
    max-height: 70px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: none;
}

.logo-box:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.slider-container:hover .slide-track { animation-play-state: paused; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 28)); }
}

@media (max-width: 768px) {
    .slide { width: 160px; }
    .logo-box { width: 140px; height: 90px; }
    .logo-box img { max-height: 50px; }
    .slide-track { width: calc(160px * 28 * 2); animation: scroll-mobile 50s linear infinite; }
    @keyframes scroll-mobile {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-160px * 28)); }
    }
}

@media (max-width: 991px) {
    #mainNav { background: #000; }
    header h1 { font-size: 2.5rem; }
}

.modal-img-container {
    display: flex; justify-content: center; align-items: center; background-color: #000; padding: 10px;
}
.modal-img-fit {
    max-height: 85vh; max-width: 100%; width: auto; object-fit: contain;
}

/* =========================================
   7. AJUSTES DE FORMULARIO (NUEVO)
   ========================================= */
/* Quitar flechas (spinners) en inputs numéricos/tel */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button,
input[type=tel]::-webkit-inner-spin-button, 
input[type=tel]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

input[type=number], input[type=tel] {
  -moz-appearance: textfield; /* Firefox */
}