/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-green: #00C853;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6a6a6a;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-light: #e0e0e0;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
    max-width: 100%;
}

/* Tipografía principal: Raleway para títulos y elementos destacados */
h1, h2, h3, h4, h5, h6,
.hero h1,
.section-title,
.cta-button,
.cta-button-secondary,
.nav-link,
.hero-pill,
.payment-tag,
.step-number,
.faq-question,
.btn,
button:not(.language-switcher button),
.about-block h3,
.solution-item h3,
.who-card h3,
.trust-item h3,
.problem-card h3,
.step h3,
.service-card h3,
.payment-subtitle,
.about-intro-text {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Inter se usa por defecto en body (ya definido arriba) para párrafos y texto general */

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.language-switcher {
    display: inline-flex;
    gap: 0.25rem;
    align-items: center;
}

.language-switcher button {
    padding: 0.15rem 0.35rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.language-switcher button:hover {
    color: var(--brand-green);
}

.language-switcher button.active {
    color: var(--brand-green);
    text-decoration: underline;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
header {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 40px;
    width: auto;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-link h1 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-medium);
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.nav-link.active {
    color: var(--brand-green);
    background: rgba(0, 200, 83, 0.1);
    font-weight: 600;
}

.nav-link.active:hover {
    background: rgba(0, 200, 83, 0.15);
    color: var(--brand-green);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* ============================================
   MOBILE MENU (HAMBURGER)
   ============================================ */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: calc(var(--spacing-md) + 60px) var(--spacing-md) var(--spacing-md);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Don't block clicks when not active */
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto; /* Only block clicks when active */
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-link {
    display: block;
    padding: var(--spacing-sm);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    font-family: 'Raleway', sans-serif;
}

.mobile-nav-link:hover {
    background: var(--bg-light);
    color: var(--brand-green);
}

.mobile-nav-link.active {
    color: var(--brand-green);
    background: rgba(0, 200, 83, 0.1);
    font-weight: 600;
}

.mobile-nav-link.active:hover {
    background: rgba(0, 200, 83, 0.15);
    color: var(--brand-green);
}

.mobile-language-switcher {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}

.mobile-language-switcher button {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-light);
    background: var(--bg-white);
    color: var(--text-medium);
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: 'Raleway', sans-serif;
}

.mobile-language-switcher button:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
    background: var(--bg-light);
}

.mobile-language-switcher button.active {
    background: var(--brand-green);
    color: var(--bg-white);
    border-color: var(--brand-green);
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: var(--spacing-xxl) var(--spacing-md);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: var(--spacing-xxl) var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(to bottom, var(--bg-white) 0%, var(--bg-light) 100%);
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
}

.hero-content {
    max-width: 620px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.hero .subheadline {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--text-medium);
    margin-bottom: var(--spacing-md);
    font-weight: 400;
    line-height: 1.5;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.7;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: var(--spacing-md) auto 0;
    line-height: 1.7;
}

.hero-actions {
    margin-top: var(--spacing-md);
    margin-bottom: 0;
}

.hero-actions-priority {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.hero-meta {
    margin-top: var(--spacing-md);
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-light);
    opacity: 0.85;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--brand-green);
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.cta-button:hover {
    background: #00B045;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}

.cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cta-button-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-light);
    margin-left: var(--spacing-sm);
}

.cta-button-secondary:hover {
    background: var(--bg-light);
    border-color: var(--text-medium);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    flex: 1;
    min-width: 260px;
    max-width: 420px;
}

.hero-visual-blob {
    position: absolute;
    inset: -15%;
    background: radial-gradient(circle at 0% 0%, rgba(0, 200, 83, 0.18), transparent 55%),
                radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.06), transparent 50%);
    filter: blur(6px);
    opacity: 0.85;
}

.hero-visual-card {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: var(--spacing-md);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(224, 224, 224, 0.8);
    backdrop-filter: blur(22px);
}

.hero-visual-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: #e8f8ef;
    color: var(--brand-green);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #00C853;
    box-shadow: 0 0 0 6px rgba(0, 200, 83, 0.25);
}

