/* Tecno Glass - Main Styles */

/* Glass Panel Effects */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
}

/* Fallback para navegadores sin backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
    .glass-panel {
        background: rgba(10, 15, 20, 0.88);
    }
    .menu-overlay-bg {
        background: rgba(10, 15, 20, 0.97) !important;
    }
}

.glass-panel-light {
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.text-glow {
    text-shadow: 0 0 15px rgba(49, 128, 156, 0.6);
}

.glass-border-gradient {
    border-image: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.2) 100%) 1;
}

/* Particles Animation */
#particles-container .particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    filter: blur(2px);
    box-shadow: 0 0 20px 3px rgba(49, 128, 156, 0.6), 0 0 40px 6px rgba(49, 128, 156, 0.3);
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
        transform: translateY(-50vh) translateX(25px) scale(1);
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) translateX(50px) scale(0.5);
        opacity: 0;
    }
}

/* Shine Effect */
@keyframes light-sweep {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(200%) translateY(200%) rotate(45deg); }
}

.shine-container:hover .shine-element {
    animation: light-sweep 0.7s ease-in-out forwards;
}

.shine-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    pointer-events: none;
    z-index: 20;
}

/* Scroll Animations */
html {
    scroll-behavior: smooth;
}

main {
    display: block;
}

.skip-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2000;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(10, 15, 20, 0.95);
    color: #fff;
    border: 1px solid rgba(49, 128, 156, 0.5);
    transform: translateY(-140%);
    transition: transform 0.25s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid #7fd0e8;
    outline-offset: 4px;
}

.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.95) rotateX(-10deg);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
    animation: reveal-fallback 0s 2s forwards;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px) scale(0.9) rotateY(10deg);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
    animation: reveal-fallback 0s 2s forwards;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px) scale(0.9) rotateY(-10deg);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
    animation: reveal-fallback 0s 2s forwards;
}

.reveal-up {
    opacity: 0;
    transform: translateY(60px) scale(0.9) rotateX(-15deg);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
    animation: reveal-fallback 0s 2s forwards;
}

@keyframes reveal-fallback {
    to {
        opacity: 1;
        transform: none;
    }
}

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1) rotateX(0) rotateY(0);
    animation: none;
}

.parallax-section {
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.1, 0, 0.3, 1);
}

