/* ===== ESTILOS GENERALES ===== */
.gradient-border {
    border: 1px solid transparent;
    background: linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #1a1a1a 0%, #6b6b6b 50%, #1a1a1a 100%) border-box;
}

.team-glow {
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.04), 0 0 120px rgba(0, 0, 0, 0.02);
}

.connected-dots {
    position: relative;
}

.connected-dots::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c0c0c0, transparent);
    z-index: 0;
}

/* ===== HERO BACKGROUND CON IMAGEN LOCAL ===== */
section#hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Fondo de respaldo oscuro mientras carga la imagen */
    background-color: #0a0a0a;
}

/* Capa de la imagen de fondo */
section#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/corp.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Efecto parallax sutil */
    background-attachment: fixed;
    z-index: 0;
}

/* Capa de superposición oscura para asegurar la legibilidad del texto */
section#hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Capa oscura con opacidad ajustada */
    background: rgba(0, 0, 0, 0.35);
    z-index: 0;
}

/* Asegurar que el contenido esté por encima de las capas de fondo */
section#hero .content {
    position: relative;
    z-index: 1;
}

/* ===== NAVBAR SCROLL EFFECT ===== */
.navbar-scrolled {
    background-color: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.navbar-scrolled .nav-link,
.navbar-scrolled span,
.navbar-scrolled button {
    color: #f5f5f5 !important;
}

.navbar-scrolled .bg-evolve-black {
    background-color: white !important;
}

.navbar-scrolled .bg-evolve-black svg {
    color: #0a0a0a !important;
}

/* ===== MEJORAS PARA TARJETAS DE SERVICIO ===== */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card ul li {
    transition: all 0.2s ease;
}

.service-card ul li:hover {
    transform: translateX(4px);
    color: #0a0a0a;
}

.service-card .rounded-md {
    transition: all 0.2s ease;
}

.service-card:hover .rounded-md {
    background-color: #e5e5e5;
    transform: scale(1.05);
}

/* ===== MEJORAS PARA EL ROADMAP ===== */
/* Animación de los puntos del timeline */
@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(10, 10, 10, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(10, 10, 10, 0);
    }
}

#enfoque .hidden.lg\:block.bg-evolvi-black.rounded-full,
#enfoque .hidden.lg\:block.bg-evolvi-dark.rounded-full,
#enfoque .hidden.lg\:block.bg-evolvi-accent.rounded-full {
    animation: pulse-dot 3s infinite;
}

/* Hover en las tarjetas del roadmap */
#enfoque .bg-white.rounded-2xl {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#enfoque .bg-white.rounded-2xl:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

/* Transición suave en los badges de fase */
#enfoque .inline-flex.items-center.gap-2.rounded-full {
    transition: transform 0.3s ease;
}

#enfoque .inline-flex.items-center.gap-2.rounded-full:hover {
    transform: scale(1.05);
}

/* Línea del timeline con gradiente animado */
@media (min-width: 1024px) {
    #enfoque .lg\:grid + .hidden.lg\:block {
        animation: fadeInUp 0.6s ease-out both;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}


/* ===== REEL DE TECNOLOGÍAS (INFINITO) ===== */
@keyframes reel-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.reel-track {
    animation: reel-scroll 40s linear infinite;
    display: flex;
    gap: 2.5rem;
}

/* Pausar animación al hover */
.reel-track:hover {
    animation-play-state: paused;
}

/* Efecto de gradiente en los bordes para simular continuidad */
#enfoque .overflow-hidden.relative::before,
#enfoque .overflow-hidden.relative::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

#enfoque .overflow-hidden.relative::before {
    left: 0;
    background: linear-gradient(to right, #f5f5f5 0%, transparent 100%);
}

#enfoque .overflow-hidden.relative::after {
    right: 0;
    background: linear-gradient(to left, #f5f5f5 0%, transparent 100%);
}

/* Tarjetas del reel */
.reel-item {
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.reel-item:hover {
    transform: translateY(-4px);
    border-color: rgba(10, 10, 10, 0.2);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Ajuste para imágenes */
.reel-item img {
    max-width: 48px;
    max-height: 48px;
    filter: grayscale(0%);
    transition: filter 0.3s ease;
}

.reel-item:hover img {
    filter: grayscale(0%) brightness(1.1);
}


/* ===== SECCIÓN DE CONTACTO CON FONDO Y FORMULARIO ===== */
#contacto {
    background-color: #0a0a0a; /* Fallback por si la imagen no carga */
}

#contacto img {
    filter: grayscale(30%);
}

/* Estilo de los inputs al hacer focus */
#contacto input:focus,
#contacto select:focus,
#contacto textarea:focus {
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.1);
}

/* Placeholder estilizado */
#contacto ::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Hover en el botón de envío */
#contacto button[type="submit"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#contacto button[type="submit"]:hover {
    transform: translateY(-1px);
}

/* Ajuste responsive */
@media (max-width: 1023px) {
    #contacto .grid.lg\:grid-cols-2 {
        gap: 2rem;
    }
}