/* RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    font-family: var(--font-family-base);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    /* Prevent horizontal scroll from absolute elements if any */
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul,
ol {
    list-style: none;
}

/* UTILITIES */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--spacing-2);
}

.section {
    padding-block: var(--spacing-8);
}

/* Flex Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: var(--spacing-2);
}

.gap-3 {
    gap: var(--spacing-3);
}

.gap-4 {
    gap: var(--spacing-4);
}

.grid {
    display: grid;
    gap: var(--spacing-4);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* Accesibilidad: ocultar visualmente manteniendo lectura por lectores de pantalla */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-2);
}

.display-large {
    font-size: clamp(32px, 5vw, 56px);
    letter-spacing: -1px;
    font-weight: 800;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-6);
}

.headline-medium {
    font-size: 24px;
    font-weight: 600;
}

.body-large {
    font-size: 18px;
    color: var(--color-muted-text);
    line-height: 1.7;
}

.body-medium {
    font-size: 16px;
    color: var(--color-muted-text);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--color-primary);
    color: #FFFFFF;
    /* Forced white text */
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-store {
    display: inline-flex;
    align-items: center;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.btn-store svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.btn-store .material-symbols-outlined {
  font-size: 24px;
  color: currentColor;
}

.btn-store .icon-globe {
  fill: none;
  stroke: currentColor;
  flex-shrink: 0;
}

.android-entry-hint {
    display: none;
    margin-top: 14px;
    color: #5f5f5f;
    line-height: 1.5;
}

/* Grupos de CTA en body (Hero + Descarga) */
.store-cta-group {
    --store-badge-width: 208px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.store-cta-main-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.store-cta-secondary-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.store-cta-group .btn-store {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
    justify-content: center;
    width: var(--store-badge-width);
}

.store-cta-group .btn-store span {
    white-space: nowrap;
}

.store-cta-secondary-row .btn-store {
    width: var(--store-badge-width);
}

.btn-store.btn-store-disabled {
    background: #e0e0e0;
    color: #7f7f7f;
    cursor: default;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ANIMATIONS */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: opacity, transform;
    }

    .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: translateY(0);
        padding-left: 0px;
        padding-right: 0px;
    }

    .reveal-stagger>* {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal-stagger.is-visible>* {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-stagger.is-visible>*:nth-child(1) {
        transition-delay: 0.1s;
    }

    .reveal-stagger.is-visible>*:nth-child(2) {
        transition-delay: 0.2s;
    }

    .reveal-stagger.is-visible>*:nth-child(3) {
        transition-delay: 0.3s;
    }

    .reveal-stagger.is-visible>*:nth-child(4) {
        transition-delay: 0.4s;
    }

    .reveal-stagger.is-visible>*:nth-child(5) {
        transition-delay: 0.5s;
    }

    .reveal-stagger.is-visible>*:nth-child(6) {
        transition-delay: 0.6s;
    }
}

/* HEADER */
.header {
    position: fixed;
    top: var(--spacing-1);
    left: 0;
    width: 100%;
    z-index: 260;
    padding-block: var(--spacing-1);
    transition: padding 0.3s;
}

.header-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

.header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.header-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-shrink: 0;
}

.header-brand-text {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-text);
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.header-nav-link {
    color: rgba(75, 52, 36, 0.92);
    font-size: 0.98rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.header-nav-link:hover,
.header-nav-link:focus-visible {
    color: var(--color-primary);
    opacity: 1;
    outline: none;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.header-auth-guest {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-auth-guest[hidden],
.mobile-auth-guest[hidden],
.mobile-lang-guest[hidden],
.footer-lang-guest[hidden] {
    display: none !important;
}

.header-auth-user {
    display: flex;
    align-items: center;
}

.header-auth-user[hidden],
.mobile-auth-user[hidden] {
    display: none !important;
}

body.landing-logged-in .header-auth-guest,
body.landing-logged-in .mobile-menu-cta .mobile-auth-guest,
body.landing-logged-in .mobile-lang-guest,
body.landing-logged-in .footer-lang-guest {
    display: none !important;
}

body.landing-logged-in .header-auth-user:not([hidden]),
body.landing-logged-in .mobile-auth-user:not([hidden]) {
    display: flex !important;
}

body.landing-logged-in .mobile-menu-cta .mobile-auth-user:not([hidden]) {
    display: inline-flex !important;
}

body:not(.landing-logged-in) .header-auth-user,
body:not(.landing-logged-in) .mobile-auth-user {
    display: none !important;
}

.header-avatar-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    box-sizing: border-box;
    border-radius: 999px;
    overflow: hidden;
    text-decoration: none;
    border: 2px solid var(--color-accent);
    background: rgba(255, 255, 255, 0.95);
    transition: box-shadow 0.2s ease;
}

.header-avatar-link:hover,
.header-avatar-link:focus-visible {
    border-color: var(--color-accent);
    box-shadow: 0 4px 14px rgba(111, 78, 55, 0.22);
    outline: none;
}

.header-avatar-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
    background: rgba(245, 241, 237, 0.9);
}

.header-avatar-img.is-hidden {
    display: none !important;
}

.header-avatar-initials {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 800;
    color: rgba(75, 52, 36, 0.95);
    letter-spacing: -0.02em;
    background: rgba(245, 241, 237, 0.95);
}

.header-avatar-initials.is-hidden {
    display: none !important;
}

.mobile-menu-cta .mobile-auth-guest,
.mobile-menu-cta .mobile-auth-user {
    display: inline-flex;
    align-items: center;
}

.mobile-menu-cta .mobile-auth-user[hidden],
.mobile-menu-cta .mobile-auth-guest[hidden] {
    display: none !important;
}

.header-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    border: 2px solid rgba(75, 52, 36, 0.9);
    background: #ffffff;
    color: rgba(75, 52, 36, 0.98);
    font-size: 0.98rem;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.header-login-button:hover,
.header-login-button:focus-visible {
    background: rgba(111, 78, 55, 0.08);
    box-shadow: 0 10px 24px rgba(75, 52, 36, 0.12);
    transform: translateY(-1px);
    outline: none;
}

.language-switcher {
    position: relative;
}

.language-switcher-summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(75, 52, 36, 0.16);
    color: rgba(75, 52, 36, 0.92);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    user-select: none;
}

.language-switcher-summary::-webkit-details-marker {
    display: none;
}

.language-switcher[open] .language-switcher-summary {
    box-shadow: 0 12px 24px rgba(75, 52, 36, 0.12);
}

.language-switcher-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    display: grid;
    gap: 6px;
    min-width: 190px;
    padding: 10px;
    border-radius: 10px;
    background: rgb(33 33 33);
    border: 1px solid rgba(75, 52, 36, 0.12);
    box-shadow: 0 20px 36px rgba(75, 52, 36, 0.14);
}