/* Floating Glass Card */
.floating-glass-card {
    -webkit-transition: -webkit-transform 0.3s ease-out, box-shadow 0.1s ease-out;
    transition: transform 0.3s ease-out, box-shadow 0.1s ease-out;
    -webkit-box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.dark .floating-glass-card {
    -webkit-box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 20px 0px rgba(49, 128, 156, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 20px 0px rgba(49, 128, 156, 0.15);
}

/* Title Font */
.title-font {
    font-family: 'Cormorant Garamond', 'Playfair Display', serif !important;
}

/* Tilt Element */
.tilt-element {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
}

/* Glass CTA */
.glass-cta {
    background: linear-gradient(135deg, rgba(26, 77, 117, 0.1) 0%, rgba(49, 128, 156, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Liquid Glass Portfolio */
.portfolio-intro {
    position: relative;
}

.portfolio-intro__copy {
    max-width: 46rem;
}

.portfolio-intro__eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding-left: 1.1rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: #7fd0e8;
    position: relative;
}

.portfolio-intro__eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0.55rem;
    height: 1px;
    background: rgba(127, 208, 232, 0.8);
}

.portfolio-intro__title {
    margin: 0;
    max-width: 12ch;
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-size: clamp(3rem, 5.8vw, 5.4rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: #f8fbff;
    /* text-wrap: balance — no soportado en navegadores viejos, omitido */
}

.portfolio-intro__text {
    margin: 1.35rem 0 0;
    max-width: 34rem;
    font-size: clamp(0.98rem, 1.5vw, 1.08rem);
    line-height: 1.8;
    color: rgba(203, 213, 225, 0.82);
}

.portfolio-intro__badge {
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.call-advisor-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transform: translateY(0) scale(1);
    transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.28s ease, background-color 0.28s ease, color 0.28s ease;
}

.call-advisor-btn::before {
    content: '';
    position: absolute;
    top: -35%; right: -35%; bottom: -35%; left: -35%;
    background: radial-gradient(circle, rgba(127, 208, 232, 0.4) 0%, rgba(127, 208, 232, 0.14) 28%, transparent 62%);
    opacity: 0;
    transform: scale(0.45);
    transition: opacity 0.28s ease, transform 0.35s ease;
    pointer-events: none;
    z-index: 0;
}

.call-advisor-btn::after {
    content: '';
    position: absolute;
    top: 1px; right: 1px; bottom: 1px; left: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 40%);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.call-advisor-btn:hover,
.call-advisor-btn:focus-visible {
    background: #7fd0e8;
    color: #07131b;
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 28px 62px rgba(30, 109, 136, 0.32);
}

.call-advisor-btn:hover::before,
.call-advisor-btn:focus-visible::before,
.call-advisor-btn:active::before {
    opacity: 1;
    transform: scale(1);
}

.call-advisor-btn__icon,
.call-advisor-btn__content {
    position: relative;
    z-index: 1;
}

.call-advisor-btn__icon {
    transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1), background-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
}

.call-advisor-btn:hover .call-advisor-btn__icon,
.call-advisor-btn:focus-visible .call-advisor-btn__icon {
    background: #07131b;
    color: #7fd0e8;
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 14px 24px rgba(7, 19, 27, 0.22);
}

.call-advisor-btn:active {
    animation: call-button-press 0.38s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.call-advisor-btn:active .call-advisor-btn__icon {
    animation: call-icon-bounce 0.42s cubic-bezier(0.2, 0.9, 0.2, 1);
}

@keyframes call-button-press {
    0% {
        transform: translateY(-1px) scale(1);
        box-shadow: 0 28px 62px rgba(30, 109, 136, 0.32);
    }
    40% {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 0 0 0 rgba(127, 208, 232, 0.32), 0 30px 68px rgba(30, 109, 136, 0.36);
    }
    100% {
        transform: translateY(0) scale(1.005);
        box-shadow: 0 0 0 12px rgba(127, 208, 232, 0), 0 24px 54px rgba(30, 109, 136, 0.26);
    }
}

@keyframes call-icon-bounce {
    0% {
        transform: translateY(0) scale(1);
    }
    35% {
        transform: translateY(-4px) scale(1.09);
    }
    65% {
        transform: translateY(1px) scale(0.99);
    }
    100% {
        transform: translateY(0) scale(1.04);
    }
}

.portfolio-showcase {
    position: relative;
    overflow: visible;
    padding: 0.75rem 0;
    border-radius: 2rem;
    isolation: isolate;
}

.portfolio-showcase::before {
    content: '';
    position: absolute;
    top: 7%; right: 3%; bottom: 10%; left: 3%;
    border-radius: 2.5rem;
    background:
        radial-gradient(circle at 20% 20%, rgba(127, 208, 232, 0.12), transparent 35%),
        radial-gradient(circle at 80% 80%, rgba(49, 128, 156, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(8, 13, 20, 0.04));
    filter: blur(10px);
    pointer-events: none;
    z-index: -1;
}

.portfolio-showcase__glow {
    position: absolute;
    width: 22rem;
    height: 22rem;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.45;
    pointer-events: none;
}

.portfolio-showcase__glow--one {
    top: -8rem;
    left: -5rem;
    background: rgba(127, 208, 232, 0.25);
}

.portfolio-showcase__glow--two {
    right: -7rem;
    bottom: -10rem;
    background: rgba(49, 128, 156, 0.25);
}

.portfolio-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.15rem;
}

.portfolio-slot {
    position: relative;
    overflow: hidden;
    min-height: 18rem;
    border-radius: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 13, 20, 0.16);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
    transform: translate3d(0, 0, 0);
    transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.8s ease;
    will-change: transform, opacity;
}

.portfolio-slot:hover {
    transform: translate3d(0, -6px, 0);
    box-shadow: 0 32px 72px rgba(0, 0, 0, 0.32);
}

.portfolio-slot::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background:
        linear-gradient(125deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.08) 18%, transparent 42%),
        linear-gradient(215deg, transparent 55%, rgba(127, 208, 232, 0.14) 100%);
    mix-blend-mode: screen;
    opacity: 0.72;
    pointer-events: none;
    z-index: 4;
}

.portfolio-slot::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background:
        linear-gradient(180deg, rgba(6, 12, 18, 0.04) 0%, rgba(6, 12, 18, 0.1) 38%, rgba(6, 12, 18, 0.76) 100%),
        radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 35%);
    pointer-events: none;
    z-index: 3;
}

.portfolio-slot__glass {
    position: absolute;
    top: -0.75rem; right: -0.75rem; bottom: -0.75rem; left: -0.75rem;
    border-radius: 2.2rem;
    background:
        radial-gradient(circle at 20% 15%, rgba(127, 208, 232, 0.24), transparent 28%),
        radial-gradient(circle at 80% 85%, rgba(49, 128, 156, 0.22), transparent 30%);
    filter: blur(22px);
    opacity: 0.9;
    pointer-events: none;
    z-index: -1;
}

.portfolio-slot__image {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.035);
    transition: transform 1.2s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.8s ease, filter 0.8s ease;
    filter: saturate(1.1) contrast(1.04);
}

.portfolio-slot:hover .portfolio-slot__image {
    transform: scale(1.075);
}

.portfolio-slot__content {
    position: absolute;
    top: auto; right: 0; bottom: 0; left: 0;
    z-index: 5;
    padding: 1.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transform: translateY(0);
    transition: transform 0.7s ease, opacity 0.7s ease;
}

.portfolio-slot__eyebrow {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.75);
}

.portfolio-slot__title {
    margin: 0;
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-size: clamp(1.65rem, 2.2vw, 2.6rem);
    line-height: 0.95;
    color: #fff;
}

.portfolio-slot__meta {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.72);
}

.portfolio-slot.is-swapping-out {
    transform: scale(0.98);
}

