:root {
    /* Color Palette */
    --primary: #7DD3C0;
    --primary-light: #A8E6CF;
    --accent: #2A9D8F;
    --text-main: #264653;
    --energy: #9B5DE5;
    --highlight: #F4A261;
    --bg-soft: #F8F6F3;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.4);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-soft);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.subtitle {
    font-family: var(--font-heading);
    font-weight: 700;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
.main-header {
    background: var(--glass);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 65px;
    border-radius: 50%;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.logo img:hover {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 8px 20px rgba(125, 211, 192, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-accent {
    background-color: #9B5DE5;
    /* Magenta Pastelish */
    color: var(--white);
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-accent:hover {
    background-color: #7b4ac3;
    transform: scale(1.05);
}

.btn-secondary {
    background-color: var(--highlight);
    color: var(--white);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 157, 143, 0.35);
    /* Verde cristal */
    backdrop-filter: blur(5px);
    /* Efecto de cristal */
    z-index: 0;
}

/* Base scrollbar hidden for Lenis */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    max-width: 800px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Sections General */
section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.subtitle {
    display: block;
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-style: italic;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-main);
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 20px auto;
    border-radius: 10px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(42, 157, 143, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.service-card {
    padding: 10px;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.service-card:hover {
    box-shadow: 0 15px 45px rgba(42, 157, 143, 0.15);
    /* Transform happens dynamically via JS 3D tilt */
}

.service-image {
    width: 100%;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-info {
    padding: 10px 15px 20px;
}

.service-info h3 {
    margin-bottom: 10px;
    color: var(--accent);
}

.service-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Asymmetric Layout */
.asym-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.asym-image .image-wrapper {
    position: relative;
    padding: 20px;
}

.asym-image img {
    width: 100%;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    /* Organic shape */
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
}

.organic-shape {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: var(--primary-light);
    z-index: -1;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    opacity: 0.3;
    animation: morph 8s ease-in-out infinite alternate;
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 40% 50% 40% 30% / 30% 70% 60% 40%;
    }
}

.highlight {
    color: var(--highlight);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.asym-content h2 {
    font-size: 3rem;
    margin: 20px 0;
    line-height: 1.2;
}

.features {
    list-style: none;
    margin: 30px 0;
}

.features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features span {
    color: var(--accent);
    font-weight: bold;
}

/* Testimonials */
.testimonials {
    background: linear-gradient(rgba(125, 211, 192, 1), rgba(42, 157, 143, 1));
}

.section-title.white h2,
.section-title.white .subtitle {
    color: var(--white);
}

.carousel-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollCarousel 30s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.testimonial-item {
    width: 600px;
    padding: 40px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
}

@keyframes scrollCarousel {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 15px));
    }
}

@media (max-width: 768px) {
    .testimonial-item {
        width: 300px;
    }
}

.testimonial-item p {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--white);
    margin-bottom: 30px;
}

.author-name {
    display: block;
    font-weight: 700;
    color: var(--white);
}

.author-title {
    font-size: 0.9rem;
    opacity: 0.8;
    color: var(--white);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 60px;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    color: var(--accent);
}

.contact-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--primary-light);
    border-radius: 50%;
    font-style: normal;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

input:not([type="checkbox"]),
textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(42, 157, 143, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
}

input:not([type="checkbox"]):focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.15);
    background: var(--white);
}

input::placeholder,
textarea::placeholder {
    color: rgba(38, 70, 83, 0.4);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
}

.checkbox-group input[type="checkbox"] {
    position: relative;
    top: 4px;
    min-width: 18px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-main);
    opacity: 0.85;
    margin-bottom: 0;
    cursor: pointer;
    line-height: 1.4;
}

.contact-form button {
    font-size: 1.05rem;
    padding: 16px;
    letter-spacing: 0.5px;
}

.full-width {
    width: 100%;
}

/* Footer */
.main-footer {
    background: var(--text-main);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 100px;
    width: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: white;
    /* Asegura un fondo limpio si la imagen es transparente */
    padding: 5px;
}

.footer-logo:hover {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 12px 30px rgba(125, 211, 192, 0.4);
}

.footer-links ul {
    list-style: none;
    margin-top: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-circle {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--white);
    transition: background 0.3s;
}

.social-circle:hover {
    background: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Animations & Scroll Reveals */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.fade-in-delayed {
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2500;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    padding: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.whatsapp {
    background-color: #25D366;
}

.float-btn:hover {
    transform: scale(1.1);
}

.float-btn svg {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    flex-shrink: 0;
    stroke: white;
    fill: none;
    display: block;
}

/* Mobile Nav Base Settings (Hidden on Desktop) */
.mobile-nav {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .asym-layout {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 20px;
    }

    .main-header {
        background: rgba(255, 255, 255, 0.8) !important;
        backdrop-filter: blur(8px);
    }

    .nav-links,
    .main-header .btn {
        display: none !important;
    }

    .mobile-hide {
        display: none !important;
    }

    .logo img {
        height: 45px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        padding: 0 10px;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 15px;
    }

    .asym-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .asym-content h2 {
        font-size: 2.2rem;
    }

    .features li {
        justify-content: center;
    }

    .testimonial-item {
        width: 85vw;
        padding: 30px 20px;
    }

    .testimonial-item p {
        font-size: 1.2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand,
    .footer-links,
    .footer-social {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }

    .floating-actions {
        bottom: 110px;
        right: 20px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
    }

    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 25px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        height: 70px;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 35px;
        z-index: 2000;
        justify-content: space-around;
        align-items: center;
        padding: 0 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: var(--text-main);
        transition: all 0.3s ease;
        opacity: 0.6;
        cursor: pointer;
    }

    .mobile-nav-item svg {
        width: 24px;
        height: 24px;
        stroke: currentColor;
    }

    .mobile-nav-item span {
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .mobile-nav-item.active {
        opacity: 1;
        color: var(--accent);
        transform: translateY(-5px);
    }
}