:root {
    --c-green: #72BC68;
    --c-purple: #570260;
    --bg-cream: #F1EFE0;
    --bg-white: #FFFFFF;
    --bg-gray: #F4F4F4;
    --text-dark: #1A1A1A;
    --text-muted: #666666;
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(87, 2, 96, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    font-family: var(--font-body);
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-cream); }
::-webkit-scrollbar-thumb { background: var(--c-purple); border-radius: 5px; }

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background: var(--bg-cream);
    box-shadow: var(--shadow-light);
    padding: 15px 5%;
}

.logo img {
    height: 45px;
    position: relative;
    z-index: 2;
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
    z-index: 2;
}

nav a {
    color: var(--bg-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

header.scrolled nav a, header.scrolled .mobile-menu-btn {
    color: var(--text-dark);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--c-purple);
    transition: var(--transition);
}

nav a:hover::after { width: 100%; }

.lang-dropdown-wrapper {
    position: relative;
    user-select: none;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--bg-white);
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

header.scrolled .lang-toggle {
    background: var(--c-green);
    border-color: var(--c-green);
    color: var(--bg-white);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--bg-white);
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.lang-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.lang-option {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    transition: background 0.2s;
}

.lang-option:hover { background: #f0f0f0; }
.lang-option.active { background: var(--c-purple); color: var(--bg-white); }

.mobile-menu-btn {
    display: none;
    color: var(--bg-white);
    cursor: pointer;
    z-index: 101;
}

section {
    padding: 100px 5%;
    position: relative;
    z-index: 2;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--c-green);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

#bg-w-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.w-path {
    stroke-dasharray: 5000;
    stroke-dashoffset: 5000;
    animation: drawW 3.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes drawW { to { stroke-dashoffset: 0; } }

.hero-content {
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--bg-white);
    font-weight: 900;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: var(--c-purple);
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 5px;
    border: 2px solid var(--c-purple);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: var(--c-purple);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before { width: 100%; }
.btn:hover { color: var(--bg-white); }

.hero .btn {
    background: transparent;
    color: var(--bg-cream);
    border-color: var(--c-purple);
}

.hero .btn::before { background: var(--c-purple); }
.hero .btn:hover { color: var(--bg-white); }

.sobre-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
}

.sobre-top {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
}

.sobre-img-box {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.sobre-img-box img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    display: block;
}

.sobre-square {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background-color: var(--c-green);
    z-index: 1;
}

.sobre-text-box {
    position: relative;
}

.green-line {
    width: 40px;
    height: 2px;
    background-color: var(--c-green);
    margin-bottom: 20px;
}

.sobre-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--text-dark);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.underline-green {
    border-bottom: 5px solid var(--c-green);
    display: inline-block;
    line-height: 0.8;
    padding-bottom: 5px;
}

.sobre-text-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 90%;
}

.small-link {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--text-dark);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.small-link:hover { color: var(--c-green); }

.bg-quote {
    position: absolute;
    bottom: -60px;
    right: 0;
    font-family: var(--font-head);
    font-size: 12rem;
    line-height: 1;
    color: rgba(0,0,0,0.04);
    z-index: -1;
    user-select: none;
}

.sobre-bottom {
    max-width: 900px;
    position: relative;
}

.sobre-bottom .sobre-title {
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
}

.cases-section {
    padding-top: 50px;
    background: var(--bg-cream);
}

.section-header-center {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--text-dark);
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.section-subtitle {
    color: var(--c-green);
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.cases-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0 60px 0;
}

.cases-carousel::-webkit-scrollbar { display: none; }

.cases-carousel a {
    flex: 0 0 320px;
    display: block;
    text-decoration: none;
}

.case-item {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1.1;
    background: var(--bg-white);
    box-shadow: var(--shadow-light);
}

.case-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.case-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(87, 2, 96, 0.95) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
    border-bottom: 4px solid var(--c-green);
    transition: var(--transition);
    box-shadow: inset 0 -80px 60px -20px rgba(87, 2, 96, 0.8);
}

.case-item:hover img { transform: scale(1.12); }

.case-overlay h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--bg-white);
    margin-bottom: 5px;
    font-weight: 700;
}