.portfolio-slot.is-swapping-out .portfolio-slot__image {
    opacity: 0;
    transform: scale(0.92) translate3d(0, 7%, 0);
    filter: blur(10px) saturate(1.16) brightness(0.95);
}

.portfolio-slot.is-swapping-out .portfolio-slot__content {
    opacity: 0;
    transform: translateY(18px);
}

.portfolio-slot.is-swapping-in .portfolio-slot__image {
    animation: portfolio-slot-in 1.1s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.portfolio-slot.is-swapping-in::before {
    animation: portfolio-glass-flash 1.1s ease;
}

.portfolio-slot.is-swapping-in .portfolio-slot__content {
    animation: portfolio-content-rise 0.95s ease;
}

@keyframes portfolio-slot-in {
    0% {
        opacity: 0;
        transform: scale(1.16) translate3d(0, -5%, 0);
        filter: blur(12px) saturate(1.25) brightness(1.06);
    }
    100% {
        opacity: 1;
        transform: scale(1.035) translate3d(0, 0, 0);
        filter: saturate(1.1) contrast(1.04);
    }
}

@keyframes portfolio-glass-flash {
    0% {
        opacity: 0.2;
        transform: translateX(-12%) skewX(-6deg);
    }
    35% {
        opacity: 1;
    }
    100% {
        opacity: 0.75;
        transform: translateX(0) skewX(0);
    }
}

@keyframes portfolio-content-rise {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        grid-auto-rows: minmax(9rem, 1fr);
    }

    .portfolio-slot--hero {
        grid-column: span 7 / span 7;
        grid-row: span 2 / span 2;
        min-height: 25rem;
    }

    .portfolio-slot:not(.portfolio-slot--hero) {
        grid-column: span 5 / span 5;
        min-height: 12rem;
    }

    .portfolio-slot:nth-child(4),
    .portfolio-slot:nth-child(5),
    .portfolio-slot:nth-child(6) {
        grid-column: span 4 / span 4;
        min-height: 14rem;
    }
}

@media (max-width: 767px) {
    .portfolio-intro__title {
        max-width: none;
        font-size: 2.5rem;
        line-height: 0.95;
    }

    .portfolio-intro__text {
        margin-top: 1rem;
        line-height: 1.65;
    }

    .portfolio-showcase {
        padding: 0.25rem 0;
        border-radius: 1.5rem;
    }

    .portfolio-slot {
        min-height: 15rem;
        border-radius: 1.3rem;
    }

    .portfolio-slot__content {
        padding: 1.1rem;
    }

    .portfolio-slot__title {
        font-size: 1.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .call-advisor-btn,
    .call-advisor-btn::before,
    .call-advisor-btn__icon,
    .portfolio-slot,
    .portfolio-slot__image,
    .portfolio-slot__content,
    .portfolio-slot.is-swapping-in .portfolio-slot__image,
    .portfolio-slot.is-swapping-in::before,
    .portfolio-slot.is-swapping-in .portfolio-slot__content {
        animation: none !important;
        transition: none !important;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 
                0 0 0 0 rgba(37, 211, 102, 0.7);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse-whatsapp 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5),
                0 0 0 15px rgba(37, 211, 102, 0.1);
    animation: none;
}

.whatsapp-float:active {
    transform: scale(0.95);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 
                    0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 
                    0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 
                    0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: rgba(255, 255, 255, 0.95);
    color: #0a0f14;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid rgba(255, 255, 255, 0.95);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

/* Elegant Stats Cards with Gradients */
.stat-card {
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    -webkit-transform: translateY(-10px) scale(1.02);
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(49, 128, 156, 0.4);
    -webkit-box-shadow: 0 20px 60px rgba(49, 128, 156, 0.3), 0 0 40px rgba(49, 128, 156, 0.2);
    box-shadow: 0 20px 60px rgba(49, 128, 156, 0.3), 0 0 40px rgba(49, 128, 156, 0.2);
}

.stat-gradient {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.stat-card:hover .stat-gradient {
    opacity: 1;
}

.stat-gradient-1 {
    background: linear-gradient(135deg, 
        rgba(26, 77, 117, 0.3) 0%, 
        rgba(49, 128, 156, 0.2) 50%, 
        rgba(26, 77, 117, 0.1) 100%);
}

.stat-gradient-2 {
    background: linear-gradient(135deg, 
        rgba(49, 128, 156, 0.3) 0%, 
        rgba(193, 190, 190, 0.2) 50%, 
        rgba(49, 128, 156, 0.1) 100%);
}

.stat-gradient-3 {
    background: linear-gradient(135deg, 
        rgba(193, 190, 190, 0.3) 0%, 
        rgba(49, 128, 156, 0.2) 50%, 
        rgba(26, 77, 117, 0.1) 100%);
}

.stat-gradient-4 {
    background: linear-gradient(135deg, 
        rgba(49, 128, 156, 0.3) 0%, 
        rgba(26, 77, 117, 0.2) 50%, 
        rgba(193, 190, 190, 0.1) 100%);
}

.stat-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(49, 128, 156, 0.2), rgba(26, 77, 117, 0.1));
    border: 2px solid rgba(49, 128, 156, 0.3);
    transition: all 0.5s ease;
}

.stat-card:hover .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(49, 128, 156, 0.4), rgba(26, 77, 117, 0.2));
    border-color: rgba(49, 128, 156, 0.6);
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 0 30px rgba(49, 128, 156, 0.5);
}

