:root {
    --primary-orange: #cc6600;
    --accent-orange: #fb6409;
    --cream: #fdf3e0;
    --bg-dark: #171615;
    --bg-alt: #1a1f1d; /* Slightly greenish dark for alt sections, blending #003326 and #171615 */
    --dark-green: #003326;
    --bright-green: #00b386;
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --glass-bg: rgba(253, 243, 224, 0.03);
    --glass-border: rgba(253, 243, 224, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Custom cursor styles if needed, keeping it subtle */
}

/* Custom Cursor Accent */
::selection {
    background-color: var(--accent-orange);
    color: var(--bg-dark);
}

/* Bilingual Toggle Logic */
html[lang="es"] .en { display: none !important; }
html[lang="en"] .es { display: none !important; }

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 5rem 0;
}

.alt-bg {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #101916 100%);
}

.green-bg {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--bg-dark) 100%);
}

.green-highlight {
    color: var(--bright-green);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-orange), var(--accent-orange));
    color: var(--cream);
    box-shadow: 0 4px 15px rgba(251, 100, 9, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 100, 9, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--cream);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--cream);
}

.btn-outline {
    background: transparent;
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange);
}

.btn-outline:hover {
    background: var(--accent-orange);
    color: var(--cream);
}

.btn-green {
    background: linear-gradient(90deg, #008060, var(--bright-green));
    color: var(--cream);
    box-shadow: 0 4px 15px rgba(0, 179, 134, 0.3);
}

.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 179, 134, 0.5);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 100, 9, 0.3);
    background: rgba(253, 243, 224, 0.05);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    background: rgba(23, 22, 21, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 65px;
    transition: var(--transition);
}

.header:hover .logo-img {
    transform: scale(1.05);
}

.lang-toggle {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 0.2rem 0.5rem;
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(253, 243, 224, 0.5);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition);
}

.lang-btn.active {
    color: var(--bg-dark);
    background: var(--cream);
}

/* Particles Canvas */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    opacity: 0.5;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 51, 38, 0.5);
    border: 1px solid var(--dark-green);
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    color: #4ade80;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--cream) 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(253, 243, 224, 0.8);
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.hero-microtext {
    font-size: 0.85rem;
    color: rgba(253, 243, 224, 0.5);
}

.hero-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30vh;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    z-index: 1;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    background: linear-gradient(90deg, var(--cream), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(253, 243, 224, 0.7);
}

.section-cta {
    text-align: center;
    margin-top: 4rem;
}

.microtext {
    font-size: 0.85rem;
    color: rgba(253, 243, 224, 0.5);
    margin-top: 0.5rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

.service-card p {
    color: rgba(253, 243, 224, 0.8);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.tech-detail {
    font-size: 0.8rem;
    color: rgba(253, 243, 224, 0.5);
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    margin-bottom: 1rem;
}

.service-result {
    font-weight: 600;
    color: var(--cream);
    font-size: 0.95rem;
}

/* How It Works Timeline */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-orange), var(--dark-green));
    z-index: 0;
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.step-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    flex-grow: 1;
}

.step-content h3 {
    font-size: 1.2rem;
    color: var(--cream);
}

