/* ====================================
   MODAL MODERNO CON GLASSMORPHISM Y MICRO-ANIMACIONES
   ==================================== */

.info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.25));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    z-index: 2000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.info-modal-overlay.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.info-modal-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    max-width: 750px;
    width: 92%;
    max-height: 88vh;
    overflow: hidden;
    transform: scale(0.7) translateY(-60px) rotateX(15deg);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.12),
        0 16px 32px rgba(74, 144, 226, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow-y: auto;
}

.info-modal-overlay.show .info-modal-container {
    transform: scale(1) translateY(0) rotateX(0deg);
}

/* Header con gradiente dinámico */
.info-modal-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
    color: white;
    padding: 32px 40px;
    position: relative;
    overflow: hidden;
}

.info-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.info-modal-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    padding-right: 60px;
    background: linear-gradient(45deg, #ffffff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3)); }
    to { filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6)); }
}

.info-modal-close {
    position: absolute;
    top: 24px;
    right: 28px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    line-height: 1;
}

.info-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Body con scroll personalizado */
.info-modal-body {
    padding: 40px;
    color: #2c3e50;
    max-height: 60vh;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
}

/* Scroll personalizado */
.info-modal-body::-webkit-scrollbar {
    width: 8px;
}

.info-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.info-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
}

/* Items con efectos modernos */
.service-info-item {
    margin-bottom: 24px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 6px solid transparent;
    background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
                      linear-gradient(135deg, #3b82f6, #2563eb);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateX(0);
}

.service-info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.service-info-item:hover {
    transform: translateX(8px) translateY(-4px);
    box-shadow: 
        0 20px 40px rgba(59, 130, 246, 0.18),
        0 10px 20px rgba(0, 0, 0, 0.1);
    border-left-width: 8px;
}

.service-info-item:hover::before {
    left: 100%;
}

.service-info-item:last-child {
    margin-bottom: 0;
}

.service-info-item h3 {
    color: #1e293b;
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.service-info-item h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.service-info-item:hover h3::after {
    width: 60px;
}

.service-info-item p {
    margin: 0;
    line-height: 1.8;
    color: #4a5568;
    font-size: 15px;
    font-weight: 400;
    text-align: justify;
}

/* Footer moderno */
.info-modal-footer {
    padding: 28px 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    backdrop-filter: blur(20px);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.info-modal-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 2px;
}

.info-to-form-button {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.info-to-form-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.info-to-form-button:hover {
    transform: translateY(-3px) scale(1.05);
    background-position: 100% 0;
    box-shadow: 
        0 15px 35px rgba(59, 130, 246, 0.45),
        0 5px 15px rgba(0, 0, 0, 0.1);
    color: white;
    text-decoration: none;
}

.info-to-form-button:hover::before {
    left: 100%;
}

.info-to-form-button:active {
    transform: translateY(-1px) scale(1.02);
}

/* Animaciones de entrada para items */
.service-info-item {
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.service-info-item:nth-child(1) { animation-delay: 0.1s; }
.service-info-item:nth-child(2) { animation-delay: 0.2s; }
.service-info-item:nth-child(3) { animation-delay: 0.3s; }
.service-info-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive mejorado */
@media (max-width: 768px) {
    .info-modal-container {
        width: 96%;
        margin: 8px;
        border-radius: 20px;
    }
    
    .info-modal-header {
        padding: 24px 28px;
    }
    
    .info-modal-title {
        font-size: 24px;
        padding-right: 50px;
    }
    
    .info-modal-body {
        padding: 28px;
        max-height: 50vh;
    }
    
    .service-info-item {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .service-info-item h3 {
        font-size: 18px;
    }
    
    .info-modal-footer {
        padding: 20px 28px;
    }
    
    .info-to-form-button {
        padding: 14px 32px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .info-modal-title {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .service-info-item h3 {
        font-size: 16px;
    }
    
    .service-info-item p {
        font-size: 14px;
    }
}