.case-overlay p {
    color: var(--c-green);
    font-size: 0.9rem;
    font-weight: 600;
}

.acc-container {
    margin-top: 40px;
    max-width: 1000px;
}

.acc-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.acc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 25px 0;
    transition: var(--transition);
}

.acc-header h3 {
    font-family: var(--font-head);
    font-size: 1.6rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 900;
    transition: color 0.3s;
}

.acc-icon {
    width: 30px;
    height: 30px;
    position: relative;
    flex-shrink: 0;
}

.acc-icon::before, .acc-icon::after {
    content: '';
    position: absolute;
    background: var(--c-green);
    transition: var(--transition);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.acc-icon::before { width: 20px; height: 3px; }
.acc-icon::after { width: 3px; height: 20px; }

.acc-item.active .acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.acc-item.active .acc-icon::before { background: var(--c-purple); }
.acc-item.active .acc-header h3 { color: var(--c-purple); }

.acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0, 1, 0, 1);
}

.acc-item.active .acc-body {
    max-height: 2000px;
    transition: max-height 1s ease-in-out;
}

.acc-content {
    padding-bottom: 30px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.acc-content h4 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 25px 0 10px 0;
    text-transform: uppercase;
}

.card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-light);
}

.calendario-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    background: var(--bg-white);
    padding: 60px;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    border-left: 8px solid var(--c-green);
    align-items: center;
}

.calendario-left h2 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: var(--text-dark);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.calendario-left h2 span { color: var(--c-purple); }
.calendario-left p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.calendario-right h4 {
    color: var(--c-purple);
    font-family: var(--font-head);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 900;
}

.calendario-right p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 15px;
}

.grid-2-contact {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.contact-info svg {
    stroke: var(--c-green);
    min-width: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    background: var(--bg-gray);
    border: 1px solid transparent;
    padding: 16px 20px;
    border-radius: 4px;
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    border-color: var(--c-green);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(114, 188, 104, 0.1);
}

footer {
    background: var(--c-purple);
    color: var(--bg-cream);
    padding: 80px 5% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--c-green);
    transform: translateY(-5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--bg-cream);
    text-decoration: none;
    margin-right: 20px;
    transition: var(--transition);
}

.footer-bottom a:hover { color: var(--c-green); }

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float svg { width: 34px; height: 34px; fill: currentColor; }
.whatsapp-float:hover { transform: scale(1.1) rotate(5deg); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .sobre-top, .grid-2-contact, .calendario-container { grid-template-columns: 1fr; gap: 40px; }
    .sobre-img-box { max-width: 300px; margin-bottom: 30px; }
    .bg-quote { display: none; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; justify-content: center; }
    .social-links { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    nav {
        position: fixed;
        top: 0; right: -100%;
        width: 100%; height: 100vh;
        background: var(--bg-cream);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s;
    }
    nav a { color: var(--text-dark); font-size: 1.2rem; }
    nav.active { right: 0; }
    header.scrolled .mobile-menu-btn { color: var(--text-dark); }
}
.btn-calendario {
    border-color: var(--c-green);
    color: var(--c-purple);
}

.acc-container {
    margin-top: 20px;
    width: 100%;
}

.acc-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
}

.acc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    cursor: pointer;
}

.acc-header h3 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

.acc-icon {
    position: relative;
    width: 24px;
    height: 24px;
}

.acc-icon::before, .acc-icon::after {
    content: '';
    position: absolute;
    background-color: var(--c-green);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.acc-icon::before { width: 16px; height: 2px; }
.acc-icon::after { width: 2px; height: 16px; }

.acc-item.active .acc-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.acc-item.active .acc-body {
    max-height: 1000px;
}

.acc-content {
    padding-bottom: 30px;
}

.acc-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.btn-hero-white {
    background: var(--bg-white);
    color: var(--c-purple);
    border: 2px solid var(--c-purple);
}

.btn-hero-white:hover {
    background: var(--c-purple);
    color: var(--bg-white);
}

.btn-outline-green {
    background: transparent;
    color: var(--c-purple);
    border: 2px solid var(--c-green);
}

.btn-outline-green:hover {
    background: var(--c-purple);
    color: var(--bg-white);
    border-color: var(--c-purple);
}

.section-header-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .section-header-split {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}