/* ═══════════════════════════════════════════════════════════
   AYANDE — Premium Landing Page Styles
   Design: Luxury/Refined with organic warmth
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   ═══════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
    /* Brand palette — enriched for premium feel */
    --verde: #2FAA7A;
    --verde-deep: #1E8A5E;
    --verde-glow: rgba(47, 170, 122, 0.15);
    --amarillo: #FCCC3A;
    --amarillo-soft: #FFF8E1;
    --letras: #0E0E0E;
    --gray: #656B68;
    --gray-light: #A0A5A2;
    --lilac: #D6CBD7;
    --rojo: #FF3E3E;
    --white: #FFFFFF;
    --cream: #FDFBF7;
    --surface: #F5F3EF;
    --border: rgba(14, 14, 14, 0.06);

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --font-elegant: 'Alex Brush', cursive;

    /* Sizing */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
    --text-sm: clamp(0.8125rem, 0.76rem + 0.25vw, 0.9375rem);
    --text-base: clamp(0.9375rem, 0.875rem + 0.3vw, 1.0625rem);
    --text-lg: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1rem + 1.25vw, 1.75rem);
    --text-2xl: clamp(1.5rem, 1.1rem + 2vw, 2.5rem);
    --text-3xl: clamp(2.5rem, 2rem + 3vw, 4rem);
    --text-4xl: clamp(3.5rem, 2.5rem + 5vw, 6rem);

    /* Spacing */
    --space-section: clamp(7rem, 6rem + 8vw, 12rem);

    /* Effects */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.02);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
}

/* ─── Reset ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--letras);
    line-height: 1.65;
    background: var(--cream);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

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

ul {
    list-style: none;
}

/* ─── Utilities ─── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2vw, 2rem);
}

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

/* ─── Section Typography ─── */
.section-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--verde);
    background: var(--verde-glow);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.section-badge--light {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.section-heading {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 600;
    color: var(--letras);
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-heading em {
    font-style: italic;
    color: var(--verde);
}

.section-sub {
    font-size: var(--text-lg);
    color: var(--gray);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-sm);
    border-radius: var(--radius-full);
    transition: all 0.4s var(--ease-out);
    cursor: pointer;
    white-space: nowrap;
}

.btn--primary {
    background: var(--verde);
    color: var(--white);
    padding: 14px 32px;
    box-shadow: 0 4px 20px rgba(47, 170, 122, 0.25);
}

.btn--primary:hover {
    background: var(--verde-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(47, 170, 122, 0.35);
}

.btn--outline {
    padding: 14px 32px;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

.btn--outline:hover {
    background: var(--white);
    color: var(--verde);
    border-color: var(--white);
}

.btn--lg {
    padding: 16px 36px;
    font-size: var(--text-base);
}

/* ═══════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.nav-brand-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--verde);
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease-spring);
}

.nav-brand:hover .nav-logo {
    transform: scale(1.08) rotate(-3deg);
}

.nav-brand-text {
    font-family: var(--font-elegant);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1;
    color: rgba(255, 255, 255, 0.85);
    /* 1. Mismo color suave de los enlaces "Inicio", "Nosotros" en desktop */
    transition: color 0.4s;
    transform: translateY(4px);
    /* Fine-tune script baseline */
}

/* Base class for the elegant script brand */
.brand-elegant {
    font-family: var(--font-elegant);
    font-weight: 400;
}

.navbar.scrolled .nav-brand-text {
    color: var(--gray);
    /* 1. Mismo color de enlace gris cuando se hace scroll */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-link {
    padding: 8px 18px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-full);
    transition: all 0.3s;
}

.navbar.scrolled .nav-link {
    color: var(--gray);
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .nav-link:hover {
    color: var(--verde);
    background: var(--verde-glow);
}

.nav-link--cta {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white) !important;
    font-weight: 600;
    margin-left: 8px;
    backdrop-filter: blur(4px);
}

.navbar.scrolled .nav-link--cta {
    background: var(--verde);
    color: var(--white) !important;
}

.nav-link--cta:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

.navbar.scrolled .nav-link--cta:hover {
    background: var(--verde-deep) !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 10;
}

.hamburger-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.35s var(--ease-out);
}

.navbar.scrolled .hamburger-line {
    background: var(--letras);
}

.hamburger-line:nth-child(1) {
    top: 0;
}

.hamburger-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-line:nth-child(3) {
    bottom: 0;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

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

.nav-toggle.active .hamburger-line:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #2FAA7A 0%, #1a7a54 40%, #145c3f 100%);
    overflow: hidden;
    padding: 6rem 1.5rem 4rem;
}

/* Decorative shapes */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.hero-shape--1 {
    width: 500px;
    height: 500px;
    background: var(--amarillo);
    top: -15%;
    right: -10%;
    animation: floatShape 20s ease-in-out infinite;
}

.hero-shape--2 {
    width: 400px;
    height: 400px;
    background: var(--lilac);
    bottom: -10%;
    left: -5%;
    animation: floatShape 25s ease-in-out infinite reverse;
}

.hero-shape--3 {
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.2);
    top: 40%;
    left: 30%;
    animation: floatShape 18s ease-in-out infinite 5s;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-15px, 15px) scale(0.97);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 720px;
    padding-bottom: 6rem;
    /* Prevent overlap with scroll indicator */
}

