/* ===================================
   ESTILOS PREMIUM - MEJORAS VISUALES
   Carga este archivo después de styles.css
   =================================== */

/* MEJORAS GLOBALES */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* HEADER GLASSMORPHISM */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(30, 64, 175, 0.08);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

/* LOGO CON GRADIENTE */
.logo h1 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.5px;
    filter: drop-shadow(0 2px 4px rgba(30, 64, 175, 0.15));
}

/* NAVEGACIÓN MEJORADA */
.nav-menu a {
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::before {
    width: 80%;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-colored);
}

/* HERO CON ANIMACIÓN DE PARTÍCULAS */
.hero {
    background: var(--gradient-primary);
    min-height: 650px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(20px, 10px) rotate(3deg); }
}

.hero-title {
    font-weight: 900;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    line-height: 1.15;
}

.hero-subtitle {
    font-weight: 400;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* BOTONES PREMIUM */
.btn {
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.btn-primary::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.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-colored);
}

.btn-secondary {
    background: var(--gradient-secondary);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.35);
}

/* CARDS DE SERVICIOS PREMIUM */
.service-card {
    background: var(--color-white);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(30, 64, 175, 0.3);
}

/* ICONOS CIRCULARES CON GRADIENTE */
.service-icon {
    width: 85px;
    height: 85px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
    border-radius: 22px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 24px rgba(30, 64, 175, 0.3);
}

.service-card:hover .service-icon::before {
    opacity: 1;
}

/* BENEFICIOS CON CHECKMARKS ANIMADOS */
.benefit-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    background: var(--gradient-secondary);
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 8px 16px rgba(5, 150, 105, 0.25);
}

/* TESTIMONIOS CON COMILLAS */
.testimonial-card {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--gradient-primary) border-box;
    border-radius: var(--radius-xl);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: 25px;
    font-size: 7rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

/* ESTRELLAS ANIMADAS */
.stars {
    display: inline-flex;
    gap: 2px;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

/* CTA CON ANIMACIÓN DE FONDO */
.cta {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.12) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

/* PAGE HEADER CON PATRÓN */
.page-header {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
    opacity: 0.6;
}

.page-header h1,
.page-header p {
    position: relative;
    z-index: 1;
}

/* PERFIL CON EFECTO PULSE */
.profile-placeholder {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.profile-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: pulse-slow 4s ease-in-out infinite;
}

@keyframes pulse-slow {
    0%, 100% { 
        opacity: 0.5; 
        transform: scale(1); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.05); 
    }
}

/* CERTIFICACIONES CON SHINE EFFECT */
.cert-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.1), transparent);
    transform: rotate(20deg);
    transition: left 0.6s ease;
}

.cert-card:hover::before {
    left: 150%;
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--color-primary-light);
}

.cert-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 8px rgba(30, 64, 175, 0.15));
}

/* FORMULARIOS PREMIUM */
.form-wrapper {
    border: 1px solid var(--color-light-gray);
    position: relative;
}

.form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1), var(--shadow-md);
    transform: translateY(-2px);
}

/* INFO CARDS CON GLASSMORPHISM */
.info-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--color-primary-light);
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.info-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 8px rgba(30, 64, 175, 0.2));
    transition: all 0.3s ease;
}

.info-card:hover .info-icon {
    transform: scale(1.15) rotate(5deg);
}

/* BLOG CARDS MEJORADOS */
.blog-card {
    border: 1px solid var(--color-light-gray);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--color-primary-light);
}

.blog-category {
    background: var(--gradient-primary);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
}

.blog-title {
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
    color: var(--color-primary);
}

/* NEWSLETTER PREMIUM */
.newsletter {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.newsletter::before,
.newsletter::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.newsletter::before {
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    animation: float 25s infinite ease-in-out;
}

.newsletter::after {
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    animation: float 20s infinite ease-in-out reverse;
}

.newsletter-content {
    position: relative;
    z-index: 1;
}

.newsletter-input {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    border-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* FAQ MEJORADO */
.faq-item {
    border: 2px solid var(--color-light-gray);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
}

.faq-question {
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(30, 64, 175, 0.03);
}

.faq-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--color-primary);
}

/* CONTACTO */
.contact-method {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.contact-method:hover {
    border-color: var(--color-primary-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-method-icon {
    font-size: 3rem;
    filter: drop-shadow(0 4px 8px rgba(30, 64, 175, 0.15));
}

/* WHATSAPP FLOTANTE PREMIUM */
.whatsapp-float {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    position: relative;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    z-index: -1;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* FOOTER MEJORADO */
.footer {
    background: var(--gradient-dark);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

/* ANIMACIONES ADICIONALES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* SMOOTH SCROLL OFFSET */
html {
    scroll-padding-top: 100px;
}

/* SELECCIÓN DE TEXTO */
::selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}

::-moz-selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* SCROLLBAR PERSONALIZADO (Webkit) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 6px;
    border: 2px solid var(--color-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* LOADING SKELETON (opcional) */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* MEJORAS RESPONSIVE */
@media (max-width: 768px) {
    .hero::before,
    .hero::after {
        width: 400px;
        height: 400px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .whatsapp-float {
        width: 56px;
        height: 56px;
    }
    
    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}