.stat-icon-wrapper .material-symbols-outlined {
    color: #31809C;
    transition: all 0.5s ease;
}

.stat-card:hover .stat-icon-wrapper .material-symbols-outlined {
    color: #fff;
    text-shadow: 0 0 20px rgba(49, 128, 156, 0.8);
}

.stat-number {
    background: -webkit-linear-gradient(135deg, #fff 0%, #31809C 100%);
    background: linear-gradient(135deg, #fff 0%, #31809C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Fallback para navegadores sin soporte */
    color: #fff;
    -webkit-filter: drop-shadow(0 0 20px rgba(49, 128, 156, 0.3));
    filter: drop-shadow(0 0 20px rgba(49, 128, 156, 0.3));
}

.stat-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.8s ease;
}

.stat-card:hover .stat-shine {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}
/* Hamburger Button */
.hamburger-menu {
    position: relative;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1100;
}

/* Show hamburger menu on all screen sizes */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
}

.hamburger-menu:hover {
    background: rgba(49, 128, 156, 0.2);
    border-color: rgba(49, 128, 156, 0.4);
    transform: scale(1.05);
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hamburger Active State */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    pointer-events: none;
    overflow: hidden;
}

.menu-overlay.active {
    pointer-events: all;
}

/* Menu Background with Glass Effect */
.menu-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: -webkit-linear-gradient(135deg, 
        rgba(10, 15, 20, 0.98) 0%, 
        rgba(26, 77, 117, 0.95) 50%, 
        rgba(10, 15, 20, 0.98) 100%);
    background: linear-gradient(135deg, 
        rgba(10, 15, 20, 0.98) 0%, 
        rgba(26, 77, 117, 0.95) 50%, 
        rgba(10, 15, 20, 0.98) 100%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    opacity: 0;
    -webkit-transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-overlay.active .menu-overlay-bg {
    opacity: 1;
}

/* Menu Content */
.menu-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-overlay.active .menu-content {
    transform: translateY(0);
}

/* Menu Navigation */
.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 4rem;
}

/* Menu Items */
.menu-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 3rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    text-decoration: none;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-overlay.active .menu-item {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered Animation */
.menu-overlay.active .menu-item[data-index="1"] { transition-delay: 0.1s; }
.menu-overlay.active .menu-item[data-index="2"] { transition-delay: 0.2s; }
.menu-overlay.active .menu-item[data-index="3"] { transition-delay: 0.3s; }
.menu-overlay.active .menu-item[data-index="4"] { transition-delay: 0.4s; }

.menu-item:hover {
    background: rgba(49, 128, 156, 0.2);
    border-color: rgba(49, 128, 156, 0.4);
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 10px 40px rgba(49, 128, 156, 0.3);
}

/* Menu Item Number */
.menu-item-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(49, 128, 156, 0.6);
    font-family: 'Cormorant Garamond', serif;
    min-width: 60px;
}