.hero-eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.hero-brand-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.hero-logo-wrap {
    width: clamp(100px, 18vw, 160px);
    height: clamp(100px, 18vw, 160px);
    border-radius: 28%;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(255, 255, 255, 0.1);
    transition: all 0.5s var(--ease-spring);
    background: var(--white);
}

.hero-logo-wrap:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.hero-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title {
    font-family: var(--font-elegant);
    font-size: clamp(4.5rem, 3rem + 7vw, 7.5rem);
    font-weight: 400;
    line-height: 1;
    color: var(--white);
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 400;
    font-style: italic;
    color: var(--amarillo);
    margin-bottom: 1.25rem;
}

.hero-description {
    font-size: var(--text-lg);
    line-height: 1.75;
    opacity: 0.92;
    margin-bottom: 2.5rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-scroll-text {
    font-size: var(--text-xs);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

.hero-scroll-icon {
    animation: bounce 2s infinite var(--ease-out);
    opacity: 0.9;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(8px);
    }

    60% {
        transform: translateY(4px);
    }
}

/* ═══════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════ */
.about {
    padding: var(--space-section) 0;
    background: var(--white);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-img-frame {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: rotate(-2deg);
    transition: all 0.6s var(--ease-out);
}

.about-img-frame:hover {
    transform: rotate(0deg) scale(1.015);
}

.about-img-frame img {
    width: 100%;
    height: auto;
    display: block;
}


.about-text {
    font-size: var(--text-base);
    color: var(--gray);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

/* Feature pills Redesign */
.feature-pills {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 18px 24px 18px 18px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease-out);
    border: 1px solid var(--border);
    cursor: default;
}

.feature-pill:hover {
    transform: translateY(-4px) translateX(6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(47, 170, 122, 0.2);
}

.pill-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85px;
    height: 85px;
    background: var(--surface);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.04);
    animation: floatIcon 3.5s ease-in-out infinite alternate;
}

.feature-pill:nth-child(2) .pill-icon-wrap {
    animation-delay: 1.2s;
}

.feature-pill:nth-child(3) .pill-icon-wrap {
    animation-delay: 2.4s;
}

@keyframes floatIcon {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

.pill-icon {
    font-size: 3.2rem;
    line-height: 1;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.12));
    transition: transform 0.4s var(--ease-spring);
}

.feature-pill:hover .pill-icon {
    transform: scale(1.15) rotate(8deg);
}

.feature-pill-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-pill-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--letras);
    margin-bottom: 4px;
    line-height: 1.2;
}

.feature-pill-text span {
    display: block;
    font-size: var(--text-base);
    color: var(--gray);
    line-height: 1.4;
}

.footer-brand-text {
    font-family: var(--font-elegant);
    /* 4. Asegura la misma letra elegante que arriba */
    font-weight: 400;
    font-size: 3rem;
    line-height: 1;
}

/* ═══════════════════════════════════════
   CATALOG
   ═══════════════════════════════════════ */
.catalog {
    padding: var(--space-section) 0;
    background: var(--surface);
}

