html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    color: #3E4560; 
    background-color: #FFFFFF; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Patrones y fondos */
.geometry-pattern {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.diagonal-divider {
    background: linear-gradient(135deg, transparent 49.9%, rgba(var(--color-primary-rgb), 0.05) 50%);
}

/* Tarjetas de características */
.feature-card {
    @apply bg-white rounded-lg p-5 shadow-sm relative overflow-hidden transition-all duration-300;
    border-left: 3px solid transparent;
}

.feature-card:hover {
    @apply shadow-md transform -translate-y-1;
    border-left-color: var(--color-accent);
}

.feature-icon {
    @apply w-12 h-12 rounded-lg flex items-center justify-center text-xl mb-4;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    color: white;
}

.feature-card:nth-child(even) .feature-icon {
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
}

/* Contenedor con perspectiva */
.perspective-container {
    @apply relative;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: all 0.5s ease-in-out;
}

.perspective-container:hover {
    transform: scale(1.01);
}

/* Efectos de texto */
.section-heading {
    @apply text-3xl md:text-4xl font-bold text-text-heading;
    letter-spacing: -0.02em;
}

/* Animaciones y responsividad */
@media (max-width: 768px) {
    .diagonal-divider {
        opacity: 0.3;
    }
    
    .feature-card {
        transform: none !important;
    }
}

/* Animación al hacer scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gradient backgrounds */
.bg-gradient-subtle {
    background: linear-gradient(120deg, #f8fafc 0%, #f0f7ff 100%);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #0d5f87 0%, #0686c4 100%);
}

.bg-gradient-accent {
    background: linear-gradient(135deg, #00d4ff 0%, #0686c4 100%);
}

/* Decorative elements */
.grid-pattern {
    background-image:
        linear-gradient(rgba(13, 95, 135, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 95, 135, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

.wavy-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='pattern' x='0' y='0' width='100' height='30' patternUnits='userSpaceOnUse'%3E%3Cpath d='M0 15 Q25 5, 50 15 T 100 15' stroke='rgba(13, 95, 135, 0.05)' fill='none'/%3E%3C/pattern%3E%3C/defs%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='url(%23pattern)'/%3E%3C/svg%3E");
}

.circle-pattern {
    background-image: radial-gradient(rgba(13, 95, 135, 0.03) 1px, transparent 1px);
    background-size: 25px 25px;
}

/* Navigation */
.nav-link {
    color: #3E4560; 
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
    font-weight: 500; 
}

.nav-link:hover, .nav-link.active {
    color: #0d5f87; 
    border-bottom-color: #00d4ff; 
}



/* Modern card */
.card-modern {
    background-color: #FFFFFF;
    border-radius: 12px;
    border: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.card-modern:hover {
    box-shadow: 0 6px 15px 0 rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

/* Glass effect elements */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #0d5f87 0%, #0686c4 100%);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
}

.btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0686c4 0%, #0d5f87 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover:before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 95, 135, 0.2);
}

.btn-outline {
    background: transparent;
    color: #0d5f87;
    border: 1px solid #0d5f87;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(13, 95, 135, 0.05);
    transform: translateY(-2px);
}

/* Custom form elements */
.form-input-modern {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 0.5rem;
    background-color: white;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
    color: #3E4560;
}

.form-input-modern:focus {
    outline: none;
    border-color: #0d5f87;
    box-shadow: 0 0 0 3px rgba(13, 95, 135, 0.1);
}

.form-input-modern::placeholder {
    color: #697488;
}

/* Animation utilities */
.animated-element {
    opacity: 0;
    pointer-events: none;
}

.animation-active {
    pointer-events: auto;
}

/* Utility classes */
.section-heading {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: #222236;
    position: relative;
}

.section-heading:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #0d5f87);
}

.section-heading.text-center:after {
    left: 50%;
    transform: translateX(-50%);
}

.accent-dot {
    position: relative;
}

.accent-dot:after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #00d4ff;
    border-radius: 50%;
    margin-left: 4px;
    position: relative;
    top: -10px;
}

/* Line animations */
.animated-line {
    position: absolute;
    width: 1px;
    background: linear-gradient(to bottom, rgba(13, 95, 135, 0), rgba(13, 95, 135, 0.1) 20%, rgba(13, 95, 135, 0.1) 80%, rgba(13, 95, 135, 0));
    height: 80%;
    top: 10%;
}

/* Chat bubble for testimonials */
.chat-bubble {
    position: relative;
    border-radius: 12px;
}

.chat-bubble:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: white transparent transparent;
}

/* Calculator slider styles */
/* Estilos mínimos para los sliders usando los colores del proyecto */
.slider-thumb::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d5f87, #0d5f87);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(13, 95, 135, 0.3);
    transition: all 0.2s ease;
}

.slider-thumb::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(13, 95, 135, 0.4);
}