.hero-visual-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.hero-metric {
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background: #f5f7f9;
}

.hero-metric-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.15rem;
}

.hero-metric-value {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-dark);
}

.hero-visual-bars {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: var(--spacing-md);
}

.hero-bar {
    height: 7px;
    border-radius: 999px;
    overflow: hidden;
    background: #edf0f4;
    position: relative;
}

.hero-bar--primary::after,
.hero-bar--secondary::after,
.hero-bar--muted::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.hero-bar--primary::after {
    width: 78%;
    background: linear-gradient(90deg, #00C853, #00B045);
}

.hero-bar--secondary::after {
    width: 52%;
    background: linear-gradient(90deg, #00C853, rgba(0, 200, 83, 0.45));
}

.hero-bar--muted::after {
    width: 34%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.08));
}

.hero-visual-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.7rem;
    color: var(--text-light);
}

.hero-footnote {
    flex: 1;
}

/* ============================================
   ABOUT HAPP YLABS SECTION
   ============================================ */
.about-happylabs {
    background: var(--bg-white);
}

.about-content {
    margin-top: var(--spacing-md);
}

.about-intro {
    margin-bottom: var(--spacing-xl);
}

.about-intro-text {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.about-content p {
    margin-bottom: var(--spacing-md);
    color: var(--text-medium);
    line-height: 1.7;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.about-block {
    padding: var(--spacing-lg);
    border-radius: 16px;
    background: var(--bg-white);
    border: 1.5px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.about-block:hover {
    border-color: #00C853;
    box-shadow: 0 8px 24px rgba(0, 200, 83, 0.12);
    transform: translateY(-4px);
}

.about-block-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.about-block-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    transition: transform 0.3s ease;
}

.about-block:hover .about-block-icon {
    transform: scale(1.05);
}

.block-icon-svg {
    width: 64px;
    height: 64px;
}

.about-block h3 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--text-dark);
    font-weight: 600;
}

.about-block p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-top: 0;
}

/* About Hero specific styles */
.about-hero {
    padding-bottom: var(--spacing-xl);
}

.about-hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-hero-content {
    max-width: 100%;
}

.about-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.about-hero-svg {
    width: 100%;
    height: auto;
    max-width: 400px;
    filter: drop-shadow(0 4px 12px rgba(0, 200, 83, 0.08));
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem {
    background: var(--bg-white);
}

.problem-content-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.problem-text {
    order: 1;
}

.problem-illustration {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.problem-svg {
    width: 100%;
    height: auto;
    max-width: 400px;
    filter: drop-shadow(0 4px 12px rgba(255, 107, 107, 0.08));
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.section-intro {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.problem-card {
    padding: var(--spacing-md);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-white);
    transition: all 0.3s ease;
}

.problem-card:hover {
    border-color: var(--brand-green);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.problem-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.problem-card h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--brand-green);
    border-radius: 50%;
    display: inline-block;
}

.problem-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   SOLUTION SECTION
   ============================================ */
.solution {
    background: var(--bg-light);
}

.solution-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.solution-illustration {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.solution-text {
    order: 2;
}

.solution-svg {
    width: 100%;
    height: auto;
    max-width: 400px;
    filter: drop-shadow(0 4px 12px rgba(0, 200, 83, 0.08));
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.solution-item {
    padding: var(--spacing-md);
}

.solution-item h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.solution-item p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* ============================================
   SERVICE OFFER SECTION
   ============================================ */
.service-offer {
    background: var(--bg-white);
    text-align: center;
}

.service-card {
    max-width: 600px;
    margin: var(--spacing-lg) auto;
    padding: var(--spacing-lg);
    border: 2px solid var(--brand-green);
    border-radius: 12px;
    background: var(--bg-white);
}

.service-card h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.service-card .service-meta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.service-meta span {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-medium);
    font-weight: 500;
}

.service-card p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works {
    background: var(--bg-light);
}

.how-it-works-flow {
    margin: var(--spacing-lg) auto var(--spacing-xl);
    max-width: 700px;
    padding: var(--spacing-md) 0;
}

.how-it-works-svg {
    width: 100%;
    height: auto;
    max-height: 140px;
    filter: drop-shadow(0 2px 8px rgba(0, 200, 83, 0.06));
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.step {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-white);
    border-radius: 16px;
    border: 1.5px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.step:hover {
    border-color: #00C853;
    box-shadow: 0 8px 24px rgba(0, 200, 83, 0.12);
    transform: translateY(-4px);
}

.step-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--brand-green);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.2);
}

.step-icon-svg {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.6;
    z-index: 1;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
    font-weight: 600;
}

.step p {
    color: var(--text-medium);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   WHO THIS IS FOR SECTION
   ============================================ */
.who-this-is-for {
    background: var(--bg-white);
}

.who-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.who-card {
    padding: var(--spacing-lg);
    border-radius: 8px;
}

.who-card.for {
    background: var(--bg-light);
    border-left: 4px solid var(--brand-green);
}

.who-card.not-for {
    background: var(--bg-white);
    border-left: 4px solid var(--border-light);
}

.who-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.who-card ul {
    list-style: none;
    padding: 0;
}

.who-card li {
    padding: var(--spacing-xs) 0;
    color: var(--text-medium);
    line-height: 1.7;
    padding-left: var(--spacing-md);
    position: relative;
}

.who-card.for li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-green);
    font-weight: 600;
}