.category-filter {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.cat-chip {
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-xs);
    background: var(--white);
    color: var(--gray);
    border: 1.5px solid var(--border);
    transition: all 0.3s var(--ease-out);
    letter-spacing: 0.5px;
}

.cat-chip:hover {
    border-color: var(--verde);
    color: var(--verde);
}

.cat-chip.active {
    background: var(--verde);
    color: var(--white);
    border-color: var(--verde);
    box-shadow: 0 4px 14px rgba(47, 170, 122, 0.25);
}

/* Carousel */
.products-carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    color: var(--letras);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border);
    transition: all 0.3s var(--ease-out);
    box-shadow: var(--shadow-xs);
}

.carousel-btn:hover {
    background: var(--verde);
    color: var(--white);
    border-color: var(--verde);
    transform: scale(1.08);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.products-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

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

/* Product Cards */
.product-card {
    flex: 0 0 280px;
    scroll-snap-align: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease-out);
    border: 1px solid var(--border);
}

.product-card.animate {
    animation: fadeInUp 0.6s var(--ease-out) forwards;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--surface);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--rojo);
    color: var(--white);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.product-badge.discount {
    background: var(--amarillo);
    color: var(--letras);
}

.product-info {
    padding: 1.25rem;
}

.product-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--verde);
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--letras);
    margin-bottom: 0.625rem;
    line-height: 1.3;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.875rem;
}

.price-current {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--verde);
}

.price-original {
    font-size: 0.9375rem;
    color: var(--gray-light);
    text-decoration: line-through;
}

.product-cta {
    width: 100%;
    padding: 11px;
    background: var(--verde);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: background 0.3s;
}

.product-cta:hover {
    background: var(--verde-deep);
}

.product-skeleton {
    flex: 0 0 280px;
    background: linear-gradient(90deg, var(--surface) 25%, #ece9e4 50%, var(--surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s ease infinite;
    border-radius: var(--radius-lg);
    height: 420px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.catalog-cta {
    text-align: center;
    padding-top: 3rem;
}

.catalog-cta-text {
    font-size: var(--text-lg);
    color: var(--gray);
    margin-bottom: 1.25rem;
}

/* ═══════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════ */
.how-it-works {
    padding: var(--space-section) 0;
    background: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    position: relative;
    background: var(--cream);
    padding: 3rem 2rem 2.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease-out);
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(47, 170, 122, 0.15);
}

.step-num {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    background: var(--verde);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(47, 170, 122, 0.3);
    padding-bottom: 2px;
}

.step-icon-wrap {
    font-size: 3rem;
    margin: 1rem 0 1.25rem;
}

.step-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--letras);
    margin-bottom: 0.75rem;
}

.step-desc {
    color: var(--gray);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* ═══════════════════════════════════════
   APP PREVIEW
   ═══════════════════════════════════════ */
.app-preview {
    padding: var(--space-section) 0;
    background: var(--surface);
    overflow: hidden;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
    max-width: 900px;
    margin: 3rem auto;
    align-items: center;
}

.preview-phone {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.5s var(--ease-out);
}

.preview-phone:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.preview-phone--hero {
    transform: scale(1.08);
    z-index: 2;
    box-shadow: var(--shadow-xl);
}

.preview-phone--hero:hover {
    transform: scale(1.1) translateY(-8px);
}

.preview-phone img {
    width: 100%;
    height: auto;
}

.preview-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.pf-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--letras);
    transition: all 0.3s var(--ease-out);
}

.pf-item:hover {
    border-color: var(--verde);
    transform: translateY(-2px);
}

.pf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--verde);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════
   DOWNLOAD
   ═══════════════════════════════════════ */
.download {
    position: relative;
    padding: var(--space-section) 0;
    background: linear-gradient(160deg, #2FAA7A 0%, #1a7a54 50%, #145c3f 100%);
    color: var(--white);
    overflow: hidden;
}

.download-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.dl-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.dl-shape--1 {
    width: 400px;
    height: 400px;
    background: var(--amarillo);
    top: -10%;
    right: -5%;
}

.dl-shape--2 {
    width: 300px;
    height: 300px;
    background: var(--lilac);
    bottom: -10%;
    left: -5%;
}

.download-inner {
    position: relative;
    z-index: 2;
}

.download-heading,
.download-sub {
    color: var(--white);
}

.download-sub {
    opacity: 0.9;
}

.store-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 14px 28px;
    background: var(--white);
    color: var(--letras);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.4s var(--ease-out);
}

