/* ================================================
   INVASSA - Estilos Personalizados
   Colores oficiales: Rojo y Negro
   ================================================ */

/* ------------------------------------------------
   1. VARIABLES CSS (Custom Properties)
   ------------------------------------------------ */
:root {
    /* Colores de marca INVASSA */
    --color-primary: #dc2626;
    /* Rojo principal */
    --color-primary-dark: #b91c1c;
    /* Rojo oscuro */
    --color-primary-light: #ef4444;
    /* Rojo claro */
    --color-primary-50: #fef2f2;
    /* Rojo muy claro (fondos) */
    --color-primary-100: #fee2e2;
    /* Rojo suave */

    /* Colores neutros (escala de negro/gris) */
    --color-black: #000000;
    --color-gray-900: #0a0a0a;
    --color-gray-800: #171717;
    --color-gray-700: #262626;
    --color-gray-600: #404040;
    --color-gray-500: #525252;
    --color-gray-400: #737373;
    --color-gray-300: #a3a3a3;
    --color-gray-200: #d4d4d4;
    --color-gray-100: #f5f5f5;
    --color-gray-50: #fafafa;

    /* Swiper theme color - Rojo */
    --swiper-theme-color: #dc2626;

    /* Tipografía */
    --font-family: 'Inter', sans-serif;

    /* Transiciones */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ------------------------------------------------
   2. RESET Y BASE
   ------------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ------------------------------------------------
   3. COMPONENTES DEL SLIDER (Swiper)
   ------------------------------------------------ */
.swiper-slide {
    height: 100vh;
    background-position: center;
    background-size: cover;
    position: relative;
}

/* Overlay oscuro para legibilidad del texto */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.5) 100%);
    z-index: 10;
}

/* Contenido del slide */
.slide-content {
    position: relative;
    z-index: 20;
}

/* Swiper pagination bullets - Rojo */
.swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--color-primary) !important;
    opacity: 1;
}

/* ------------------------------------------------
   4. ANIMACIONES
   ------------------------------------------------ */

/* Animación suave de rebote */
@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

/* Animación de blob (fondo decorativo) */
@keyframes blob {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.animate-blob {
    animation: blob 7s ease-in-out infinite;
}

/* Animación de pulso para elementos destacados */
@keyframes pulse-red {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(220, 38, 38, 0);
    }
}

.animate-pulse-red {
    animation: pulse-red 2s ease-in-out infinite;
}

/* ------------------------------------------------
   5. EFECTOS Y ESTILOS ESPECIALES
   ------------------------------------------------ */

/* Efecto de hover para las tarjetas de servicios */
.service-card {
    transition: transform var(--transition-normal),
        box-shadow var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(220, 38, 38, 0.15);
}

/* Efecto zoom en imágenes */
.image-zoom {
    transition: transform 700ms ease;
}

.image-zoom:hover {
    transform: scale(1.1);
}

/* Borde rojo en hover para tarjetas */
.service-card:hover {
    border-color: var(--color-primary-light);
}

/* ------------------------------------------------
   6. FORMULARIO DE CONTACTO
   ------------------------------------------------ */
.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    background-color: rgba(10, 10, 10, 0.8);
    border: 2px solid var(--color-gray-700);
    color: white;
    transition: border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.form-input::placeholder {
    color: var(--color-gray-500);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.2);
}

/* ------------------------------------------------
   7. RESPONSIVE - Ajustes móviles
   ------------------------------------------------ */
@media (max-width: 768px) {

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

/* ------------------------------------------------
   8. UTILIDADES ADICIONALES
   ------------------------------------------------ */

/* Ocultar scrollbar pero mantener funcionalidad */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Texto con gradiente rojo */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Botón primario con efecto */
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    transition: all var(--transition-normal);
}

.btn-primary:hover {
    box-shadow: 0 10px 40px -10px rgba(220, 38, 38, 0.5);
    transform: translateY(-2px);
}

/* Línea decorativa roja */
.accent-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    border-radius: 2px;
}