.who-card.not-for li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: var(--text-light);
    font-weight: 600;
}

/* ============================================
   TRUST SECTION
   ============================================ */
.trust {
    background: var(--bg-light);
}

.trust-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.trust-header .section-title {
    margin-bottom: var(--spacing-lg);
}

.trust-process-flow {
    margin: var(--spacing-lg) auto 0;
    max-width: 700px;
    padding: var(--spacing-md) 0;
}

.process-flow-svg {
    width: 100%;
    height: auto;
    max-height: 140px;
    filter: drop-shadow(0 2px 8px rgba(0, 200, 83, 0.06));
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.trust-item {
    padding: var(--spacing-lg);
    background: var(--bg-white);
    border-radius: 16px;
    border: 1.5px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.trust-item:hover {
    border-color: #00C853;
    box-shadow: 0 8px 24px rgba(0, 200, 83, 0.12);
    transform: translateY(-4px);
}

.trust-item-icon {
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 64px;
    transition: transform 0.3s ease;
}

.trust-item:hover .trust-item-icon {
    transform: scale(1.05);
}

.trust-icon-svg {
    width: 64px;
    height: 64px;
}

.trust-item h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
    font-weight: 600;
}

.trust-item p {
    color: var(--text-medium);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq {
    background: var(--bg-white);
}

.faq-list {
    max-width: 800px;
    margin: var(--spacing-lg) auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: var(--spacing-md) 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: rgba(0, 200, 83, 0.2);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    padding: var(--spacing-xs) 0;
    min-height: 44px; /* Minimum touch target size for mobile */
    position: relative;
    z-index: 1; /* Ensure it's above other elements */
}

.faq-question:hover {
    color: var(--brand-green);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--brand-green);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-medium);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: var(--spacing-md);
}

/* ============================================
   PAYMENT SECTION – AUTOMATION ASSESSMENT
   ============================================ */
.payment-section {
    background: var(--bg-light);
}

.payment-card {
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    padding: var(--spacing-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.payment-header {
    margin-bottom: var(--spacing-md);
}

.payment-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #e8f8ef;
    color: var(--brand-green);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.payment-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: var(--spacing-lg);
    align-items: flex-start;
    margin-top: var(--spacing-md);
}

.payment-column {
    min-width: 0;
}

.payment-column-right {
    border-left: 1px solid var(--border-light);
    padding-left: var(--spacing-lg);
}

.payment-description {
    font-size: 1.05rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-md);
}

.payment-block {
    margin-bottom: var(--spacing-md);
}

.payment-subtitle {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.payment-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.payment-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.4rem;
    color: var(--text-medium);
}

.payment-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-green);
}

