:root {
    --primary: #0047AB; /* Cobalt Blue */
    --primary-light: #3366cc;
    --primary-dark: #002e73;
    --accent: #25D366; /* WhatsApp Green */
    --accent-dark: #1da851;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --bg-main: #FFFFFF;
    --bg-light: #F8FAFC;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-lg: 24px;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--primary);
}

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

.center {
    text-align: center;
}

.lang-en { display: none !important; }
.lang-es { display: inline-block !important; }

/* Layout Utilities */
section {
    padding: 5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--bg-light);
    max-width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
}

/* Language Switch */
.toggle-switch {
    position: relative;
    display: flex;
    align-items: center;
    width: 70px;
    height: 34px;
    background-color: #e2e8f0;
    border-radius: 34px;
    cursor: pointer;
    transition: 0.3s;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 28px;
    height: 28px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 2;
}

input:checked + .slider {
    transform: translateX(36px);
}

.toggle-switch .label-es, .toggle-switch .label-en {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 1;
}

.toggle-switch .label-es {
    right: 10px;
    color: var(--text-muted);
}

.toggle-switch .label-en {
    left: 10px;
    color: var(--text-muted);
}

input:checked ~ .label-es { color: var(--text-muted); }
input:not(:checked) ~ .label-en { color: var(--text-muted); }

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 71, 171, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 71, 171, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}

/* Ensure links styled as buttons have no underline */
a.btn-primary { text-decoration: none; display: inline-block; }

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 8rem;
    gap: 3rem;
}

@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        justify-content: space-between;
    }
    .hero-content {
        flex: 1;
        padding-right: 2rem;
    }
    .hero-visual {
        flex: 1;
    }
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 71, 171, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero h1 { font-size: 3.5rem; }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.small-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

@media (min-width: 768px) {
    .cta-group { align-items: flex-start; }
    .small-text { text-align: left; margin-left: 1rem; }
}

/* Hero Visual & Image */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    /* Soft floating animation */
    animation: float 6s ease-in-out infinite;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.2) 0%, rgba(0, 71, 171, 0) 70%);
    z-index: 1;
    filter: blur(40px);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Calculator Section */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.calc-header {
    text-align: center;
    margin-bottom: 2rem;
}

.slider-group {
    margin-bottom: 2rem;
}

.slider-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
}

.range-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

input[type=range] {
    flex: 1;
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #cbd5e1;
    border-radius: 4px;
}

.val-display {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    min-width: 60px;
    text-align: right;
}

