/* ============================================
   ICONOS PREMIUM - BarberConnect
   Efectos de glow, animaciones y estilos premium
   ============================================ */

/* ============================================
   GLOW / AURA EN ICONOS
   ============================================ */
.icon-glow {
    transition: all 0.3s ease;
}

/* Glow dorado */
.icon-glow-gold {
    color: #f2ca50;
    filter: drop-shadow(0 0 8px rgba(242, 202, 80, 0.3));
    transition: all 0.4s ease;
}

.icon-glow-gold:hover {
    filter: drop-shadow(0 0 25px rgba(242, 202, 80, 0.7)) drop-shadow(0 0 50px rgba(242, 202, 80, 0.2));
    transform: scale(1.05);
}

/* Glow blanco */
.icon-glow-white {
    color: #ffffff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
    transition: all 0.4s ease;
}

.icon-glow-white:hover {
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 50px rgba(255, 255, 255, 0.15));
    transform: scale(1.05);
}

/* Glow oscuro */
.icon-glow-dark {
    color: #1a1a1a;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.15));
    transition: all 0.4s ease;
}

.icon-glow-dark:hover {
    filter: drop-shadow(0 0 25px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 50px rgba(0, 0, 0, 0.1));
    transform: scale(1.05);
}

/* ============================================
   ANIMACIONES DE ICONOS
   ============================================ */

/* 1. Pulso suave */
.icon-pulse {
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.85; }
}

/* 2. Pulso con glow (destacado) */
.icon-pulse-glow {
    animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(242, 202, 80, 0.2));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 30px rgba(242, 202, 80, 0.6)) drop-shadow(0 0 60px rgba(242, 202, 80, 0.2));
    }
}

/* 3. Flotación (redes sociales) */
.icon-float {
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

/* 4. Rotación lenta */
.icon-spin-slow {
    animation: spin-slow 10s linear infinite;
}

@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 5. Rebote */
.icon-bounce {
    animation: bounce-icon 1.5s ease-in-out infinite;
}

@keyframes bounce-icon {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
    50% { transform: translateY(0); }
    70% { transform: translateY(-4px); }
}

/* 6. Destello dorado */
.icon-sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(242, 202, 80, 0.2));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(242, 202, 80, 0.5)) drop-shadow(0 0 50px rgba(242, 202, 80, 0.1));
        transform: scale(1.05);
    }
}

/* ============================================
   ANIMACIONES DE TÍTULOS
   ============================================ */

/* 1. Títulos con glow */
.title-glow {
    position: relative;
    display: inline-block;
    transition: all 0.5s ease;
}

.title-glow::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f2ca50, transparent);
    transition: width 0.6s ease;
}

.title-glow:hover::after {
    width: 100%;
}

.title-glow:hover {
    color: #f2ca50;
    text-shadow: 0 0 30px rgba(242, 202, 80, 0.2);
}