.payment-cost-block {
    background: #f4f7f5;
    border-radius: 12px;
    padding: var(--spacing-md);
}

.payment-price {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.payment-price-note {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-medium);
}

.payment-meta {
    list-style: none;
    padding-left: 0;
    margin: 0 0 0.5rem 0;
}

.payment-meta li {
    font-size: 0.95rem;
    color: var(--text-medium);
}

.payment-note-muted {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.payment-cta-block {
    margin-top: var(--spacing-md);
}

.payment-cta-button {
    width: 100%;
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.payment-secondary-note {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 0.25rem;
}

.payment-status-note {
    font-size: 0.9rem;
    color: var(--brand-green);
    margin-top: 0.25rem;
    display: none !important; /* Hidden by default - only show after payment confirmation */
}

.payment-footnote {
    margin-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
    padding-top: var(--spacing-sm);
    font-size: 0.85rem;
    color: var(--text-light);
}

/* visible only when assessment-paid class is set on body */
body.assessment-paid .assessment-paid-only {
    display: block !important;
}

/* ============================================
   CONTACT FORM SECTION / INTAKE SECTION / INTEREST MODAL
   ============================================ */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.875rem;
}

/* Exclude form-check labels from form-group label styles */
.form-group .form-check-label {
    display: inline !important;
    margin-bottom: 0 !important;
    font-weight: normal !important;
    font-size: inherit !important;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: border-color 0.2s ease;
}

/* Exclude form-check inputs from form-group input styles */
.form-group .form-check-input {
    width: 1em !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0.25em !important;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-green);
}

/* Validation styles */
.form-control.is-invalid,
.form-select.is-invalid,
.form-check-input.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6 .4.4.4-.4m0 4.8-.4-.4-.4.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid:focus,
.form-select.is-valid:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

/* Agreement checkbox styling - Standard Bootstrap checkbox layout */
.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: 0.125rem;
}

.form-check-input {
    float: left;
    margin-left: -1.5em;
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.25);
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.form-check-label {
    cursor: pointer;
    display: inline;
    margin-left: 0;
    padding-left: 0;
    margin-bottom: 0;
    font-weight: normal;
    line-height: 1.5;
}

.form-check-input.is-invalid {
    border-color: #dc3545;
}

.form-check-input.is-invalid:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

.form-check-input.is-valid {
    border-color: #198754;
}

.form-check-input.is-valid:checked {
    background-color: #198754;
    border-color: #198754;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    padding: var(--spacing-sm);
    border-radius: 6px;
    margin-bottom: var(--spacing-md);
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.intake-form {
    background: var(--bg-white);
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.intake-step {
    display: none;
}

.intake-step.active {
    display: block;
}

.intake-progress .progress {
    background-color: #e9ecef;
}

.form-note {
    font-size: 0.875rem;
    color: var(--text-light);
}

.intake-section {
    background: var(--bg-white);
}

.intake-section-header {
    margin-bottom: var(--spacing-md);
}

.intake-access-note {
    margin-top: var(--spacing-sm);
    font-size: 0.85rem;
    color: var(--text-light);
}

.intake-success-message {
    display: none;
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: 8px;
    background: #e8f8ef;
    border: 1px solid #c6ead8;
    font-size: 0.9rem;
    color: var(--text-medium);
}

body.assessment-paid #intake-success-message {
    display: block;
}

/* Development-only badge when intake is accessed via dev bypass */
body.dev-intake-bypass #intake-success-message {
    border-color: #ffc107;
    background: #fff8e1;
}

/* intake navigation buttons */
.intake-navigation {
    margin-top: var(--spacing-md);
}

/* Interest confirmation modal */
.interest-modal-content {
    background-color: var(--bg-light);
}

.interest-modal-body {
    background: var(--bg-white);
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.interest-bullets {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.interest-bullets li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.35rem;
    color: var(--text-medium);
}

.interest-bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--brand-green);
}

.micro-note {
    max-width: 260px;
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */
.final-cta {
    background: var(--bg-white);
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-md);
}

.final-cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.final-cta p {
    font-size: 1.125rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.7;
}