.result-box {
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.result-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.result-label {
    font-size: 1rem;
    opacity: 0.9;
}

.result-value {
    font-size: 3.5rem;
    margin: 0.5rem 0;
}

.result-sub {
    font-size: 0.875rem;
    opacity: 0.9;
}
.result-sub strong { color: var(--accent); }

/* Value Prop Grid */
.section-header {
    margin-bottom: 3rem;
}
.section-header h2 { font-size: 2rem; margin-bottom: 1rem; }

.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-container { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .grid-container { grid-template-columns: repeat(4, 1fr); }
}

.card {
    background: white;
    padding: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image-container img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Features */
.feature-row {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.icon-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

@media (min-width: 768px) {
    .feature-row { flex-direction: row; align-items: center; }
    .feature-text { flex: 1; }
    .feature-visual-container { flex: 1; }
}

/* Phone Mockup and Chat Sim Styles */
.feature-visual-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: #111;
    border: 12px solid #222;
    border-radius: 40px;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.3), 0 30px 60px -30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #e5ddd5; /* WhatsApp bg */
    display: flex;
    flex-direction: column;
}

.chat-sim-header {
    background: #075e54;
    color: white;
    padding: 2rem 1rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-sim-avatar {
    width: 35px;
    height: 35px;
    background: #ccc;
    border-radius: 50%;
    overflow: hidden;
}

.chat-sim-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-sim-info {
    display: flex;
    flex-direction: column;
}

.chat-sim-info strong { font-size: 0.9rem; }
.chat-sim-info span { font-size: 0.7rem; opacity: 0.8; }

.chat-sim-body {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-sim-bubble {
    max-width: 85%;
    padding: 0.6rem;
    border-radius: 10px;
    font-size: 0.8rem;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.chat-sim-bubble.incoming {
    background: white;
    align-self: flex-start;
}

.chat-sim-bubble.outgoing {
    background: #dcf8c6;
    align-self: flex-end;
}

.chat-sim-time {
    display: block;
    font-size: 0.6rem;
    color: #999;
    text-align: right;
    margin-top: 4px;
}

.audio-player {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.play-icon { color: #555; width: 20px; }

.audio-waves {
    display: flex;
    align-items: center;
    gap: 3px;
}

.audio-waves span {
    width: 2px;
    background: #aaa;
    border-radius: 1px;
}

.audio-waves span:nth-child(odd) { height: 10px; }
.audio-waves span:nth-child(even) { height: 15px; }

.audio-duration { font-size: 0.7rem; color: #777; }

.mic-area {
    padding: 1rem;
    display: flex;
    justify-content: center;
    background: #f0f0f0;
}

.mic-pulse-btn {
    background: var(--accent);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 rgba(37, 211, 102, 0.4);
    animation: mic-heartbeat 1.5s infinite;
}

@keyframes mic-heartbeat {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Testimonial */
.testimonial {
    text-align: center;
    padding: 4rem 1.5rem;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.quote-icon { margin-bottom: 1rem; }

/* Pricing Styles */
.pricing-section {
    background-color: var(--bg-light);
    max-width: 100%;
}

.pricing-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.pricing-card {
    background: white;
    width: 100%;
    max-width: 450px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    position: relative;
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--primary);
}

.pricing-header {
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #f1f5f9;
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.price {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.period {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-body {
    padding: 3rem 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.check-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.btn-full {
    width: 100%;
    padding: 1.25rem;
}

/* FAQ */
blockquote {
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    color: var(--primary-dark);
}

@media (min-width: 768px) {
    blockquote { font-size: 2rem; }
}

/* FAQ */
.accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    background: white;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: transparent;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header .icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.accordion-header.active .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.accordion-content p {
    padding-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    background: var(--text-main);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content { flex-direction: row; justify-content: space-between; }
}

.footer-brand p { color: #cbd5e1; margin-top: 0.5rem; }

.footer-links {
    display: flex;
    gap: 2rem;
}
.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover { color: white; }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: #64748B;
    font-size: 0.875rem;
}

/* Floating CTA & Chat Modal */
.floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 90;
    transition: transform 0.3s, box-shadow 0.3s;
}
.floating-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    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); }
}

.cta-text {
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
}

.chat-modal {
    position: fixed;
    bottom: 5rem;
    right: 2rem;
    width: 320px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 95;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(0);
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-modal.hidden {
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    pointer-events: none;
}

.chat-header {
    background: var(--primary);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.profile-pic {
    background: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-info { display: flex; flex-direction: column; }
.profile-info strong { font-size: 0.875rem; }
.profile-info small { font-size: 0.7rem; opacity: 0.8; }

.close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    height: 300px;
    background: #e5ddd5; /* WhatsApp background color */
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.message {
    max-width: 80%;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    position: relative;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.message.received {
    background: white;
    align-self: flex-start;
    border-top-left-radius: 0;
}
.message.sent {
    background: #dcf8c6;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.message .time {
    font-size: 0.6rem;
    color: var(--text-muted);
    float: right;
    margin-top: 0.25rem;
    margin-left: 0.5rem;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.5rem;
}
.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.chat-footer {
    padding: 0.75rem;
    background: #f0f0f0;
}

#chat-form {
    display: flex;
    gap: 0.5rem;
}

#chat-input {
    flex: 1;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    outline: none;
}

.send-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.send-btn svg { width: 18px; height: 18px; }

@media (max-width: 480px) {
    .floating-btn { right: 1rem; bottom: 1rem; }
    .chat-modal { right: 1rem; bottom: 4.5rem; width: calc(100% - 2rem); }
}