.language-switcher-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    color: rgba(75, 52, 36, 0.92);
    font-size: 0.92rem;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.language-switcher-menu a:hover,
.language-switcher-menu a:focus-visible {
    background: rgba(111, 78, 55, 0.12);
    color: var(--color-primary);
    outline: none;
}

.language-switcher-menu a.is-current {
    display: none;
}

/* Menú móvil: ocultar la fila del idioma activo (no solo el enlace) para no dejar hueco en la rejilla */
.mobile-language-list li:has(> a.is-current) {
    display: none;
}

.header-side {
    display: flex;
    align-items: center;
    min-width: 0;
}

.header-side-left {
    justify-content: flex-start;
}

.header-side-right {
    justify-content: flex-end;
}

.header-logo {
    justify-self: center;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 280;
    position: relative;
    padding: 0;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger Open Animation */
.hamburger-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: 100px 32px 32px;
    transform: translateX(-100%);
    /* Slide from Left (Apple Style) */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    /* Enable vertical scrolling */
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
    box-sizing: border-box;
}

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

.mobile-menu-top {
    position: relative;
    border-bottom: 1px solid #ececec;
    padding-top: 4px;
    padding-right: 56px;
    padding-bottom: 18px;
    margin-bottom: 10px;
    width: 100%;
    min-width: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    z-index: 3;
}

.mobile-menu-close span {
    position: absolute;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-text);
}

.mobile-menu-close span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-close span:last-child {
    transform: rotate(-45deg);
}

.mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.mobile-menu-brand .headline-medium {
    font-size: 20px;
    margin-bottom: 0;
}

.mobile-menu-brand .body-medium {
    margin: 0;
    color: #5f5f5f;
}