/* Menu Item Text */
.menu-item-text {
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.menu-item:hover .menu-item-text {
    color: #31809C;
    text-shadow: 0 0 20px rgba(49, 128, 156, 0.6);
}

/* Menu Item Icon */
.menu-item-icon {
    margin-left: auto;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.menu-item:hover .menu-item-icon {
    color: #31809C;
    transform: translateX(10px) rotate(360deg);
}

/* Menu Footer */
.menu-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.6s;
}

.menu-overlay.active .menu-footer {
    opacity: 1;
    transform: translateY(0);
}

/* Menu Social Links */
.menu-social {
    display: flex;
    gap: 1.5rem;
}

.menu-social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.menu-social-link:hover {
    background: rgba(49, 128, 156, 0.3);
    border-color: rgba(49, 128, 156, 0.6);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(49, 128, 156, 0.4);
}

.menu-social-link .material-symbols-outlined {
    font-size: 1.5rem;
}

.menu-social-link svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Menu Contact */
.menu-contact {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-content {
        padding: 1rem;
        justify-content: center;
    }

    .menu-nav {
        gap: 0.6rem;
        margin-bottom: 2rem;
        width: 100%;
    }

    .menu-item {
        padding: 0.85rem 1.2rem;
        gap: 0.75rem;
        width: 100%;
    }
    
    .menu-item-number {
        font-size: 1rem;
        min-width: 36px;
    }
    
    .menu-item-text {
        font-size: 1.6rem;
    }
    
    .menu-item-icon {
        font-size: 1.4rem;
    }
}

/* Parallax Effect on Scroll */
.menu-overlay.active .menu-item {
    will-change: transform;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}


/* ========================================
   PAGE TRANSITIONS WITH PARALLAX
   ======================================== */

.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

.page-transition-overlay.active {
    pointer-events: all;
}

/* Transition Layers - Parallax Effect */
.transition-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.transition-layer-1 {
    background: linear-gradient(135deg, rgba(10, 15, 20, 0.95) 0%, rgba(26, 77, 117, 0.9) 100%);
    z-index: 3;
}

.transition-layer-2 {
    background: linear-gradient(135deg, rgba(26, 77, 117, 0.8) 0%, rgba(49, 128, 156, 0.7) 100%);
    z-index: 2;
    transition-delay: 0.1s;
}

.transition-layer-3 {
    background: linear-gradient(135deg, rgba(49, 128, 156, 0.6) 0%, rgba(193, 190, 190, 0.4) 100%);
    z-index: 1;
    transition-delay: 0.2s;
}

/* Active state - layers slide in */
.page-transition-overlay.active .transition-layer {
    transform: translateY(0);
}

/* Exit state - layers slide out */
.page-transition-overlay.exit .transition-layer {
    transform: translateY(100%);
}

.page-transition-overlay.exit .transition-layer-1 {
    transition-delay: 0.2s;
}

.page-transition-overlay.exit .transition-layer-2 {
    transition-delay: 0.1s;
}

.page-transition-overlay.exit .transition-layer-3 {
    transition-delay: 0s;
}

/* Transition Content */
.transition-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-transition-overlay.active .transition-content {
    opacity: 1;
    transition-delay: 0.4s;
}

.page-transition-overlay.exit .transition-content {
    opacity: 0;
    transition-delay: 0s;
}

/* Transition Logo */
.transition-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(49, 128, 156, 0.2);
    border: 2px solid rgba(49, 128, 156, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-logo 1.5s ease-in-out infinite;
}

.transition-logo .material-symbols-outlined {
    font-size: 2.5rem;
    color: #31809C;
}

@keyframes pulse-logo {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(49, 128, 156, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(49, 128, 156, 0);
    }
}

/* Transition Text */
.transition-text {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Smooth page reveal */
body {
    opacity: 0;
    animation: fadeInPage 0.6s ease-in forwards;
    animation-delay: 0.3s;
}

@keyframes fadeInPage {
    to {
        opacity: 1;
    }
}

/* Portfolio Page */
.portfolio-page-body {
    background:
        radial-gradient(circle at top, rgba(49, 128, 156, 0.2), transparent 26%),
        linear-gradient(180deg, #071018 0%, #0a0f14 28%, #071018 100%);
}

.portfolio-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.portfolio-hero::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background:
        linear-gradient(90deg, rgba(7, 16, 24, 0.3), transparent 26%, transparent 74%, rgba(7, 16, 24, 0.28)),
        linear-gradient(180deg, rgba(7, 16, 24, 0) 0%, rgba(7, 16, 24, 0.16) 65%, rgba(7, 16, 24, 0.54) 100%);
    pointer-events: none;
    z-index: 1;
}

.portfolio-hero__bg {
    position: absolute;
    top: -6%; right: -6%; bottom: -6%; left: -6%;
    background-image: linear-gradient(180deg, rgba(7, 16, 24, 0.22), rgba(7, 16, 24, 0.72)), url('../img/01.jpeg');
    background-size: cover;
    background-position: center;
    will-change: transform;
    transform-origin: center center;
}

.portfolio-hero__veil {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background:
        radial-gradient(circle at 20% 18%, rgba(127, 208, 232, 0.2), transparent 22%),
        radial-gradient(circle at 82% 22%, rgba(49, 128, 156, 0.24), transparent 24%),
        linear-gradient(180deg, rgba(7, 16, 24, 0.18) 0%, rgba(7, 16, 24, 0.82) 100%);
    transition: opacity 0.35s ease;
}

.portfolio-hero__orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.42;
    pointer-events: none;
    will-change: transform;
}

.portfolio-hero__orb--one {
    width: 26rem;
    height: 26rem;
    top: 8%;
    left: -6%;
    background: rgba(127, 208, 232, 0.22);
}

.portfolio-hero__orb--two {
    width: 24rem;
    height: 24rem;
    right: -6%;
    bottom: 10%;
    background: rgba(49, 128, 156, 0.24);
}

.portfolio-hero__content {
    position: relative;
    z-index: 2;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.portfolio-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
    gap: 2.5rem;
    align-items: end;
}

.portfolio-hero__shell {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    padding: 2.4rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.portfolio-hero__shell::after {
    content: '';
    position: absolute;
    top: -18%; right: auto; bottom: auto; left: -12%;
    width: 16rem;
    height: 16rem;
    border-radius: 999px;
    background: rgba(127, 208, 232, 0.18);
    filter: blur(70px);
    z-index: -1;
}

.portfolio-hero__shell::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 34%, transparent 68%, rgba(127, 208, 232, 0.12));
    pointer-events: none;
}

.portfolio-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: #7fd0e8;
}

.portfolio-hero__eyebrow::before {
    content: '';
    width: 2.5rem;
    height: 1px;
    background: rgba(127, 208, 232, 0.7);
}