.secondary-cta {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Legal links in footer - ensure visibility on dark background */
footer a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: rgba(255, 255, 255, 1) !important;
    text-decoration: underline;
}

/* Legal links in footer - Mobile touch improvements */
.legal-link {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
    touch-action: manipulation;
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
    min-height: 44px; /* Minimum touch target size for mobile */
    line-height: 44px;
    vertical-align: middle;
    position: relative;
    z-index: 10; /* Ensure links are above other elements */
    cursor: pointer !important;
    white-space: nowrap; /* Prevent text from wrapping to multiple lines */
}

/* Ensure Bootstrap modals have proper z-index on mobile */
.modal {
    z-index: 1050;
}

.modal-backdrop {
    z-index: 1040;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .language-switcher button {
        padding: 0.15rem 0.3rem;
        font-size: 0.75rem;
    }

    section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .hero {
        padding: var(--spacing-md) var(--spacing-sm) var(--spacing-md);
        text-align: left;
        background: linear-gradient(to bottom, var(--bg-white) 0%, var(--bg-light) 100%);
    }

    .hero-layout {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-md);
    }

    .hero-content {
        max-width: 100%;
        order: 1;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        line-height: 1.15;
        margin-bottom: var(--spacing-sm);
        text-align: left;
    }

    .hero .subheadline {
        font-size: clamp(1.1rem, 4vw, 1.35rem);
        margin-bottom: var(--spacing-md);
        line-height: 1.4;
        text-align: left;
    }

    .hero-actions {
        margin-top: var(--spacing-md);
        margin-bottom: var(--spacing-sm);
    }

    .hero-actions-priority {
        margin-top: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }

    .hero-description {
        font-size: 1rem;
        margin-top: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
        text-align: left;
        line-height: 1.6;
    }

    .hero-meta {
        font-size: 0.875rem;
        margin-top: var(--spacing-sm);
        text-align: left;
    }

    .hero p {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }

    .cta-button {
        padding: 1.1rem 2rem;
        font-size: 1.05rem;
        width: 100%;
        display: block;
        min-height: 52px;
        box-shadow: 0 4px 12px rgba(0, 200, 83, 0.25);
    }

    .cta-button:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(0, 200, 83, 0.2);
    }

    .hero-visual {
        width: 100%;
        max-width: none;
        order: 2;
        margin-top: var(--spacing-md);
        align-self: center;
    }

    .hero-visual-blob {
        inset: -10%;
        filter: blur(4px);
    }

    .hero-visual-card {
        padding: var(--spacing-sm);
        border-radius: 16px;
    }

    .hero-visual-metrics {
        gap: var(--spacing-xs);
        margin-bottom: var(--spacing-sm);
    }

    .hero-metric {
        padding: 0.6rem 0.7rem;
    }

    .hero-metric-value {
        font-size: 1.15rem;
    }

    .hero-metric-label {
        font-size: 0.7rem;
    }

    .cta-button-secondary {
        margin-left: 0;
        margin-top: var(--spacing-sm);
        display: block;
        width: 100%;
    }

    .header-container {
        flex-wrap: nowrap;
        gap: var(--spacing-xs);
        position: relative;
    }

    /* Ajustar tamaño del logo en móviles */
    .logo-link h1 {
        font-size: 1.25rem;
    }

    /* Ocultar menú desktop en móviles */
    .header-right {
        display: none;
    }

    /* Mostrar botón hamburguesa en móviles */
    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
    }

    /* Mostrar menú móvil cuando está activo */
    .mobile-menu {
        display: block;
    }

    /* Overlay para cerrar el menú */
    .mobile-menu-overlay {
        display: block;
    }

    /* Payment modal responsive layout */
    .payment-card {
        padding: var(--spacing-md);
    }

    .payment-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .payment-column-right {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border-light);
        padding-top: var(--spacing-md);
    }

    .payment-description {
        font-size: 1rem;
    }

    .problem-content-wrapper,
    .solution-content-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .problem-illustration,
    .solution-illustration {
        order: -1;
        padding: var(--spacing-sm) 0;
    }

    .problem-svg,
    .solution-svg {
        max-width: 300px;
    }

    .how-it-works-flow {
        max-width: 100%;
        padding: var(--spacing-sm) 0;
    }

    .how-it-works-svg {
        max-height: 100px;
    }

    .problem-grid,
    .solution-grid,
    .steps,
    .who-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: var(--spacing-md);
    }

    .about-hero-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .about-hero-visual {
        order: -1;
        padding: var(--spacing-sm) 0;
    }

    .about-hero-svg {
        max-width: 300px;
    }

    .about-grid,
    .trust-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .about-block-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }

    .about-block-icon {
        width: 56px;
        height: 56px;
    }

    .block-icon-svg {
        width: 56px;
        height: 56px;
    }

    .trust-item-icon {
        height: 56px;
    }

    .trust-icon-svg {
        width: 56px;
        height: 56px;
    }

    .trust-process-flow {
        max-width: 100%;
        padding: var(--spacing-sm) 0;
    }

    .process-flow-svg {
        max-height: 100px;
    }

    /* FAQ mobile improvements */
    .faq-question {
        font-size: 1.1rem;
        padding: var(--spacing-sm) 0;
        min-height: 48px; /* Larger touch target on mobile */
    }

    .faq-item {
        padding: var(--spacing-sm) 0;
    }

    /* Legal links mobile improvements */
    .legal-link {
        min-height: 44px;
        line-height: 1.5;
        padding: 0.4rem 0.3rem; /* Reduced padding to save space */
        margin: -0.4rem -0.3rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap !important; /* Force text to stay on one line */
        font-size: 0.8rem; /* Slightly smaller font for mobile to fit better */
        flex-shrink: 0; /* Prevent shrinking */
    }

    footer .mt-2 {
        display: flex;
        flex-wrap: nowrap !important; /* Force no wrapping */
        align-items: center;
        justify-content: center;
        gap: 0.2rem; /* Smaller gap to save space */
        width: 100%;
        overflow-x: auto; /* Allow horizontal scroll if absolutely necessary */
        -webkit-overflow-scrolling: touch;
    }

    footer .mt-2 .text-muted.small {
        margin: 0;
        white-space: nowrap !important; /* Prevent separator from wrapping */
        flex-shrink: 0;
        font-size: 0.8rem; /* Match link font size */
    }

    /* Ensure footer container doesn't force wrapping */
    footer .container {
        max-width: 100%;
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }
}

