/* EAF Performance - Custom Styles */

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a0a0a;
    color: #f3f4f6;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #d10310;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b10209;
}

/* Selección de texto */
::selection {
    background-color: rgba(209, 3, 16, 0.3);
    color: white;
}

/* Animaciones personalizadas */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 20px rgba(209, 3, 16, 0.3);
    }
    100% {
        box-shadow: 0 0 30px rgba(209, 3, 16, 0.6);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Clases de utilidad */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-slide-down {
    animation: slideDown 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Gradiente de texto */
.text-gradient-red {
    background: linear-gradient(to right, #d10310, #ef4444, #d10310);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Botones */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background-color: #d10310;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #b10209;
    box-shadow: 0 0 20px rgba(209, 3, 16, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background-color: transparent;
    color: #d10310;
    font-weight: 600;
    border: 2px solid #d10310;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: #d10310;
    color: white;
    box-shadow: 0 0 20px rgba(209, 3, 16, 0.5);
    transform: translateY(-2px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    color: white;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Cards */
.card-service {
    position: relative;
    background: linear-gradient(to bottom right, #1a1a1a, #0a0a0a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.5s ease;
    overflow: hidden;
}

.card-service:hover {
    border-color: rgba(209, 3, 16, 0.5);
    box-shadow: 0 0 20px rgba(209, 3, 16, 0.5);
}

.card-vehicle {
    position: relative;
    background-color: #1a1a1a;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
}

.card-vehicle:hover {
    border-color: rgba(209, 3, 16, 0.5);
    box-shadow: 0 0 20px rgba(209, 3, 16, 0.5);
}

/* Overlays */
.overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0a0a0a, rgba(10, 10, 10, 0.8), transparent);
}

.overlay-hover {
    position: absolute;
    inset: 0;
    background-color: rgba(209, 3, 16, 0);
    transition: all 0.5s ease;
}

.card-service:hover .overlay-hover,
.card-vehicle:hover .overlay-hover {
    background-color: rgba(209, 3, 16, 0.1);
}

/* Zoom de imagen */
.img-zoom {
    transition: transform 0.7s ease;
}

.card-vehicle:hover .img-zoom {
    transform: scale(1.1);
}

/* Inputs */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: white;
    transition: all 0.3s ease;
}

.input-field::placeholder {
    color: #6b7280;
}

.input-field:focus {
    outline: none;
    border-color: #d10310;
    box-shadow: 0 0 0 3px rgba(209, 3, 16, 0.2);
}

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

/* Navigation */
.nav-link {
    color: #d1d5db;
    transition: color 0.3s ease;
    font-weight: 500;
    text-decoration: none;
}

.nav-link:hover {
    color: white;
}

.nav-link-active {
    color: #d10310;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-red {
    background-color: rgba(209, 3, 16, 0.2);
    color: #d10310;
    border: 1px solid rgba(209, 3, 16, 0.3);
}

/* Secciones */
.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 1024px) {
    .section-padding {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

.container-custom {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-custom {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-custom {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Títulos de sección */
.section-title {
    font-size: 2.25rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3.75rem;
    }
}

.section-subtitle {
    font-size: 1.25rem;
    color: #9ca3af;
    max-width: 48rem;
}

@media (min-width: 768px) {
    .section-subtitle {
        font-size: 1.5rem;
    }
}

/* Grid de servicios */
.grid-services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-services {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Efectos especiales */
.shadow-glow-red {
    box-shadow: 0 0 20px rgba(209, 3, 16, 0.5);
}

.shadow-glow-red-lg {
    box-shadow: 0 0 40px rgba(209, 3, 16, 0.6);
}

/* Backdrop blur */
.backdrop-blur-custom {
    backdrop-filter: blur(12px);
}

/* Línea decorativa */
.line-red {
    height: 0.25rem;
    width: 5rem;
    background: linear-gradient(to right, #d10310, #b10209);
    border-radius: 9999px;
}

/* Loading states */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Transiciones suaves */
.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
