/* 
 * October CMS Theme: Manzana Cuadrada
 * Premium Architectural Style
 */

@font-face {
    font-family: "AlibabaSans-Regular";
    src: url("https://assets-persist.lovart.ai/agent-static-assets/AlibabaSans-Regular.otf");
}
@font-face {
    font-family: "AlibabaSans-Medium";
    src: url("https://assets-persist.lovart.ai/agent-static-assets/AlibabaSans-Medium.otf");
}
@font-face {
    font-family: "AlibabaSans-Bold";
    src: url("https://assets-persist.lovart.ai/agent-static-assets/Alibaba-PuHuiTi-Bold.otf");
}

:root {
    --primary-green: #4caf50;
    --dark-green: #2e7d32;
    --accent-black: #1a1a1a;
    --light-bg: #ffffff;
    --gray-text: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    cursor: auto !important; /* Force system cursor visibility globally */
}

body {
    font-family: "AlibabaSans-Regular", sans-serif;
    background-color: #f8f9fa;
    color: #1a1a1a;
    width: 100%;
    overflow-x: hidden;
    line-height: 1.6;
    cursor: auto !important;
}

/* 0. Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-black);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.preloader.slide-up {
    transform: translateY(-100%);
    pointer-events: none; /* Crucial to avoid blocking clicks after animation */
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 80px;
    animation: pulseApple 1.5s infinite alternate ease-in-out;
}

.loader-text {
    color: white;
    font-family: "AlibabaSans-Medium";
    font-size: 14px;
    letter-spacing: 5px;
    margin-top: 20px;
    opacity: 0.7;
}

@keyframes pulseApple {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
        filter: drop-shadow(0 0 10px rgba(76, 175, 80, 0.4));
    }
    100% {
        transform: scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 25px rgba(76, 175, 80, 0.8));
    }
}

/* Cursor styles moved to bottom of file */

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

/* Common Container */
.container {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    position: relative;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

a, button, .filter-btn, .service-card, .faq-header {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99999; /* Higher than cursor but lower than preloader */
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

nav.nav-dark {
    background: rgba(17, 17, 17, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav.nav-dark .logo-text,
nav.nav-dark .nav-link {
    color: white;
}

nav.nav-dark .nav-link::after {
    background-color: var(--primary-green);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: "AlibabaSans-Bold";
    font-size: 24px;
    color: var(--accent-black);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 50px;
}

/* Nav Toggle (Hamburger) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100001;
}

.nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--accent-black);
    transition: all 0.3s ease;
}

nav.nav-dark .nav-toggle .bar {
    background-color: white;
}

/* Toggle Active State */
.nav-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.mobile-nav-link {
    font-family: "AlibabaSans-Bold";
    font-size: 32px;
    color: var(--accent-black);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--primary-green);
}

.nav-link {
    font-family: "AlibabaSans-Medium";
    font-size: 16px;
    color: var(--accent-black);
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-green);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Slider Structure */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    background-color: #000;
    overflow: hidden;
    color: white;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 1.2s ease-in-out,
        visibility 1.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.slide-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

/* Ken Burns Effect */
@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.15) translate(1%, 1%);
    }
}

.slide.active .ken-burns {
    animation: kenBurns 12s linear infinite alternate;
}

/* Floating Logo in Slider */
.hero-logo-floating {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0;
    pointer-events: none;
}

.slide.active .hero-logo-floating {
    animation:
        revealLogo 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards 0.3s,
        floatLogo 6s ease-in-out infinite alternate;
}

.hero-logo-floating img {
    width: 300px !important;
    opacity: 0.4;
    transition: all 0.5s ease;
    filter: brightness(1.2); /* Enhance visibility */
}