/* ============================================
   LANGUAGE CONTENT HIDING
   ============================================ */
/* Hide Spanish by default */
body.lang-en .lang-es,
body:not(.lang-es) .lang-es {
    display: none !important;
}

/* Show English content when body has lang-en (default) */
body.lang-en .lang-en,
body:not(.lang-es) .lang-en {
    display: block !important;
}

body.lang-en a.lang-en,
body:not(.lang-es) a.lang-en,
body.lang-en span.lang-en,
body:not(.lang-es) span.lang-en,
body.lang-en button.lang-en,
body:not(.lang-es) button.lang-en {
    display: inline-block !important;
}

body.lang-en li.lang-en,
body:not(.lang-es) li.lang-en {
    display: list-item !important;
}

/* Special handling for FAQ elements - English */
body.lang-en .faq-question.lang-en,
body:not(.lang-es) .faq-question.lang-en {
    display: flex !important;
}

body.lang-en .faq-answer.lang-en,
body:not(.lang-es) .faq-answer.lang-en {
    display: block !important;
}

/* When body has lang-es class: Hide English, Show Spanish */
body.lang-es .lang-en {
    display: none !important;
}

body.lang-es .lang-es {
    display: block !important;
}

body.lang-es a.lang-es,
body.lang-es span.lang-es,
body.lang-es button.lang-es {
    display: inline-block !important;
}

body.lang-es li.lang-es {
    display: list-item !important;
}

/* Special handling for FAQ elements - Spanish */
body.lang-es .faq-question.lang-es {
    display: flex !important;
}

body.lang-es .faq-answer.lang-es {
    display: block !important;
}

