@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #1f2937;
    padding-top: 0; /* Remover padding-top que podría estar interfiriendo */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Ajuste para el header fixed */
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Animaciones mejoradas */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in-delay-1 {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
    opacity: 0;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
    opacity: 0;
}

.animate-fade-in-delay-4 {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
    opacity: 0;
}

/* Efectos de hover mejorados */
.transform {
    transition: all 0.3s ease;
}

.hover\:scale-102:hover {
    transform: scale(1.02);
}

/* Efectos de cards */
.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

/* Gradientes y efectos de fondo */
.bg-gradient-glow {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    position: relative;
}

.bg-gradient-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 50%);
    pointer-events: none;
}

/* Efectos de navegación mejorados */
.nav-link {
    color: #94a3b8;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

/* Fondo con patrón */
.bg-hero-pattern {
    background-color: #0a0f1a;
    background-image: radial-gradient(circle at 25px 25px, rgba(255, 255, 255, 0.2) 2%, transparent 0%),
                      radial-gradient(circle at 75px 75px, rgba(255, 255, 255, 0.2) 2%, transparent 0%);
    background-size: 100px 100px;
}

/* Efectos de botones mejorados */
.glow-button {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.glow-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: 0.5s;
}

.glow-button:hover::after {
    left: 100%;
}

.glass-button {
    background: #ffffff;
    border: 2px solid #2563eb;
    color: #2563eb;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-button:hover {
    background: #2563eb;
    color: #ffffff;
}

/* Texto brillante */
.glowing-text {
    position: relative;
}

.glowing-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(30px);
    background: linear-gradient(45deg, #2563eb, #4f46e5);
    opacity: 0.2;
    z-index: -1;
}

/* Tarjetas de especialidad */
.specialty-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.4s ease;
}

.specialty-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.icon-wrapper {
    background: #f3f4f6;
    color: #3b82f6;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.specialty-card:hover .icon-wrapper {
    transform: scale(1.1);
    background: #dbeafe;
}

/* Tags de experiencia */
.expertise-tag {
    background: #f3f4f6;
    color: #2563eb;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.expertise-tag:hover {
    background: #dbeafe;
    border-color: #2563eb;
    transform: translateY(-2px);
}

/* Estilos para las tarjetas de herramientas */
.tool-icon-wrapper {
    background: #f3f4f6;
    color: #2563eb;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card:hover .tool-icon-wrapper {
    background: #dbeafe;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    color: #2563eb;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tool-link:hover {
    color: #1d4ed8;
    transform: translateX(4px);
}

/* Estilos para el footer */
.footer-link {
    color: #94a3b8;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #60a5fa;
    padding-left: 4px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #2563eb;
    transform: translateY(-4px);
}

/* Actualizar los estilos base para el tema claro */
body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #1f2937;
}

/* Actualizar las tarjetas de especialidad */
.specialty-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.4s ease;
}

.specialty-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.icon-wrapper {
    background: #f3f4f6;
    color: #3b82f6;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.specialty-card:hover .icon-wrapper {
    transform: scale(1.1);
    background: #dbeafe;
}

/* Actualizar los botones */
.glow-button {
    background: linear-gradient(to right, #2563eb, #4f46e5);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.glass-button {
    background: #ffffff;
    border: 2px solid #2563eb;
    color: #2563eb;
}

.glass-button:hover {
    background: #2563eb;
    color: #ffffff;
}

/* Actualizar la navegación */
.nav-link-light {
    color: #4b5563;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link-light::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(to right, #2563eb, #4f46e5);
    transition: width 0.3s ease;
}

.nav-link-light:hover {
    color: #1f2937;
}

.nav-link-light:hover::after {
    width: 100%;
}

/* Menú móvil - Configuración correcta */
#mobileMenu {
    transition: opacity 0.3s ease;
}

#mobileMenu:not(.hidden) {
    display: flex;
}

#mobileMenu.hidden {
    opacity: 0;
    pointer-events: none;
}

#mobileMenu:not(.hidden) {
    opacity: 1;
}

#mobileMenu .bg-white {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

#mobileMenu:not(.hidden) .bg-white {
    transform: translateX(0);
}

/* Ajustar el scroll-margin para elementos con ancla */
[id] {
    scroll-margin-top: 100px;
}

/* Actualizar las cards de herramientas */
.tool-icon-wrapper {
    background: #f3f4f6;
    color: #2563eb;
}

.card:hover .tool-icon-wrapper {
    background: #dbeafe;
}

.tool-link {
    color: #2563eb;
}

.tool-link:hover {
    color: #1d4ed8;
}

/* Actualizar los tags de experiencia */
.expertise-tag {
    background: #f3f4f6;
    color: #2563eb;
    border: 1px solid #e5e7eb;
}

.expertise-tag:hover {
    background: #dbeafe;
    border-color: #2563eb;
}

/* Actualizar la navegación */
.nav-link-light {
    color: #4b5563;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.nav-link-light::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, #2563eb, #4f46e5);
    transition: width 0.3s ease;
}

.nav-link-light:hover {
    color: #1f2937;
}

.nav-link-light:hover::after {
    width: 100%;
}

/* Actualizar las cards */
.specialty-card {
    background: white;
    border: 1px solid rgba(37, 99, 235, 0.1);
    padding: 2.5rem;
    border-radius: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.specialty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.05), rgba(79, 70, 229, 0.05));
    opacity: 0;
    transition: all 0.4s ease;
}

.specialty-card:hover::before {
    opacity: 1;
}

.specialty-card:hover {
    transform: translateY(-10px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

/* Actualizar los gradientes */
.bg-gradient-custom {
    background: linear-gradient(to right, #2563eb, #4f46e5);
}

/* Botón volver arriba */
#backToTop {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 40;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Mejorar las cards de YouTube */
.youtube-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
}

.youtube-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.youtube-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #f3f4f6;
    overflow: hidden;
}

.youtube-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.youtube-card:hover .youtube-thumbnail img {
    transform: scale(1.05);
}

/* Nuevos estilos para el hero section */
.bg-pattern {
    background-image: radial-gradient(#3b82f6 1px, transparent 1px);
    background-size: 40px 40px;
}

.premium-button {
    position: relative;
    background: linear-gradient(45deg, #2563eb, #4f46e5);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.premium-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.premium-button:hover::before {
    left: 100%;
}

.premium-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.secondary-button {
    background: white;
    color: #2563eb;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: 2px solid #2563eb;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.secondary-button:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

/* Mejorar las expertise tags */
.expertise-tag {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.expertise-tag:hover {
    background: rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

/* Mejorar las animaciones */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

/* Asegurar que todos los textos tengan el contraste adecuado */
.text-gray-600 {
    color: #4B5563; /* Un gris más oscuro para mejor legibilidad */
}

.text-gray-800 {
    color: #1F2937; /* Gris oscuro para títulos */
}

/* Estilos para las tarjetas de testimonios */
.testimonial-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    border-color: #3b82f6;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.02), rgba(79, 70, 229, 0.02));
    opacity: 0;
    transition: all 0.3s ease;
}

.testimonial-card:hover::before {
    opacity: 1;
}

/* Scroll margin for fixed header */
#pedido {
    scroll-margin-top: 40px;
}

/* Estilos para los mensajes de validación del email */
.email-valid {
    border-color: #34D399 !important;
}

.email-invalid {
    border-color: #EF4444 !important;
}

#emailValidationMessage {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

#emailValidationMessage.text-red-500 {
    color: #EF4444;
}