.portfolio-hero__title {
    margin: 0;
    max-width: 11ch;
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-size: clamp(3.8rem, 9vw, 7.6rem);
    line-height: 0.88;
    letter-spacing: -0.05em;
    color: #f8fbff;
    text-wrap: balance;
}

.portfolio-hero__text {
    margin: 1.4rem 0 0;
    max-width: 40rem;
    font-size: clamp(1rem, 1.7vw, 1.15rem);
    line-height: 1.9;
    color: rgba(226, 232, 240, 0.82);
}

.portfolio-hero__floating {
    position: relative;
    min-height: 34rem;
}

.portfolio-hero__floating::before {
    content: '';
    position: absolute;
    top: 12%; right: 4%; bottom: 10%; left: 8%;
    border-radius: 2.2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.portfolio-hero__floating-tile {
    position: absolute;
    overflow: hidden;
    border-radius: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
    will-change: transform, opacity;
    transform: translate3d(0, var(--floating-y, 0px), 0) rotate(var(--floating-angle, 0deg)) scale(var(--floating-scale, 1));
    opacity: var(--floating-opacity, 1);
}

.portfolio-hero__floating-tile::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.16), transparent 34%, transparent 72%, rgba(127, 208, 232, 0.08));
    z-index: 2;
    pointer-events: none;
}

.portfolio-hero__floating-tile::after {
    content: '';
    position: absolute;
    top: -0.85rem; right: -0.85rem; bottom: -0.85rem; left: -0.85rem;
    border-radius: 2rem;
    background: radial-gradient(circle at top left, rgba(127, 208, 232, 0.24), transparent 32%), radial-gradient(circle at bottom right, rgba(49, 128, 156, 0.24), transparent 34%);
    filter: blur(30px);
    z-index: -1;
}

.portfolio-hero__floating-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.portfolio-hero__floating-tile--one {
    top: 0;
    left: 0;
    width: 58%;
    height: 20rem;
    --floating-angle: -5deg;
}

.portfolio-hero__floating-tile--two {
    top: 14%;
    right: 0;
    width: 44%;
    height: 15rem;
    --floating-angle: 6deg;
}

.portfolio-hero__floating-tile--three {
    left: 14%;
    bottom: 3.7rem;
    width: 54%;
    height: 14.5rem;
    --floating-angle: 3deg;
}

.portfolio-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.portfolio-kpi {
    padding: 1.2rem 1.1rem;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-kpi__value {
    display: block;
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.9;
    color: #fff;
}

.portfolio-kpi__label {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.72);
}

.portfolio-gallery-shell {
    position: relative;
    overflow: visible;
    padding: 0.35rem 0;
    border-radius: 2rem;
}

.portfolio-gallery-shell::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.03));
    pointer-events: none;
}

.portfolio-gallery-shell::before {
    content: '';
    position: absolute;
    top: 3%; right: 2%; bottom: 6%; left: 2%;
    border-radius: 2.2rem;
    background:
        radial-gradient(circle at top left, rgba(127, 208, 232, 0.16), transparent 26%),
        radial-gradient(circle at bottom right, rgba(49, 128, 156, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    filter: blur(18px);
    pointer-events: none;
}

/* .portfolio-gallery-grid and .portfolio-work-tile defined below (line ~2246) */

.portfolio-curation-strip {
    position: relative;
    overflow: hidden;
    border-radius: 1.6rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(31rem, 100%);
    backdrop-filter: blur(14px) saturate(145%);
    -webkit-backdrop-filter: blur(14px) saturate(145%);
}

.portfolio-curation-strip__track {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.portfolio-curation-strip__item {
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.78);
}

@media (max-width: 1023px) {
    .portfolio-hero__layout {
        grid-template-columns: 1fr;
    }

    .portfolio-hero__floating {
        min-height: 29rem;
    }
}

@media (max-width: 767px) {
    .portfolio-hero__shell {
        padding: 1.35rem;
        border-radius: 1.5rem;
    }

    .portfolio-hero__title {
        max-width: none;
        font-size: 3rem;
        line-height: 0.92;
    }

    .portfolio-kpis {
        grid-template-columns: 1fr;
    }

    .portfolio-gallery-shell {
        padding: 0;
    }

    .portfolio-work-tile {
        min-height: 16rem;
        border-radius: 1.3rem;
        transform: translate3d(0, 0, 0) scale(var(--tile-scale, 0.97));
    }

    .portfolio-work-tile:hover {
        transform: translateY(-8px) scale(1.01);
    }

    .portfolio-hero__floating {
        min-height: 22rem;
    }

    .portfolio-hero__floating-tile--one {
        width: 62%;
        height: 12rem;
    }

    .portfolio-hero__floating-tile--two {
        width: 46%;
        height: 9.5rem;
    }

    .portfolio-hero__floating-tile--three {
        width: 58%;
        height: 9.5rem;
        bottom: 4.4rem;
        left: 10%;
    }

    .portfolio-curation-strip {
        width: 100%;
    }
}


/* Liquid Glass Buttons */
.liquid-glass-btn {
    position: relative;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
                inset 0 -1px 0 0 rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.liquid-glass-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 48px 0 rgba(49, 128, 156, 0.4),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 0 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.liquid-glass-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.37),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
                inset 0 -1px 0 0 rgba(0, 0, 0, 0.1);
}

/* Liquid Shine Effect */
.liquid-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.liquid-glass-btn:hover .liquid-shine {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Liquid Glass Ripple Effect */
.liquid-glass-btn::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.liquid-glass-btn:hover::before {
    opacity: 1;
}

/* Liquid Glass Glow */
.liquid-glass-btn::after {
    content: '';
    position: absolute;
    top: -2px; right: -2px; bottom: -2px; left: -2px;
    border-radius: inherit;
    background: linear-gradient(45deg, 
        rgba(49, 128, 156, 0.3), 
        rgba(255, 255, 255, 0.2), 
        rgba(49, 128, 156, 0.3));
    opacity: 0;
    z-index: -1;
    filter: blur(10px);
    transition: opacity 0.4s ease;
}

.liquid-glass-btn:hover::after {
    opacity: 1;
}

/* Complementary Services Cards */
.complementary-services-grid {
    perspective: 1400px;
}

.complementary-service-card {
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)), linear-gradient(145deg, rgba(11, 24, 34, 0.96), rgba(7, 15, 22, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.6s ease, border-color 0.6s ease;
}

.complementary-service-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    border-radius: inherit;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.22), transparent 24%, transparent 72%, rgba(127, 208, 232, 0.16)), linear-gradient(90deg, transparent, rgba(127, 208, 232, 0.08), transparent);
    opacity: 0.7;
    pointer-events: none;
    z-index: 2;
}