.mobile-menu-cta {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
}

.mobile-menu-cta .btn-store {
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 100%;
}

body.is-android-mobile [data-android-entry-hint] {
    display: block;
}

body.is-android-mobile .mobile-menu-cta .btn-store-web {
    display: none;
}

.mobile-menu-links {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    min-width: 0;
}

.mobile-menu-links-heading {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6a6a6a;
}

.mobile-menu-brand-name {
    margin: 0;
}

.mobile-menu-links ul li {
    margin-bottom: 8px;
    display: block;
}

.mobile-menu-links ul li a {
    font-size: 16px;
    font-weight: 500;
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f7f7f7;
    box-sizing: border-box;
}

.mobile-menu-links ul li a:hover,
.mobile-menu-links ul li a:focus-visible {
    background: #efefef;
    outline: none;
}

.mobile-language-list {
    display: grid;
    /* Siempre quedan 4 idiomas alternativos al actual */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.mobile-language-list li {
    margin-bottom: 0;
}

.mobile-language-list a {
    justify-content: center;
    text-align: center;
}

@media (max-width: 768px) {
    body.mobile-menu-open .header {
        pointer-events: none;
    }

    body.mobile-menu-open .header-shell {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }

    .header-shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 14px 16px;
        border-radius: 28px;
    }

    .header-nav {
        display: none;
    }

    .header-actions {
        gap: 10px;
    }

    .header-brand-text {
        font-size: 1.1rem;
    }

    .header-login-button {
        display: none;
    }

    .mobile-menu {
        padding: 16px 16px 24px;
    }

    .mobile-menu .header-login-button {
        display: inline-flex;
        min-height: 42px;
        padding: 0 16px;
        font-size: 0.92rem;
        flex: 0 1 auto;
        max-width: 100%;
    }

    .mobile-menu-cta .btn-store {
        flex: 1 1 140px;
        justify-content: center;
        min-width: 0;
    }

    .store-cta-group {
        width: 100%;
    }

    .store-cta-main-row .btn-store {
        flex: 1 1 160px;
        max-width: 220px;
        width: auto;
    }

    .store-cta-secondary-row .btn-store {
        width: min(220px, 100%);
    }
}

/* MARQUEE ANIMATION */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .section,
    .container,
    .feature-module,
    .feature-module-copy,
    .feature-module-visual,
    .feature-media-frame,
    .stats-grid,
    .testimonial-grid,
    .feature-switcher {
        max-width: 100%;
        min-width: 0;
    }

    /* Manual scroll carousel for testimonials - same as stats */
    .testimonial-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 16px;
        scroll-padding: 16px;
        /* Hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overscroll-behavior-x: contain;
    }

    .testimonial-grid::-webkit-scrollbar {
        display: none;
    }

    .testimonial-card {
        min-width: min(320px, calc(100% - 32px));
        max-width: min(320px, calc(100% - 32px));
        scroll-snap-align: center;
        flex-shrink: 0;
    }

    .section:has(.testimonial-grid) .container {
        overflow: hidden;
        padding-inline: 0;
    }

    /* Carousel Indicators */
    .carousel-indicators {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 24px;
        padding-bottom: 16px;
    }

    .indicator-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .indicator-dot.active {
        width: 32px;
        border-radius: 4px;
        background-color: var(--color-primary);
    }
}

/* Hide indicators on desktop */
@media (min-width: 769px) {
    .carousel-indicators {
        display: none;
    }
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    z-index: 202;
    position: relative;
    padding: 0;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger Open Animation */
.hamburger-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}



@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }
}

.header.scrolled {
    padding-block: var(--spacing-1);
}

.header .btn-store {
    padding: 6px 12px;
    font-size: 12px;
    gap: 6px;
}

.header .btn-store svg {
    width: 16px;
    height: 16px;
}

.header .btn-store .material-symbols-outlined,
.header .btn-store .icon-globe {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.app-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin-bottom: var(--spacing-4);
    /* No shadow as requested */
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
}

.nav-link:hover {
    opacity: 0.7;
}

/* HERO SECTION */
/* Misma base que el shell webapp en modo día (#f7f7f7 vía --color-bg) */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + var(--spacing-8) + var(--spacing-3));
    padding-bottom: 0;
    /* Content overflows */
    background: var(--color-bg);
    overflow: hidden;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding-bottom: var(--spacing-8);
}