.slider-thumb::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d5f87, #0d5f87);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(13, 95, 135, 0.3);
}

.slider-thumb:focus {
    outline: none;
}

/* Animación sutil de zoom */
@keyframes subtle-zoom {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.animate-subtle-zoom {
  animation: subtle-zoom 20s infinite ease-in-out;
}

/* Mejoras a las líneas animadas existentes */
.animated-line {
  position: absolute;
  width: 1px;
  height: 80%;
  top: 10%;
  background: linear-gradient(to bottom, transparent, rgba(var(--color-primary-rgb), 0.2), transparent);
  overflow: hidden;
}

.animated-line::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 50%;
  top: -50%;
  background: linear-gradient(to bottom, transparent, rgba(var(--color-primary-rgb), 0.8), transparent);
  animation: line-animation 8s infinite ease;
}

@keyframes line-animation {
  0% {
    top: -50%;
  }
  100% {
    top: 100%;
  }
}

/* ===== ESTILOS ADICIONALES PARA SIMULADOR FINANCIERO ===== */

/* Estilos específicos del simulador */
.result-gradient {
    background: linear-gradient(135deg, #0d5f87 0%, #0686c4 100%);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.result-item:last-child {
    border-bottom: none;
}

.warning-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin-top: 8px;
}

.product-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
}

.info-tooltip {
    position: relative;
    cursor: help;
}

.info-tooltip::after {
    content: 'ℹ️';
    margin-left: 4px;
    opacity: 0.7;
    font-size: 12px;
}

/* Animación rápida para resultados */
.animate-pulse-fast {
    animation: pulse 0.7s ease-in-out;
}

/* Responsive optimizations para simulador */
@media (max-width: 768px) {
    .btn-primary:hover {
        transform: none;
    }
    
    .result-gradient {
        border-radius: 0 0 12px 12px;
    }
}



/* styles.css o code/style.css */

/* Para menú de escritorio */


/* Opcional: Si desea una línea decorativa debajo del enlace activo en escritorio */
/* .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px; /* Ajusta esta distancia según el diseño de tu header */
/* left: 50%;
  transform: translateX(-50%);
  width: 60%; /* Ancho de la línea */
/* height: 2px;
  background-color: theme('colors.primary');
} */


/* Para menú móvil */
#mobileMenu a.active-mobile {
  color: theme('colors.primary'); /* Cambia el color del texto al color primario */
  background-color: theme('colors.primary-light'); /* Añade un fondo para destacar */
  font-weight: theme('fontWeight.semibold', '600'); /* Hace la fuente semibold */
}









        .gradient-text {
            background: linear-gradient(135deg, #0d5f87, #1ba2d1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #0d5f87, #1e7ba7);
            background-size: 200% 200%;
            animation: gradientShift 4s ease-in-out infinite;
            transition: all 0.3s ease;
        }
        
        .btn-primary:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 10px 25px rgba(13, 95, 135, 0.3);
        }
        .animated-element {
             opacity: 0;
        }
        .animate-fade-in-up {
            animation-name: fadeInUp;
            animation-duration: 0.8s;
            animation-timing-function: ease-out;
            animation-fill-mode: forwards;
        }










        