/* ============================================
   Crecer Digital - Enhanced Cards
   ============================================ */

/* Card Reveal Effect */
.card-reveal {
    position: relative;
    overflow: hidden;
}

.card-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 87, 255, 0.1), transparent);
    transition: left 0.6s;
    z-index: 1;
    pointer-events: none;
}

.card-reveal:hover::before {
    left: 100%;
}

/* Enhanced About Cards */
.about-card {
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.about-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.about-card:hover .about-card-inner {
    transform: rotateY(5deg) rotateX(-5deg);
}

.about-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-metallic);
    opacity: 0;
    transition: opacity 0.4s;
    border-radius: 16px;
    z-index: -1;
    filter: blur(20px);
}

.about-card:hover::after {
    opacity: 0.2;
}

.about-card-content {
    position: relative;
    z-index: 2;
    transition: transform 0.4s;
}

.about-card:hover .about-card-content {
    transform: translateY(-8px);
}

/* Enhanced Service Cards */
.service-card {
    position: relative;
    cursor: pointer;
}

.service-card-content {
    position: relative;
    padding: var(--spacing-xl);
    z-index: 2;
    background: var(--bg-tertiary);
    transition: all 0.4s;
}

.service-card:hover .service-card-content {
    background: rgba(26, 26, 26, 0.95);
    transform: translateY(-8px);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 87, 255, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 1;
    pointer-events: none;
}

.service-card:hover::after {
    width: 300px;
    height: 300px;
}

.service-number {
    position: relative;
    z-index: 3;
    transition: all 0.4s;
}

.service-card:hover .service-number {
    transform: scale(1.1) rotate(5deg);
    color: var(--primary-bright);
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.service-features {
    position: relative;
    z-index: 3;
}

.service-features li {
    transition: all 0.3s;
    transform: translateX(0);
}

.service-card:hover .service-features li {
    transform: translateX(8px);
}

.service-card:hover .service-features li:nth-child(1) {
    transition-delay: 0.1s;
}

.service-card:hover .service-features li:nth-child(2) {
    transition-delay: 0.2s;
}

.service-card:hover .service-features li:nth-child(3) {
    transition-delay: 0.3s;
}

/* Enhanced Portfolio Cards - PREMIUM REDESIGN (Glassmorphism & Neon Glow) */
.portfolio-item {
    position: relative;
    cursor: pointer;
    background: rgba(13, 27, 62, 0.35) !important;
    border: 1px solid rgba(0, 87, 255, 0.15) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    transform-style: preserve-3d;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(0, 229, 255, 0.12), transparent 60%) !important;
    opacity: 0.5;
    transition: opacity 0.4s;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: overlay;
    border-radius: 16px;
}

/* Hover general de la tarjeta */
.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(0, 229, 255, 0.5) !important;
    box-shadow: 0 15px 35px rgba(0, 87, 255, 0.35), 0 0 25px rgba(0, 229, 255, 0.2) !important;
}

/* Glow naranja para Branding y Ads */
.portfolio-item[data-category="branding"]:hover,
.portfolio-item[data-category="ads"]:hover {
    border-color: rgba(255, 107, 0, 0.5) !important;
    box-shadow: 0 15px 35px rgba(255, 107, 0, 0.35), 0 0 25px rgba(255, 150, 0, 0.2) !important;
}

.portfolio-image {
    width: 100%;
    height: 230px;
    overflow: hidden;
    position: relative;
    background: #050a1a;
}

.portfolio-img, 
.portfolio-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.portfolio-item:hover .portfolio-img,
.portfolio-item:hover video {
    transform: scale(1.08) !important;
}

/* Badge decorativo de Live Preview para videos */
.portfolio-image video + .portfolio-overlay::after {
    content: 'LIVE PREVIEW';
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(239, 68, 68, 0.85);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 10;
    letter-spacing: 1px;
    font-family: var(--font-display);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Info de la tarjeta */
.portfolio-info {
    padding: var(--spacing-lg) !important;
    background: rgba(8, 16, 40, 0.65) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-top: 1px solid rgba(0, 87, 255, 0.1) !important;
    transition: all 0.4s ease !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover .portfolio-info {
    background: rgba(13, 27, 62, 0.85) !important;
    border-top-color: rgba(0, 229, 255, 0.3) !important;
    transform: none !important;
}

/* Glow naranja para Branding y Ads en el borde superior de la info */
.portfolio-item[data-category="branding"]:hover .portfolio-info,
.portfolio-item[data-category="ads"]:hover .portfolio-info {
    border-top-color: rgba(255, 107, 0, 0.3) !important;
}

.portfolio-info h3 {
    font-family: var(--font-display) !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.6rem !important;
    color: var(--color-light) !important;
    letter-spacing: 0.5px !important;
    transition: color 0.3s;
}

.portfolio-item:hover .portfolio-info h3 {
    color: var(--color-light) !important;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.4) !important;
}

.portfolio-item[data-category="branding"]:hover .portfolio-info h3,
.portfolio-item[data-category="ads"]:hover .portfolio-info h3 {
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.4) !important;
}

.portfolio-info p {
    color: var(--color-muted) !important;
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Enhanced Testimonial Cards */
.testimonial-card {
    position: relative;
    overflow: visible;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0;
    transition: all 0.4s;
    font-family: 'Playfair Display', serif;
    line-height: 1;
    z-index: 0;
}

.testimonial-card:hover::before {
    opacity: 0.1;
    transform: scale(1.2);
}

.testimonial-image {
    transition: all 0.4s;
    position: relative;
    z-index: 2;
}

.testimonial-card:hover .testimonial-image {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.4);
}

.testimonial-content {
    position: relative;
    z-index: 2;
    transition: all 0.4s;
}

.testimonial-card:hover .testimonial-content {
    transform: translateY(-4px);
}

.testimonial-text {
    position: relative;
}

.testimonial-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-metallic);
    transition: width 0.4s;
}

.testimonial-card:hover .testimonial-text::after {
    width: 60px;
}

/* Card Glow Effect */
.card-glow {
    position: relative;
}

.card-glow::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-metallic);
    border-radius: 18px;
    opacity: 0;
    z-index: -1;
    filter: blur(10px);
    transition: opacity 0.4s;
}

.card-glow:hover::after {
    opacity: 0.6;
}

/* Card Tilt Effect */
.card-tilt {
    transition: transform 0.3s;
}

.card-tilt:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) scale(1.02);
}

/* Card Content Reveal */
.card-content-reveal {
    position: relative;
    overflow: hidden;
}

.card-content-reveal .card-hidden-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-tertiary);
    padding: var(--spacing-lg);
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.card-content-reveal:hover .card-hidden-content {
    top: 0;
}

/* Card Image Parallax */
.card-image-parallax {
    position: relative;
    overflow: hidden;
}

.card-image-parallax img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-image-parallax:hover img {
    transform: scale(1.15) translateY(-10px);
}

/* Card Border Animation */
.card-border-animated {
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.card-border-animated::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-metallic);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

.card-border-animated:hover::before {
    opacity: 1;
    animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        filter: blur(5px);
    }
    50% {
        filter: blur(10px);
    }
}

/* Card Stats Reveal */
.card-stats {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s;
}

.card:hover .card-stats {
    opacity: 1;
    transform: translateY(0);
}

.card-stat {
    text-align: center;
    flex: 1;
}

.card-stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-metallic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.card-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 768px) {
    .about-card:hover .about-card-inner {
        transform: none;
    }
    
    .card-tilt:hover {
        transform: none;
    }
}