.store-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-btn-small {
    font-size: 0.7rem;
    color: var(--gray);
}

.store-btn-large {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--letras);
}

/* ═══════════════════════════════════════
   TERMS
   ═══════════════════════════════════════ */
.terms-section {
    padding: var(--space-section) 0;
    background: var(--white);
}

.terms-card {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.terms-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: var(--text-base);
}

.terms-version {
    display: block;
    margin-top: 1rem;
    font-size: var(--text-xs);
    color: var(--gray-light);
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
    background: linear-gradient(160deg, #2FAA7A 0%, #1a7a54 40%, #145c3f 100%);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.footer-brand span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
}

.footer-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.footer-heading {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--verde);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s var(--ease-out);
}

.social-links a:hover {
    background: var(--verde);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.35);
}

/* ═══════════════════════════════════════
   FLOATING CTA
   ═══════════════════════════════════════ */
.floating-cta {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-out);
    pointer-events: none;
}

.floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Unified card — all screen sizes */
.floating-cta-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.25rem 1.5rem 1.5rem;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.10), 0 8px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 280px;
    border: 1px solid var(--border);
}

.floating-cta-text {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--letras);
    text-align: center;
}

.floating-bottom-btn {
    width: 100%;
    background: var(--amarillo);
    color: var(--letras);
    padding: 14px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--text-base);
    box-shadow: 0 4px 14px rgba(252, 204, 58, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.floating-bottom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 204, 58, 0.5);
}

.floating-bottom-btn:active {
    transform: scale(0.98);
}

/* ═══════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════ */
[data-animate] {
    opacity: 0;
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-animate="fade-up"] {
    transform: translateY(40px);
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate].animated {
    opacity: 1;
    transform: translate(0, 0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {

    /* Nav mobile */
    .nav-toggle {
        display: none;
        /* Eliminar botón hamburguesa en móvil */
    }

    .nav-inner {
        justify-content: center;
        /* Centrar logo Ayande */
    }

    .nav-brand-text {
        color: rgba(255, 255, 255, 0.85);
        /* Mismo color que los enlaces en desktop */
    }

    .navbar.scrolled .nav-brand-text {
        color: var(--gray);
        /* Mismo color que los enlaces en desktop al hacer scroll */
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(253, 251, 247, 0.97);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s var(--ease-out);
        z-index: 5;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        font-size: 1.25rem;
        color: var(--letras) !important;
        padding: 12px 24px;
    }

    .nav-link--cta {
        background: var(--verde) !important;
        color: var(--white) !important;
        margin-left: 0;
        margin-top: 0.5rem;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-accent-card {
        right: 0.5rem;
        bottom: -1rem;
    }

    /* Preview */
    .preview-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .preview-phone--hero {
        transform: none;
    }

    .preview-phone--hero:hover {
        transform: translateY(-8px);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    /* Hero buttons stack on mobile/tablet */
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 340px;
        justify-content: center;
    }

    /* Download buttons */
    .store-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 768px) {

    /* On mobile: full-width bottom sheet */
    .floating-cta {
        bottom: 0;
        right: 0;
        left: 0;
        border-radius: 0;
        transform: translateY(100%);
    }

    .floating-cta.visible {
        transform: translateY(0);
    }

    .floating-cta-card {
        width: 100%;
        border-radius: 28px 28px 0 0;
        padding: 1.5rem 1.5rem 2.5rem;
        box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
        border: none;
    }

    .floating-cta-text {
        font-size: 1.25rem;
    }

    .floating-bottom-btn {
        max-width: 320px;
    }

    .category-filter {
        gap: 0.5rem;
    }

    .cat-chip {
        padding: 8px 16px;
        font-size: 0.7rem;
    }
}

/* ─── Print ─── */
@media print {

    .navbar,
    .floating-cta,
    .hero-bg-shapes,
    .download-bg-shapes {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 2rem;
    }

    body {
        background: white;
    }
}

/* ─── Prefers reduced motion ─── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }
}