.step-content p {
    color: rgba(253, 243, 224, 0.7);
    font-size: 0.95rem;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.portfolio-img-wrap {
    height: 250px;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

.portfolio-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img-wrap img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-content .tags {
    font-size: 0.75rem;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.portfolio-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.portfolio-content p {
    font-size: 0.9rem;
    color: rgba(253, 243, 224, 0.7);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.portfolio-content .badges {
    font-size: 0.8rem;
    color: rgba(253, 243, 224, 0.5);
    margin-bottom: 1rem;
}

.portfolio-content .result {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--cream);
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: rgba(253, 243, 224, 0.8);
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
    text-align: center;
}

.counter-box {
    padding: 1.5rem;
    border-right: 1px solid var(--glass-border);
}
.counter-box:last-child { border-right: none; }

.counter-num {
    display: inline-block;
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--accent-orange);
    line-height: 1;
}

.counter-label {
    font-size: 0.9rem;
    color: rgba(253, 243, 224, 0.6);
    margin-top: 0.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.value-card h4 {
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}
.value-card p {
    font-size: 0.9rem;
    color: rgba(253, 243, 224, 0.7);
}

.specialties {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.spec-icon {
    font-size: 1.5rem;
}

.spec-text strong {
    display: block;
    color: var(--cream);
    margin-bottom: 0.2rem;
}

.spec-text span {
    font-size: 0.85rem;
    color: rgba(253, 243, 224, 0.6);
}

/* Automations Section */
.automation-module {
    display: flex;
    gap: 3rem;
    margin-bottom: 5rem;
    align-items: center;
}

.automation-module:nth-child(even) {
    flex-direction: row-reverse;
}

.module-info {
    flex: 1;
}

.module-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.module-info p {
    color: rgba(253, 243, 224, 0.8);
    font-size: 1.05rem;
}

.module-demo {
    flex: 1;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Smart Form Demo */
.smart-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.smart-form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.smart-form-step.active {
    display: block;
}

.smart-form-question {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.smart-form-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.smart-option {
    background: rgba(253, 243, 224, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.smart-option:hover {
    background: rgba(251, 100, 9, 0.1);
    border-color: var(--accent-orange);
}

.smart-result-msg {
    padding: 1.5rem;
    background: rgba(0, 51, 38, 0.4);
    border-radius: 8px;
    border-left: 4px solid var(--accent-orange);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: rgba(253, 243, 224, 0.8);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(253, 243, 224, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--cream);
    font-family: var(--font-body);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    background: rgba(253, 243, 224, 0.1);
}

/* Booking Demo */
.booking-mockup {
    width: 100%;
    max-width: 350px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    color: #333;
}
.booking-header {
    background: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.booking-header strong { font-size: 0.9rem; color: #111; }
.booking-header span { font-size: 0.8rem; color: #666; }
.booking-body { padding: 1.5rem; }
.booking-body p { color: #555 !important; font-size: 0.9rem !important; margin-bottom: 1rem; }
.booking-body .btn-outline { color: var(--primary-orange); border-color: var(--primary-orange); }
.booking-body .btn-outline:hover { background: var(--primary-orange); color: #fff; }

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.direct-channels {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.channel-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.channel-icon {
    font-size: 2rem;
}

.channel-info strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.channel-info span {
    display: block;
    color: rgba(253, 243, 224, 0.7);
    font-size: 0.95rem;
}

.channel-info .btn-text {
    color: var(--accent-orange);
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.social-channels {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
}
.social-link:hover {
    background: rgba(253, 243, 224, 0.1);
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo img {
    height: 30px;
    opacity: 0.7;
}

.footer-info {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(253, 243, 224, 0.6);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(253, 243, 224, 0.6);
}
.footer-links a:hover {
    color: var(--accent-orange);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
}

.floating-cta-main {
    position: fixed;
    bottom: 20px;
    left: 90px; /* Al lado del whatsapp */
    background: linear-gradient(90deg, var(--primary-orange), var(--accent-orange));
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(251, 100, 9, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.floating-cta-main:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 6px 20px rgba(251, 100, 9, 0.6);
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    .floating-cta-main {
        bottom: 20px;
        left: 80px;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}
/* Floating AI Chat */
.floating-chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-orange));
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(251, 100, 9, 0.4);
    z-index: 999;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.floating-chat-toggle:hover {
    transform: scale(1.1);
}

.chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: var(--transition);
}

.chat-window.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.chat-header {
    background: rgba(253, 243, 224, 0.05);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.chat-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chat-close {
    background: transparent;
    border: none;
    color: rgba(253, 243, 224, 0.5);
    font-size: 1.2rem;
    cursor: pointer;
}
.chat-close:hover { color: var(--cream); }

.chat-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.msg-bubble {
    max-width: 85%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

.msg-bot {
    align-self: flex-start;
    background: rgba(253, 243, 224, 0.1);
    border-bottom-left-radius: 2px;
}

.msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-orange));
    color: white;
    border-bottom-right-radius: 2px;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.chat-option-btn {
    background: transparent;
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.chat-option-btn:hover {
    background: var(--accent-orange);
    color: white;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 0.5rem;
}

.chat-input-area input {
    flex-grow: 1;
    background: rgba(253, 243, 224, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    color: var(--cream);
    outline: none;
}

.chat-input-area input:focus {
    border-color: var(--accent-orange);
}

.chat-input-area button {
    background: transparent;
    border: none;
    color: var(--accent-orange);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.chat-input-area button:hover {
    background: rgba(251, 100, 9, 0.1);
}

/* Animations Classes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Responsive */
@media (max-width: 992px) {
    .counters-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .section-padding { padding: 3rem 0; }
    .process-step { flex-direction: column; gap: 1rem; }
    .process-timeline::before { left: 24px; }
    .automation-module, .automation-module:nth-child(even) { flex-direction: column; }
    .footer-container { flex-direction: column; text-align: center; }
    
    .chat-window {
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}