/* Phone mockups for Feature sections */
.phone-mockup {
    width: 260px;
    border-radius: 30px;
    /* Feature sections border-radius */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: #fff;
    border: 3px solid #000;
    overflow: hidden;
    aspect-ratio: 9/19.5;
}

/* ZIG ZAG / ABOUT SECTIONS */
.feature-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-6);
    align-items: center;
    margin-bottom: var(--spacing-8);
    overflow: hidden;
    /* Prevent circles from causing horizontal scroll */
}

@media (min-width: 900px) {
    .feature-row {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-8);
    }

    .feature-row.reverse .feature-visual {
        order: 2;
    }

    .feature-row.reverse .feature-text {
        order: 1;
    }
}

.feature-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.feature-visual::before {
    content: '';
    position: absolute;
    width: 400px;
    /* Fixed width for consistency */
    height: 400px;
    /* Same as width to maintain circle */
    max-width: min(400px, 92vw);
    max-height: min(400px, 92vw);
    aspect-ratio: 1 / 1;
    /* Force perfect circle */
    background: var(--color-surface-2);
    border-radius: 50%;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Center the circle */
    opacity: 0.5;
}

.feature-text {
    padding: var(--spacing-4);
}

.feature-module {
    display: grid;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    margin-bottom: clamp(56px, 8vw, 104px);
}

.feature-module:last-child {
    margin-bottom: 0;
}

.feature-module-header {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    align-items: center;
    text-align: center;
    width: min(100%, 980px);
    margin: 0 auto;
}

.feature-module-copy {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    min-width: 0;
}

.feature-module-kicker {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.feature-module-title {
    margin: 0;
    max-width: 22ch;
    font-size: clamp(34px, 4.5vw, 60px);
    line-height: 0.98;
}

.feature-module-intro {
    margin: 0;
    max-width: 68ch;
    color: var(--color-on-surface-variant);
}

.feature-switcher {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: var(--spacing-2);
}

.feature-switcher-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px 22px;
    border: 1px solid transparent;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: none;
    text-align: left;
    color: inherit;
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.feature-switcher-item:hover,
.feature-switcher-item:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.feature-switcher-item:focus-visible {
    outline: 3px solid rgba(17, 24, 39, 0.1);
    outline-offset: 3px;
}

.feature-switcher-item.is-active {
    background: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
}

.feature-switcher-title {
    display: block;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.15;
}

.feature-switcher-body {
    display: block;
    color: var(--color-on-surface-variant);
    line-height: 1.55;
}

.feature-module-visual {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
}

.feature-media-frame {
    width: min(100%, 420px);
    height: clamp(430px, 42vw, 560px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.feature-media-frame::before {
    content: none;
}

.feature-media-frame-warm {
    background: transparent;
}

.feature-module-phone {
    width: min(100%, 330px);
    height: auto;
    aspect-ratio: 9 / 19.5;
    border-radius: 47px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 56px rgba(17, 24, 39, 0.12);
    overflow: hidden;
    position: relative;
    border: 8px solid #1f1f1f;
    margin-bottom: -22%;
    transform: translateY(var(--feature-phone-offset, 0));
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-module-phone::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 25px;
    border-radius: 999px;
    background: #1f1f1f;
    z-index: 2;
}

.feature-module-phone img {
    transition: opacity 0.22s ease, transform 0.32s ease;
}

.feature-module-phone.is-switching img {
    opacity: 0.45;
    transform: scale(0.985);
}

.feature-module-phone[data-focus-position="bottom"] {
    --feature-phone-offset: -24%;
}

@media (min-width: 960px) {
    .feature-module {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        grid-template-areas:
            "header header"
            "copy visual";
    }

    .feature-module-reverse {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        grid-template-areas:
            "header header"
            "visual copy";
    }

    .feature-module-header {
        grid-area: header;
        width: min(100%, 1040px);
        margin: 0 auto;
    }

    .feature-module-copy {
        grid-area: copy;
    }

    .feature-module-visual {
        grid-area: visual;
    }
}
@media (max-width: 768px) {
    .feature-module-phone::before {
        top: 7px;
    }
}
/* STATS SECTION */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-4);
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: var(--spacing-2);
}

@media (max-width: 600px) {
    .stats-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 16px;
        scroll-padding: 16px;
        /* Hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overscroll-behavior-x: contain;
    }

    .stats-grid::-webkit-scrollbar {
        display: none;
    }

    .stat-item {
        min-width: 200px;
        scroll-snap-align: center;
        background: var(--color-surface-2);
        padding: 24px;
        border-radius: 20px;
        flex-shrink: 0;
    }
}

/* TESTIMONIALS */
.testimonial-grid {
    display: flex;
    /* Default to flex for mobile */
    gap: var(--spacing-4);
}

/* Desktop grid layout */
@media (min-width: 769px) {
    .testimonial-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.testimonial-card {
    background: var(--color-surface-2);
    padding: var(--spacing-4);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: row;
    /* Horizontal layout: avatar left, text right */
    gap: var(--spacing-3);
    align-items: flex-start;
}

@media (max-width: 768px) {
    .testimonial-card {
        flex-direction: column;
        /* Stack avatar and text vertically on mobile */
        align-items: center;
        text-align: center;
    }
}

.avatar {
    width: 60px;
    height: 60px;
    min-width: 60px;
    /* Prevent shrinking */
    border-radius: 50%;
    background: #ccc;
    object-fit: cover;
}

/* FAQ ACCORDION */
.accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: var(--spacing-3) var(--spacing-2);
    /* Added horizontal padding */
    color: var(--color-text);
    /* Force black color */
    font-weight: 600;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.accordion-header span:first-child {
    min-width: 0;
    flex: 1;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-bottom: 0;
}

.accordion-body.open {
    padding-bottom: var(--spacing-3);
}

.icon-plus {
    font-size: 24px;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.accordion-header[aria-expanded="true"] .icon-plus {
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    #faq .container {
        padding-inline: 16px;
    }

    .accordion {
        max-width: 100%;
    }

    .accordion-header {
        padding: 14px 16px;
    }

    .accordion-body p {
        padding-inline: 16px;
    }
}

/* DOWNLOAD / APP SHOWCASE */
.app-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-6);
    align-items: center;
}

@media (min-width: 900px) {
    .app-showcase {
        grid-template-columns: 1fr 1fr;
    }
}

/* NEWSLETTER */
.newsletter-section {
    background: var(--color-accent);
    /* Branding color */
    color: white;
    padding: var(--spacing-8) var(--spacing-4);
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: var(--spacing-8);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-2);
    justify-content: center;
    margin-top: var(--spacing-4);
    flex-wrap: wrap;
}