.complementary-service-card::after {
    content: '';
    position: absolute;
    top: -1px; right: -1px; bottom: -1px; left: -1px;
    border-radius: inherit;
    background: radial-gradient(circle at top left, rgba(127, 208, 232, 0.2), transparent 30%), radial-gradient(circle at bottom right, rgba(49, 128, 156, 0.22), transparent 32%), linear-gradient(135deg, rgba(127, 208, 232, 0.12), transparent 40%, transparent 60%, rgba(127, 208, 232, 0.12));
    filter: blur(18px);
    opacity: 0.6;
    pointer-events: none;
    z-index: -1;
}

.complementary-service-card:hover {
    transform: rotateX(7deg) rotateY(-9deg) translateY(-14px) scale(1.01);
    border-color: rgba(127, 208, 232, 0.28);
    box-shadow: 0 34px 90px rgba(18, 72, 91, 0.28), 0 16px 34px rgba(0, 0, 0, 0.18);
}

.complementary-service-card__media {
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 92% 100%, 0 100%);
    border-bottom: 1px solid rgba(127, 208, 232, 0.12);
}

.complementary-service-card__media::before {
    content: '';
    position: absolute;
    top: auto; right: 0; bottom: 0; left: auto;
    width: 6rem;
    height: 6rem;
    background: linear-gradient(135deg, transparent 50%, rgba(127, 208, 232, 0.18) 100%);
    z-index: 1;
}

.complementary-service-card__media::after {
    content: '';
    position: absolute;
    top: 1rem; right: 1rem; bottom: auto; left: auto;
    width: 3rem;
    height: 1px;
    background: rgba(127, 208, 232, 0.6);
    box-shadow: 0 8px 0 rgba(127, 208, 232, 0.35);
    z-index: 2;
}

.complementary-service-card__media img {
    transform-origin: center center;
}

.complementary-service-card__content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
}

.complementary-service-card__content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5rem;
    height: 5rem;
    border-top: 1px solid rgba(127, 208, 232, 0.25);
    border-right: 1px solid rgba(127, 208, 232, 0.25);
    border-radius: 0 1.2rem 0 0;
    opacity: 0.8;
}

.complementary-service-card__content::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 4.5rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(127, 208, 232, 0.8), transparent);
}

.complementary-service-card__content,
.complementary-service-card__icon {
    transform: translateZ(24px);
}

.complementary-service-card__icon {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 16px 28px rgba(10, 36, 49, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.complementary-service-card__icon::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 45%);
    pointer-events: none;
}