/* 2. Texto con gradiente dorado */
.text-gradient-gold {
    background: linear-gradient(135deg, #f2ca50, #d4a830, #f2ca50);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 3s ease-in-out infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 3. Título con aparición */
.title-appear {
    animation: titleAppear 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes titleAppear {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 4. Texto con destello */
.text-shimmer {
    background: linear-gradient(
        90deg,
        #1a1a1a 0%,
        #f2ca50 30%,
        #1a1a1a 60%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s ease-in-out infinite;
}

@keyframes shimmerText {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================
   ANIMACIONES DE TARJETAS
   ============================================ */

/* 1. Fade In al cargar */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* 2. Slide Up al hacer scroll */
.animate-slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.animate-slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Scale on Hover */
.hover-scale {
    transition: all 0.3s ease;
}

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

/* 4. Tarjetas con glow al hover */
.card-glow {
    transition: all 0.4s ease;
}

.card-glow:hover {
    box-shadow: 0 0 40px rgba(242, 202, 80, 0.08);
    transform: translateY(-4px);
}

/* 5. Border glow */
.border-glow {
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.border-glow:hover {
    border-color: #f2ca50;
    box-shadow: 0 0 20px rgba(242, 202, 80, 0.15), inset 0 0 20px rgba(242, 202, 80, 0.05);
}

/* 6. Shimmer en tarjetas */
.shimmer-card {
    position: relative;
    overflow: hidden;
}

.shimmer-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(242, 202, 80, 0.03) 50%,
        transparent 60%
    );
    animation: shimmerCard 4s infinite;
    pointer-events: none;
}

@keyframes shimmerCard {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* ============================================
   ANIMACIONES DE BOTONES
   ============================================ */

.btn-premium {
    background: #1a1a1a;
    color: #ffffff;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(242, 202, 80, 0.1), transparent);
    transition: left 0.6s ease;
}

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

.btn-premium:hover {
    background: #f2ca50;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(242, 202, 80, 0.3);
}

/* Botón dorado */
.btn-premium-gold {
    background: #f2ca50;
    color: #1a1a1a;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-premium-gold:hover {
    background: #1a1a1a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================
   REDES SOCIALES CON EFECTO
   ============================================ */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.3rem;
    transition: all 0.4s ease;
    text-decoration: none;
}

.social-icon.facebook {
    color: #1877f2;
    background: rgba(24, 119, 242, 0.08);
}

.social-icon.facebook:hover {
    color: #ffffff;
    background: #1877f2;
    box-shadow: 0 0 30px rgba(24, 119, 242, 0.4);
    transform: translateY(-4px) scale(1.1) rotate(-5deg);
}

.social-icon.instagram {
    color: #e4405f;
    background: rgba(228, 64, 95, 0.08);
}

.social-icon.instagram:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
    box-shadow: 0 0 30px rgba(228, 64, 95, 0.4);
    transform: translateY(-4px) scale(1.1) rotate(5deg);
}

.social-icon.x-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    padding: 10px;
}

.social-icon.x-logo:hover {
    background: #1a1a1a;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px) scale(1.1) rotate(-5deg);
}

.social-icon.x-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0);
}

.social-icon.x-logo:hover img {
    filter: brightness(1) invert(1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .social-icon.x-logo {
        width: 38px;
        height: 38px;
        padding: 8px;
    }
    .btn-premium,
    .btn-premium-gold {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    /* ============================================
   ICONOS PREMIUM - MEJORAS ADICIONALES
   ============================================ */

/* ============================================
   ANIMACIONES DE ICONOS MEJORADAS
   ============================================ */

/* Brillo rotatorio en iconos */
.icon-shine {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-shine::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 2px;
    background: conic-gradient(from 0deg, 
        transparent 0deg, 
        rgba(242, 202, 80, 0.3) 45deg,
        rgba(242, 202, 80, 0.6) 90deg,
        rgba(242, 202, 80, 0.3) 135deg,
        transparent 180deg
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: shineRotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.icon-shine:hover::before {
    opacity: 1;
}

@keyframes shineRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Latido (heartbeat) */
.icon-heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.15); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

/* Onda expansiva en iconos */
.icon-ripple {
    position: relative;
}

.icon-ripple::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(242, 202, 80, 0.2);
    animation: rippleWave 2s ease-out infinite;
    pointer-events: none;
}

@keyframes rippleWave {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Efecto neón */
.icon-neon {
    color: #f2ca50;
    text-shadow: 
        0 0 7px rgba(242, 202, 80, 0.4),
        0 0 10px rgba(242, 202, 80, 0.3),
        0 0 21px rgba(242, 202, 80, 0.2),
        0 0 42px rgba(242, 202, 80, 0.1);
    transition: all 0.3s ease;
}

.icon-neon:hover {
    text-shadow: 
        0 0 7px rgba(242, 202, 80, 0.6),
        0 0 10px rgba(242, 202, 80, 0.5),
        0 0 21px rgba(242, 202, 80, 0.3),
        0 0 42px rgba(242, 202, 80, 0.2),
        0 0 82px rgba(242, 202, 80, 0.1);
    transform: scale(1.05);
}

/* Efecto de partículas (pequeños puntos brillantes) */
.icon-sparkle {
    position: relative;
}

.icon-sparkle::before,
.icon-sparkle::after {
    content: '✦';
    position: absolute;
    font-size: 0.3rem;
    color: #f2ca50;
    opacity: 0;
    transition: all 0.6s ease;
}

.icon-sparkle::before {
    top: -4px;
    right: -4px;
    transform: translate(4px, -4px) scale(0);
}

.icon-sparkle::after {
    bottom: -4px;
    left: -4px;
    transform: translate(-4px, 4px) scale(0);
}

.icon-sparkle:hover::before {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    animation: sparkleFloat 1.5s ease-in-out infinite;
}

.icon-sparkle:hover::after {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    animation: sparkleFloat 1.5s ease-in-out infinite 0.3s;
}

@keyframes sparkleFloat {
    0%, 100% { opacity: 0.3; transform: translate(0, 0) scale(0.8); }
    50% { opacity: 1; transform: translate(-2px, -2px) scale(1.2); }
}

/* ============================================
   VARIACIONES DE GLOW POR COLOR
   ============================================ */
.glow-gold {
    filter: drop-shadow(0 0 12px rgba(242, 202, 80, 0.3));
    transition: all 0.4s ease;
}

.glow-gold:hover {
    filter: drop-shadow(0 0 30px rgba(242, 202, 80, 0.6)) drop-shadow(0 0 60px rgba(242, 202, 80, 0.2));
    transform: scale(1.05);
}

.glow-blue {
    filter: drop-shadow(0 0 12px rgba(24, 119, 242, 0.3));
}

.glow-blue:hover {
    filter: drop-shadow(0 0 30px rgba(24, 119, 242, 0.6)) drop-shadow(0 0 60px rgba(24, 119, 242, 0.2));
}

.glow-pink {
    filter: drop-shadow(0 0 12px rgba(228, 64, 95, 0.3));
}

.glow-pink:hover {
    filter: drop-shadow(0 0 30px rgba(228, 64, 95, 0.6)) drop-shadow(0 0 60px rgba(228, 64, 95, 0.2));
}

.glow-green {
    filter: drop-shadow(0 0 12px rgba(46, 125, 50, 0.3));
}

.glow-green:hover {
    filter: drop-shadow(0 0 30px rgba(46, 125, 50, 0.6)) drop-shadow(0 0 60px rgba(46, 125, 50, 0.2));
}

/* ============================================
   ICONOS DE TAMAÑOS PREMIUM
   ============================================ */
.icon-xl {
    font-size: 2.5rem;
    line-height: 1;
}

.icon-lg {
    font-size: 2rem;
    line-height: 1;
}

.icon-md {
    font-size: 1.5rem;
    line-height: 1;
}

.icon-sm {
    font-size: 1rem;
    line-height: 1;
}

/* ============================================
   ICONOS CON FONDO CIRCULAR PREMIUM
   ============================================ */
.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(242, 202, 80, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(242, 202, 80, 0.1);
}

.icon-circle:hover {
    background: rgba(242, 202, 80, 0.15);
    border-color: rgba(242, 202, 80, 0.3);
    transform: scale(1.05) rotate(-5deg);
}

.icon-circle .material-symbols-outlined {
    font-size: 1.5rem;
    color: #f2ca50;
}

/* ============================================
   ICONOS CON GRADIENTE
   ============================================ */
.icon-gradient {
    background: linear-gradient(135deg, #f2ca50, #d4a830);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s ease;
}

.icon-gradient:hover {
    background: linear-gradient(135deg, #fff, #f2ca50);
    -webkit-background-clip: text;
    background-clip: text;
    transform: scale(1.05);
}

/* ============================================
   TEXTO CON ANIMACIÓN DE APARICIÓN
   ============================================ */
.text-reveal {
    display: inline-block;
    animation: textReveal 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   TEXTO CON SUBRAYADO ANIMADO
   ============================================ */
.text-underline-animated {
    position: relative;
    display: inline-block;
}

.text-underline-animated::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f2ca50;
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 10px rgba(242, 202, 80, 0.3);
}

.text-underline-animated:hover::after {
    width: 100%;
}

/* ============================================
   TÍTULOS CON GRADIENTE DORADO
   ============================================ */
.title-gold {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f2ca50, #d4a830, #f2ca50);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShine 3s ease-in-out infinite;
    letter-spacing: -0.5px;
}

@keyframes goldShine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ============================================
   TARJETAS CON BORDE DORADO EN HOVER
   ============================================ */
.card-gold-border {
    transition: all 0.4s ease;
    border: 1px solid transparent;
    position: relative;
}

.card-gold-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from 0deg, 
        transparent 0deg,
        #f2ca50 45deg,
        transparent 90deg,
        transparent 180deg,
        #f2ca50 225deg,
        transparent 270deg,
        transparent 360deg
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.card-gold-border:hover::before {
    opacity: 1;
    animation: borderSpin 3s linear infinite;
}

@keyframes borderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .icon-xl {
        font-size: 2rem;
    }
    .icon-lg {
        font-size: 1.6rem;
    }
    .icon-md {
        font-size: 1.2rem;
    }
    .title-gold {
        font-size: 1.6rem;
    }
    .icon-circle {
        width: 40px;
        height: 40px;
    }
    .icon-circle .material-symbols-outlined {
        font-size: 1.2rem;
    }
}
}