.newsletter-input {
    padding: 12px 20px;
    border-radius: 50px;
    border: none;
    min-width: 250px;
    font-size: 16px;
}

/* FOOTER */
.footer {
    background: #000;
    color: #fff;
    padding: var(--spacing-8) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-6);
}

@media (max-width: 768px) {
    .footer {
        display: none;
    }

    .feature-module,
    .feature-module-reverse {
        gap: 24px;
        margin-bottom: 56px;
    }

    .feature-module-header {
        gap: 16px;
        width: 100%;
        margin: 0 0 8px;
    }

    .feature-module-visual,
    .feature-module-reverse .feature-module-visual {
        order: 2;
    }

    .feature-module-copy,
    .feature-module-reverse .feature-module-copy {
        order: 3;
        width: 100%;
        min-width: 0;
    }

    .feature-module-header {
        order: 1;
    }

    .feature-module-title {
        max-width: none;
        font-size: clamp(32px, 10vw, 46px);
    }

    .feature-module-intro {
        max-width: none;
    }

    .feature-media-frame {
        width: 100%;
        height: clamp(360px, 96vw, 500px);
        padding: 0;
    }

    .feature-module-phone {
        width: min(100%, 286px);
        aspect-ratio: 9 / 19.5;
        border-radius: 41px;
        border-width: 7px;
        margin-bottom: -24%;
    }

    .feature-module-phone[data-focus-position="bottom"] {
        --feature-phone-offset: -18%;
    }

    .feature-switcher {
        --feature-switcher-card-width: min(84vw, 320px);
        flex-direction: row;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
        padding: 4px max(var(--spacing-2), calc((100% - var(--feature-switcher-card-width)) / 2)) 10px;
        scroll-padding-inline: max(var(--spacing-2), calc((100% - var(--feature-switcher-card-width)) / 2));
        margin-top: 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
        box-sizing: border-box;
        min-width: 0;
        overscroll-behavior-x: contain;
    }

    .feature-switcher::-webkit-scrollbar {
        display: none;
    }

    .feature-switcher-item {
        flex: 0 0 var(--feature-switcher-card-width);
        width: auto;
        max-width: var(--feature-switcher-card-width);
        padding: 18px;
        border-radius: 22px;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        box-sizing: border-box;
    }

    .feature-switcher-item:first-child {
        margin-left: 0;
    }

    .feature-switcher-item:last-child {
        margin-right: 0;
    }

    .feature-row,
    .feature-row.reverse {
        display: flex;
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .feature-visual {
        order: -1;
        /* Image always first on mobile */
    }

    .feature-visual::before {
        width: 300px;
        /* Smaller circle for mobile */
        height: 300px;
        /* Maintain perfect circle */
    }

    .feature-text {
        text-align: center;
    }
}

.footer-social-wrap {
    margin: var(--spacing-3) 0 0;
}

.footer-instagram-link {
    display: grid;
    place-items: center;
    min-width: 48px;
    min-height: 48px;
    margin: 0;
    padding: 0;
    color: #888;
    border-radius: 10px;
    text-decoration: none;
    vertical-align: middle;
}

.footer-instagram-link:hover,
.footer-instagram-link:focus-visible {
    color: #fff;
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.footer-instagram-link svg {
    display: block;
}

.footer-col-heading {
    color: #fff;
    margin-bottom: var(--spacing-3);
    font-size: inherit;
    font-weight: 700;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #888;
}

.footer-col a:hover {
    color: #fff;
}

/* Idioma en footer (PC): summary compacto + menú alineado a la izquierda */
.footer-lang-guest {
    margin-top: 8px;
}

.footer .language-switcher--footer {
    max-width: 12rem;
}

.footer .language-switcher--footer .language-switcher-menu {
    left: 0;
    right: auto;
    z-index: 2;
}

.footer .language-switcher-summary--footer {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    color: #888888;
    background: rgba(34, 34, 34, 0.98);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
}

.footer .language-switcher-summary--footer:hover,
.footer .language-switcher-summary--footer:focus-visible {
    color: #ffffff;
    outline: none;
}

.footer .language-switcher--footer[open] .language-switcher-summary--footer {
    color: #ffffff;
    box-shadow: none;
}

.footer .language-switcher--footer .language-switcher-menu a {
    justify-content: flex-start;
    min-height: 30px;
    padding: 4px 6px;
    font-size: 14px;
    font-weight: 400;
    border-radius: 4px;
    color: #888;
}

.footer .language-switcher--footer .language-switcher-menu a:hover,
.footer .language-switcher--footer .language-switcher-menu a:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    outline: none;
}

.copyright {
    text-align: center;
    margin-top: var(--spacing-6);
    padding-top: var(--spacing-4);
    border-top: 1px solid #333;
    color: #666;
    font-size: 14px;
}

.cookie-consent-banner {
    position: fixed;
    left: 50%;
    bottom: var(--spacing-3);
    transform: translateX(-50%) translateY(calc(100% + var(--spacing-3)));
    width: min(720px, calc(100vw - (var(--spacing-2) * 2)));
    z-index: 320;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-consent-banner.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.cookie-consent-banner-inner {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(123, 90, 64, 0.12);
    border-radius: 28px;
    box-shadow: 0 16px 40px rgba(17, 12, 8, 0.12);
    padding: var(--spacing-4);
}

.cookie-consent-banner-title {
    margin: 0 0 var(--spacing-1);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

.cookie-consent-banner-text,
.cookie-consent-banner-legal {
    color: var(--color-muted-text);
}

.cookie-consent-banner-legal {
    margin-top: var(--spacing-2);
}

.cookie-consent-banner-link {
    color: var(--color-primary);
    font-weight: 600;
}

.cookie-consent-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-2);
    margin-top: var(--spacing-3);
}

.cookie-consent-btn-primary,
.cookie-consent-btn-secondary {
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 700;
}

.cookie-consent-btn-primary {
    background: var(--color-primary);
    color: var(--color-bg);
}

.cookie-consent-btn-secondary {
    border: 1px solid rgba(123, 90, 64, 0.35);
    color: var(--color-primary);
    background: #fff;
}

/* LEGAL PAGES */
.legal-page-body {
    padding-top: calc(var(--header-height) + var(--spacing-3));
}

.legal-content {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
    margin-bottom: 1rem;
    color: var(--color-on-surface-variant);
    line-height: 1.6;
}

.legal-content ul {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .footer {
        display: none;
    }

    .cookie-consent-banner {
        width: calc(100vw - (var(--spacing-2) * 2));
        bottom: var(--spacing-2);
    }

    .cookie-consent-banner-inner {
        border-radius: 24px;
        padding: var(--spacing-3);
    }

    .cookie-consent-banner-actions {
        flex-direction: column;
    }

    .feature-module,
    .feature-module-reverse {
        gap: 24px;
    }

    .feature-row,
    .feature-row.reverse {
        display: flex;
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .feature-visual {
        order: -1;
        /* Image always first on mobile */
    }

    .feature-text {
        text-align: center;
    }
}

/* Dark theme overrides for public home */
[data-theme="dark"] .header-shell {
    background: rgba(22, 19, 17, 0.9);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
}

[data-theme="dark"] .header-nav-link {
    color: rgba(244, 241, 238, 0.88);
}

[data-theme="dark"] .header-avatar-link {
    background: rgba(26, 22, 20, 0.95);
    border-color: var(--color-accent);
}

[data-theme="dark"] .header-avatar-link:hover,
[data-theme="dark"] .header-avatar-link:focus-visible {
    border-color: var(--color-accent);
}

[data-theme="dark"] .header-avatar-initials {
    color: #f8f4f0;
}

[data-theme="dark"] .header-login-button {
    background: rgba(26, 22, 20, 0.95);
    border-color: rgba(248, 244, 240, 0.44);
    color: #f8f4f0;
}

[data-theme="dark"] .header-login-button:hover,
[data-theme="dark"] .header-login-button:focus-visible {
    background: rgba(199, 155, 122, 0.18);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

[data-theme="dark"] .language-switcher-summary,
[data-theme="dark"] .language-switcher-menu {
    background: rgba(26, 22, 20, 0.97);
    border-color: rgba(255, 255, 255, 0.16);
    color: #f8f4f0;
}

[data-theme="dark"] .language-switcher-menu a {
    color: #f8f4f0;
}

[data-theme="dark"] .footer .language-switcher-summary--footer {
    background: rgba(34, 34, 34, 0.98);
    border: none;
    color: #888888;
}

[data-theme="dark"] .footer .language-switcher-summary--footer:hover,
[data-theme="dark"] .footer .language-switcher-summary--footer:focus-visible {
    color: #ffffff;
}

[data-theme="dark"] .footer .language-switcher--footer[open] .language-switcher-summary--footer {
    color: #ffffff;
}

[data-theme="dark"] .footer .language-switcher--footer .language-switcher-menu {
    background: rgb(33 33 33);
    border-color: rgba(75, 52, 36, 0.12);
}

[data-theme="dark"] .footer .language-switcher--footer .language-switcher-menu a {
    color: #888;
}

[data-theme="dark"] .footer .language-switcher--footer .language-switcher-menu a:hover,
[data-theme="dark"] .footer .language-switcher--footer .language-switcher-menu a:focus-visible {
    color: #fff;
}

[data-theme="dark"] .mobile-menu {
    background: rgba(16, 14, 13, 0.96);
}

[data-theme="dark"] .mobile-menu-links ul li a {
    background: rgba(255, 255, 255, 0.08);
    color: #f4f1ee;
}

[data-theme="dark"] .mobile-menu-links ul li a:hover,
[data-theme="dark"] .mobile-menu-links ul li a:focus-visible {
    background: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .feature-switcher-item {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .feature-switcher-item.is-active {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
}

[data-theme="dark"] .btn-store.btn-store-disabled {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(244, 241, 238, 0.76);
}

[data-theme="dark"] .cookie-consent-banner-inner {
    background: rgba(19, 17, 16, 0.95);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] .cookie-consent-btn-secondary {
    border-color: rgba(255, 255, 255, 0.25);
    color: #f8f4f0;
    background: transparent;
}