@keyframes revealLogo {
    from {
        transform: translate(-50%, -40%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1; /* Keep container visible, control opacity on img */
    }
}

@keyframes floatLogo {
    from {
        transform: translate(-50%, -50%) translateY(0);
    }
    to {
        transform: translate(-50%, -50%) translateY(-30px);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    width: 90%;
}

.hero-title {
    font-family: "AlibabaSans-Bold";
    font-size: clamp(38px, 8vw, 110px);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -2px;
    color: #fff;
    text-transform: uppercase;
    opacity: 0;
}

.hero-tagline {
    font-family: "AlibabaSans-Regular";
    font-size: clamp(18px, 3vw, 32px);
    color: var(--primary-green);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 40px;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 1;
}

/* Button Variants */
/* Button Wrapper for Animation Isolation */
.hero-btn-wrapper {
    display: inline-block;
    opacity: 0;
    will-change: transform, opacity;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 35px;
    font-family: "AlibabaSans-Medium";
    font-size: 16px;
    border-radius: 5px; /* Architectural square look */
    transition:
        transform 0.2s ease-out,
        background 0.4s ease,
        color 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
    will-change: transform;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-glass:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: var(--primary-green);
    transform: translateY(-5px);
}

.btn-solid {
    background: var(--primary-green);
    color: white;
    border: 1px solid var(--primary-green);
}

.btn-solid:hover {
    background: #fff;
    color: var(--accent-black);
    border-color: #fff;
    transform: translateY(-5px);
}

.btn-outline {
    background: transparent;
    border: 1px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: #000;
    transform: translateY(-5px);
}

/* Premium Animations */
@keyframes revealUp {
    from {
        transform: translateY(60px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes revealBlur {
    from {
        transform: scale(1.1);
        filter: blur(25px);
        opacity: 0;
    }
    to {
        transform: scale(1);
        filter: blur(0);
        opacity: 1;
    }
}

@keyframes revealScale {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes revealClip {
    from {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }
    to {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

@keyframes revealLeft {
    from {
        transform: translateX(-60px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes revealFlip {
    from {
        transform: perspective(1000px) rotateX(-90deg);
        opacity: 0;
    }
    to {
        transform: perspective(1000px) rotateX(0);
        opacity: 1;
    }
}

/* Hover Shine Effect */
.hover-shine {
    position: relative;
    overflow: hidden !important;
}

.hover-shine::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    transition: none;
    opacity: 0;
}

.hover-shine:hover::after {
    animation: shineEffect 0.8s ease-in-out;
}

@keyframes shineEffect {
    0% {
        left: -60%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 130%;
        opacity: 0;
    }
}

/* Hover Pulse Effect */
.hover-pulse:hover {
    animation: pulseBtn 1.5s infinite;
}

@keyframes pulseBtn {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Animation Classes Binding */
.slide.active .reveal-up {
    animation: revealUp 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}
.slide.active .reveal-blur {
    animation: revealBlur 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}
.slide.active .reveal-scale {
    animation: revealScale 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}
.slide.active .reveal-clip {
    animation: revealClip 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}
.slide.active .reveal-left {
    animation: revealLeft 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}
.slide.active .reveal-flip {
    animation: revealFlip 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.slider-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: auto;
    z-index: 100;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-50%) scale(1.1);
}

#prevSlide {
    left: 60px;
}

#nextSlide {
    right: 60px;
}
#nextSlide {
    right: 40px;
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    pointer-events: auto;
}

.dot {
    width: 8px;
    height: 8px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.4s ease;
}

.dot.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    width: 40px;
}

.section {
    padding: 120px 150px;
    position: relative;
    background-color: #fff;
}

.section-header {
    margin-bottom: 80px;
    text-align: center;
}

.section-subtitle {
    font-family: "AlibabaSans-Bold";
    font-size: 14px;
    color: var(--primary-green);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.section-title {
    font-family: "AlibabaSans-Bold";
    font-size: clamp(32px, 5vw, 48px);
    color: var(--accent-black);
    line-height: 1.2;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.about-text p {
    font-size: 18px;
    color: var(--gray-text);
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.stat-item {
    background-color: #f5f7fa;
    padding: 30px 5px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.stat-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-green);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.stat-item:hover {
    transform: translateY(-5px);
    background-color: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    border-color: transparent;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item h3,
.stat-item .stat-number {
    font-family: "AlibabaSans-Bold";
    font-size: clamp(16px, 1.8vw, 22px);
    color: var(--primary-green);
    margin-bottom: 5px;
    line-height: 1;
    letter-spacing: -2px;
}

.stat-item p {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: "AlibabaSans-Medium";
    margin: 0;
    color: var(--accent-black);
    opacity: 0.8;
}

.about-image {
    position: relative;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.projects-section {
    background-color: var(--accent-black);
    color: #fff;
    padding: 100px 5%;
    min-height: 100vh;
}

.projects-section .section-title {
    color: #fff;
}

/* Portfolio Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 30px;
    border-radius: 30px;
    font-family: "AlibabaSans-Medium";
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: #fff;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.project-card.hide {
    display: none !important;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.projects-grid:hover .project-card {
    opacity: 0.3;
}

.project-card {
    position: relative;
    height: 480px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    opacity: 1 !important;
    transform: scale(1.02);
    z-index: 5;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.extra-projects {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.load-more-container {
    text-align: center;
    margin-top: 60px;
}

.load-more-btn {
    background: transparent;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    padding: 15px 40px;
    font-family: "AlibabaSans-Medium";
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.load-more-btn:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.2);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

.project-cat {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-green);
    margin-bottom: 0;
}

.project-title {
    font-family: "AlibabaSans-Bold";
    font-size: 28px;
    margin-bottom: 0;
    line-height: 1.2;
}

.project-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-family: "AlibabaSans-Regular";
}

.project-meta i {
    color: var(--primary-green);
    margin-right: 5px;
}

.project-credits-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 8px;
}

.project-credits {
    font-size: 14px;
    color: #ccc;
    font-family: "AlibabaSans-Medium";
    margin-bottom: 0;
}

/* Projects Swiper Customization */
.projects-swiper {
    padding-bottom: 50px !important;
}

.projects-swiper .swiper-button-next,
.projects-swiper .swiper-button-prev {
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.projects-swiper .swiper-button-next:after,
.projects-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.projects-swiper .swiper-button-next:hover,
.projects-swiper .swiper-button-prev:hover {
    background: var(--primary-green);
    color: white !important;
}

.projects-swiper .swiper-pagination-bullet {
    background: #555;
    opacity: 0.5;
}

.projects-swiper .swiper-pagination-bullet-active {
    background: var(--primary-green);
    opacity: 1;
}

.services-section {
    background-color: #f5f7fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    justify-content: center;
}

.service-card {
    background: white;
    padding: 50px 30px;
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid transparent;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 48px;
    color: var(--primary-green);
    margin-bottom: 30px;
    display: inline-block;
}

.service-title {
    font-family: "AlibabaSans-Bold";
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--accent-black);
}

.service-desc {
    font-size: 15px;
    color: var(--gray-text);
    line-height: 1.6;
}

.contact-section {
    background: #1a1a1a;
    color: white;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
}

.contact-info-panel {
    background-color: #1a1a1a;
    color: white;
    padding: 120px 100px;
    position: relative;
    overflow: hidden;
}

.contact-info-panel::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(
        circle,
        var(--primary-green) 0%,
        transparent 70%
    );
    opacity: 0.15;
    border-radius: 50%;
}

.contact-form-panel {
    padding: 120px 100px;
    background-color: #fff;
    color: #1a1a1a;
}

.contact-info-panel h2 {
    font-family: "AlibabaSans-Bold";
    font-size: 48px;
    margin-bottom: 20px;
}

.contact-info-panel p.desc {
    margin-bottom: 50px;
    opacity: 0.8;
    font-size: 18px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-green);
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.info-text p {
    color: #999;
    font-size: 16px;
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 2px solid #ddd;
    background: transparent;
    font-size: 18px;
    font-family: "AlibabaSans-Regular", sans-serif;
    outline: none;
    transition: border-color 0.3s;
    color: #1a1a1a;
}

.form-input:focus {
    border-color: var(--primary-green);
}

.form-label {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 16px;
    color: #999;
    transition: all 0.3s;
    pointer-events: none;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -10px;
    font-size: 12px;
    color: var(--primary-green);
}

.submit-btn {
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 16px;
    font-family: "AlibabaSans-Medium";
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

.submit-btn:hover {
    background-color: var(--dark-green);
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

footer {
    background: #111;
    color: white;
    padding: 50px 100px;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-logo span {
    font-family: "AlibabaSans-Bold";
    font-size: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    width: 60px; /* Aumentado de 40px */
    height: 60px; /* Aumentado de 40px */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05); /* Más sutil */
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px; /* Icono más grande */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link:hover {
    transform: translateY(-8px) scale(1.1);
    background: var(--primary-green);
    border-color: var(--primary-green);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

.social-link.whatsapp:hover {
    background: #25d366; /* Color oficial WhatsApp */
    border-color: #25d366;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: #fff !important;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 999999 !important; /* Absolute top priority */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer !important;
    animation: fadeInScale 0.8s ease-out forwards;
}

@keyframes fadeInScale {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #128c7e;
    box-shadow: 2px 5px 20px rgba(0, 0, 0, 0.4);
}

.whatsapp-float::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 5px;
}

/* Mission & Vision */
.mivi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.mivi-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.mivi-card:hover {
    transform: translateY(-10px);
}

.mivi-icon {
    font-size: 40px;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.mivi-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark-blue);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    padding: 30px;
    background: var(--bg-light);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.value-card:hover {
    background: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-green);
}

.value-card i {
    font-size: 35px;
    color: var(--primary-green);
    margin-bottom: 20px;
    display: block;
}

.value-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.philosophy-content p {
    margin-bottom: 20px;
}

/* Page Header (Sub-pages like Nosotros, Servicios, Contacto) */
.page-header {
    background-color: var(--accent-black);
    color: white;
    text-align: center;
    padding: 160px 20px 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-title {
    font-family: "AlibabaSans-Bold";
    font-size: clamp(36px, 6vw, 64px);
    margin-bottom: 15px;
    line-height: 1.15;
    position: relative;
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.team-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-img-wrapper {
    width: 100%;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.05);
}

.team-name {
    font-family: "AlibabaSans-Bold";
    font-size: 22px;
    color: var(--accent-black);
    margin-bottom: 5px;
}

.team-role {
    font-size: 14px;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: "AlibabaSans-Medium";
}

.bg-light {
    background-color: #f5f7fa;
}

.text-center {
    text-align: center;
}

/* Artevo Custom Cursor */
.mouse-cursor {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    border-radius: 50%;
    transform: translateZ(0);
    z-index: 1000000;
}

.cursor-inner {
    margin-left: -4px;
    margin-top: -4px;
    width: 8px;
    height: 8px;
    background-color: var(--primary-green);
    transition:
        width 0.3s ease-in-out,
        height 0.3s ease-in-out,
        margin 0.3s ease-in-out,
        opacity 0.3s ease-in-out;
}

.cursor-inner.cursor-hover {
    margin-left: -30px;
    margin-top: -30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-green);
    opacity: 0.15;
}

.cursor-outer {
    margin-left: -15px;
    margin-top: -15px;
    width: 30px;
    height: 30px;
    border: 1px solid var(--primary-green);
    box-sizing: border-box;
    z-index: 1000000;
    opacity: 0.5;
    transition: all 0.08s ease-out;
}

.cursor-outer.cursor-hover {
    opacity: 0;
    transform: scale(1.5);
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: clamp(40px, 10vw, 80px);
    }
    .section {
        padding: 80px 40px;
    }
    .about-grid,
    .contact-section {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .projects-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    nav {
        padding: 15px 20px;
    }
    .nav-toggle {
        display: flex !important;
    }
    .nav-links {
        display: none !important;
    }
    .contact-info-panel,
    .contact-form-panel {
        padding: 60px 40px;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }
    .logo-text {
        font-size: 20px;
    }
    .hero-tagline {
        font-size: 16px;
        letter-spacing: 3px;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .hero-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 14px;
    }
    .slider-arrow {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    #prevSlide {
        left: 10px;
    }
    #nextSlide {
        right: 10px;
    }
    .hero-tagline {
        margin-bottom: 25px;
    }
    .hero-title {
        margin-bottom: 15px;
    }
    .hero-logo-floating img {
        width: 180px !important;
        opacity: 0.15;
    }
    .projects-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        width: 100%;
        max-width: 100%;
    }
    .section {
        padding: 60px 20px;
    }
    .section-header {
        margin-bottom: 40px;
    }
    .contact-info-panel h2 {
        font-size: 32px;
        line-height: 1.2;
    }
    .contact-info-panel,
    .contact-form-panel {
        padding: 40px 20px;
    }
    .about-image {
        height: 350px;
        border-radius: 15px;
    }
    .about-image img {
        transform: none !important; /* Disable parallax on mobile */
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    .stat-item {
        padding: 40px 20px;
        width: 100%;
    }
    .stat-item h3 {
        font-size: 42px;
    }
    .service-card {
        padding: 50px 30px;
        width: 100%;
        text-align: center;
    }
    .project-card {
        height: 450px; /* More reasonable for mobile */
    }
    .project-title {
        font-size: 24px;
    }
    footer {
        padding: 40px 20px;
    }
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .logo-container {
        justify-content: center;
    }
    /* Nosotros page mobile */
    .page-header {
        padding: 120px 20px 50px;
    }
    .page-title {
        font-size: 32px;
    }
    .page-subtitle {
        font-size: 16px;
    }
    .mivi-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .mivi-card {
        padding: 30px 25px;
    }
    .mivi-card h3 {
        font-size: 20px;
    }
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .value-card {
        padding: 25px;
    }
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 30px;
    }
    .team-img-wrapper {
        height: 280px;
    }
}

/* WhatsApp Float with Pulse */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #fff;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: all 0.3s ease;
    animation: wa-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

@keyframes wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Custom Cursor Refinement */
.mouse-cursor {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    border-radius: 50%;
    transform: translateZ(0);
    visibility: hidden;
    z-index: 100000;
}

.cursor-inner {
    width: 8px;
    height: 8px;
    margin-left: -4px;
    margin-top: -4px;
    z-index: 100001;
    background-color: var(--primary-green);
    transition: transform 0.15s ease-out, width .3s ease-in-out, height .3s ease-in-out, opacity .3s ease-in-out;
}

.cursor-inner.cursor-hover {
    opacity: 0; /* Hide dot on hover or expand? Reference often hides it or expands. I'll hide for focus. */
}

.cursor-outer {
    width: 30px;
    height: 30px;
    margin-left: -15px;
    margin-top: -15px;
    border: 1.5px solid var(--primary-green);
    box-sizing: border-box;
    transition: transform 0.3s ease-out, width 0.3s ease-out, height 0.3s ease-out, opacity 0.3s ease-out;
}

.cursor-outer.cursor-hover {
    margin-left: -40px;
    margin-top: -40px;
    width: 80px;
    height: 80px;
    background-color: rgba(76, 175, 80, 0.08);
    border-width: 1.5px;
    opacity: 0.8;
}

/* Click Compression Effect */
.cursor-outer.cursor-clicked {
    width: 25px;
    height: 25px;
    margin-left: -12.5px;
    margin-top: -12.5px;
    background-color: rgba(76, 175, 80, 0.3);
    opacity: 0.6;
}


/* Lenis Smooth Scroll Compatibility */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}