.complementary-service-card:hover .complementary-service-card__icon {
    transform: translateZ(34px) scale(1.06);
    box-shadow: 0 22px 40px rgba(18, 72, 91, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.complementary-service-card h3 {
    max-width: 11ch;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.complementary-service-card p {
    color: rgba(226, 232, 240, 0.84);
}

.complementary-service-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    padding-top: 0.4rem;
}

.complementary-service-card ul li {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(226, 232, 240, 0.72);
    letter-spacing: 0.03em;
}

@media (max-width: 767px) {
    .complementary-service-card:hover {
        transform: translateY(-6px);
    }

    .complementary-service-card__media {
        clip-path: none;
    }

    .complementary-service-card h3 {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body {
        animation: none;
        opacity: 1;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-up {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }

    .tilt-element,
    .liquid-glass-btn,
    .complementary-service-card,
    .complementary-service-card::before,
    .complementary-service-card::after,
    .complementary-service-card__icon,
    .portfolio-hero__bg,
    .portfolio-hero__orb,
    .portfolio-work-tile,
    .portfolio-work-tile__media,
    .menu-item,
    .whatsapp-float,
    .stat-card,
    #particles-container .particle {
        animation: none;
        transition: none;
    }
}

/* ========================================
   PORTFOLIO KPIs
   ======================================== */
.portfolio-kpis {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.portfolio-kpi {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.portfolio-kpi__value {
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1;
    color: #7fd0e8;
}

.portfolio-kpi__label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.65);
}

/* ========================================
   PORTFOLIO CURATION STRIP
   ======================================== */
.portfolio-curation-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    padding: 0.75rem 0;
    background: linear-gradient(90deg, rgba(10,15,20,0.8), rgba(26,77,117,0.4), rgba(10,15,20,0.8));
    border-top: 1px solid rgba(255,255,255,0.06);
}

.portfolio-curation-strip__track {
    display: flex;
    gap: 3rem;
    animation: strip-scroll 18s linear infinite;
    white-space: nowrap;
}

.portfolio-curation-strip__item {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(127, 208, 232, 0.7);
    flex-shrink: 0;
}

@keyframes strip-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   PORTFOLIO GALLERY
   ======================================== */
.portfolio-gallery-shell {
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =============================================
   PORTFOLIO GALLERY — DESKTOP EDITORIAL GRID
   12 columnas, filas de 5rem, layout ordenado
   ============================================= */
.portfolio-gallery-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 5rem;
    grid-auto-flow: dense;
    gap: 1rem;
}

/* ========================================
   PORTFOLIO WORK TILES
   ======================================== */
.portfolio-work-tile {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(8, 13, 20, 0.4);
    box-shadow: 0 26px 58px rgba(0, 0, 0, 0.14);
    transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.7s ease;
    will-change: transform;
    opacity: 1;
    /* default: 4 cols × 6 rows = ~30rem */
    grid-column: span 4;
    grid-row: span 6;
}

.portfolio-work-tile:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 32px 72px rgba(0, 0, 0, 0.5), 0 0 40px rgba(49, 128, 156, 0.15);
    z-index: 2;
}

/* Feature: 7 cols × 9 rows — pieza hero grande */
.portfolio-work-tile--feature {
    grid-column: span 7;
    grid-row: span 9;
}

/* Wide: 5 cols × 6 rows — horizontal */
.portfolio-work-tile--wide {
    grid-column: span 5;
    grid-row: span 6;
}

/* Tall: 4 cols × 9 rows — vertical */
.portfolio-work-tile--tall {
    grid-column: span 4;
    grid-row: span 9;
}

/* Standard: 4 cols × 6 rows */
.portfolio-work-tile--standard {
    grid-column: span 4;
    grid-row: span 6;
}

.portfolio-work-tile__glow {
    position: absolute;
    top: -1rem; right: -1rem; bottom: -1rem; left: -1rem;
    border-radius: 2rem;
    background: radial-gradient(circle at 30% 30%, rgba(127, 208, 232, 0.18), transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(49, 128, 156, 0.15), transparent 50%);
    filter: blur(16px);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.portfolio-work-tile:hover .portfolio-work-tile__glow {
    opacity: 1;
}

.portfolio-work-tile__media {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--tile-position, center center);
    transform: translate3d(0, var(--media-shift, 0px), 0) scale(1.045);
    transition: transform 1.2s cubic-bezier(0.2, 0.9, 0.2, 1), filter 1.2s ease;
    filter: saturate(1.12) contrast(1.05) brightness(1.02);
}

.portfolio-work-tile:hover .portfolio-work-tile__media {
    transform: translate3d(0, var(--media-shift, 0px), 0) scale(1.1);
    filter: saturate(1.15) contrast(1.05);
}

/* Overlay glass sheen */
.portfolio-work-tile::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(125deg, rgba(255,255,255,0.18) 0%, transparent 35%),
                linear-gradient(180deg, transparent 55%, rgba(6,12,18,0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1023px) {
    .portfolio-gallery-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 4.5rem;
    }
    .portfolio-work-tile--feature {
        grid-column: span 6;
        grid-row: span 8;
    }
    .portfolio-work-tile--wide {
        grid-column: span 6;
        grid-row: span 6;
    }
    .portfolio-work-tile--tall {
        grid-column: span 3;
        grid-row: span 9;
    }
    .portfolio-work-tile--standard {
        grid-column: span 3;
        grid-row: span 6;
    }
}

@media (max-width: 639px) {
    .portfolio-gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 11rem;
        gap: 0.75rem;
    }
    .portfolio-work-tile--feature,
    .portfolio-work-tile--wide,
    .portfolio-work-tile--tall,
    .portfolio-work-tile--standard {
        grid-column: span 1;
        grid-row: span 1;
        transform: none;
    }
    .portfolio-kpis { gap: 1.25rem; }
    .portfolio-curation-strip { display: none; }
}
