/* Asegura que el modal de generando carta se vea bien en mobile */
@media (max-width: 576px) {
  .modal-dialog {
    max-width: 95vw;
    margin: 1.75rem auto;
  }
  .modal-content {
    padding: 1rem 0.5rem;
    font-size: 1rem;
  }
}
/* Estilos específicos para index.html */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 0 50px 50px;
    margin: -2rem -15px 0 -15px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.2)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.2)"/><circle cx="90" cy="30" r="0.5" fill="rgba(255,255,255,0.2)"/></svg>') repeat;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 10px 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Benefit Cards */
.benefit-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.benefit-icon {
    opacity: 0.9;
}

/* Form Improvements */
.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    border: 2px solid #667eea;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { border-color: #667eea; }
    50% { border-color: #764ba2; }
    100% { border-color: #667eea; }
}

/* Trust Indicators */
.trust-indicators {
    opacity: 0.8;
}

/* Info Items */
.info-item {
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-3px);
}

/* Button Improvements */
.btn-custom:hover, .btn-primary:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(45deg, #ffc107, #ffb300);
    border: none;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(45deg, #ffb300, #ff8f00);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

/* Modal de espera personalizado */
#modalGenerando .modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: none;
    position: relative;
    overflow: hidden;
}

#modalGenerando .modal-body {
    padding: 3rem 2rem 2.5rem 2rem;
}

#modalGenerando .spinner-border {
    width: 4rem !important;
    height: 4rem !important;
    border-width: 0.5rem;
    color: #ffd700 !important;
    margin-bottom: 1.5rem;
    animation: spinGlow 1.2s linear infinite;
}

@keyframes spinGlow {
    0% { filter: drop-shadow(0 0 0px #ffd700); }
    50% { filter: drop-shadow(0 0 16px #ffd700); }
    100% { filter: drop-shadow(0 0 0px #ffd700); }
}

#modalGenerandoLabel {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

#modalGenerando p {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    color: #fff;
    opacity: 0.95;
}

#modalGenerando .modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        margin: -1rem -15px 0 -15px;
        border-radius: 0 0 30px 30px;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .feature-item {
        margin-bottom: 10px;
        font-size: 0.9rem;
    }
    
    .benefit-card {
        margin-bottom: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation for cards */
.card-custom {
    animation: fadeInUp 0.6s ease-out;
}

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

#modalGenerando .modal-body > * {
    position: relative;
    z-index: 1;
}
