/* =============================================
   QOORDER LANDING PAGE - Dark Theme
   Brand: Green #00D26A / Purple #5B2FA0
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Inter', sans-serif;
    background: #0A0A0F;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- Utility --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 999px;
    font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
}
.section-tag--green { background: rgba(0,210,106,0.12); color: #00D26A; }
.section-tag--purple { background: rgba(91,47,160,0.12); color: #5B2FA0; }
.section-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800; line-height: 1.1;
}
.section-subtitle {
    font-size: 18px; color: rgba(255,255,255,0.4); line-height: 1.6;
    max-width: 550px; margin: 0 auto;
}
.text-center { text-align: center; }

/* --- Reveal Animation (only when JS is loaded) --- */
.js .reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   HEADER
   ============================================= */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0 40px; height: 80px;
    display: flex; align-items: center; justify-content: space-between;
    background: transparent; transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
.header.scrolled {
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}
.header__logo img { height: 42px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 32px; }
.header__nav a {
    font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
.header__nav a:hover { color: #fff; }
.header__cta {
    padding: 10px 24px; border-radius: 12px;
    background: #00D26A; color: #0A0A0F;
    font-size: 15px; font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}
.header__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,210,106,0.4);
}

/* Header auth */
.header__auth {
    display: flex; align-items: center; gap: 10px; margin-left: 8px;
}
.header__auth-name {
    font-size: 13px; color: rgba(255,255,255,0.6); font-weight: 500; white-space: nowrap;
}
.header__auth-btn {
    padding: 8px 18px; border-radius: 10px;
    background: rgba(0,210,106,0.12); border: 1px solid rgba(0,210,106,0.25);
    color: #00D26A; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.2s; white-space: nowrap;
    font-family: 'Inter', sans-serif;
}
.header__auth-btn:hover {
    background: rgba(0,210,106,0.2); border-color: #00D26A;
}
.header__auth-btn--logout {
    background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}
.header__auth-btn--logout:hover {
    background: rgba(255,107,107,0.1); border-color: rgba(255,107,107,0.3);
    color: #FF6B6B;
}

/* Mobile menu */
.header__burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.header__burger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative; min-height: 100vh; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    padding-top: 80px;
}

/* Gradient Orbs */
.hero__orb {
    position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite;
}
.hero__orb--green { width: 500px; height: 500px; background: rgba(0,210,106,0.15); top: -100px; left: -100px; }
.hero__orb--purple { width: 400px; height: 400px; background: rgba(91,47,160,0.2); bottom: -50px; right: -50px; animation-delay: -4s; }
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.hero__content {
    position: relative; z-index: 2;
    text-align: center; padding: 0 24px;
    display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.hero__badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; border-radius: 999px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.6);
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #00D26A; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1.05;
}
.hero__title .gradient-text {
    background: linear-gradient(90deg, #00D26A 0%, #00E676 50%, #7C3AED 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__subtitle {
    font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,0.5);
    max-width: 550px; line-height: 1.6;
}

/* Phone mockup */
.hero__phone-wrapper {
    position: relative; margin-top: 40px;
    width: 280px; height: 560px;
}
.hero__phone {
    width: 100%; height: 100%;
    border-radius: 36px; overflow: hidden;
    border: 3px solid rgba(255,255,255,0.1);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 60px rgba(0,210,106,0.15);
    background: #1a1a2e;
}
.hero__phone img { width: 100%; height: 100%; object-fit: cover; }
.hero__phone-glow {
    position: absolute; inset: -40px; border-radius: 60px;
    background: radial-gradient(ellipse, rgba(0,210,106,0.15), transparent 70%);
    pointer-events: none; z-index: -1;
}

/* Floating food images */
.hero__floats { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero__float-item {
    position: absolute; width: 90px; height: 90px;
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    animation: float 6s ease-in-out infinite;
}
.hero__float-item img { width: 100%; height: 100%; object-fit: cover; }
.hero__float-item:nth-child(1) { top: 20%; left: 5%; animation-delay: 0s; }
.hero__float-item:nth-child(2) { top: 10%; right: 8%; animation-delay: -1s; }
.hero__float-item:nth-child(3) { top: 55%; left: 8%; animation-delay: -2s; }
.hero__float-item:nth-child(4) { top: 60%; right: 5%; animation-delay: -3s; }
.hero__float-item:nth-child(5) { top: 35%; left: 2%; animation-delay: -4s; }
.hero__float-item:nth-child(6) { top: 40%; right: 3%; animation-delay: -5s; }
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

/* =============================================
   TRUST STATS BAR
   ============================================= */
.trust-bar {
    background: linear-gradient(135deg, #00D26A 0%, #00B85C 50%, #009E4F 100%);
    padding: 40px 0;
}
.trust-bar__grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    text-align: center;
}
.trust-bar__stat-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: #fff;
}
.trust-bar__stat-label { font-size: 15px; color: rgba(255,255,255,0.8); font-weight: 500; margin-top: 4px; }

/* =============================================
   BENTO GRID - ¿Por qué Qoorder?
   ============================================= */
.bento { padding: 100px 0; background: #F8F9FA; }
.bento__header { text-align: center; margin-bottom: 60px; }
.bento__header .section-title { font-size: clamp(32px, 4vw, 52px); color: #18181B; }

.bento__grid {
    display: grid; gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
}
.bento__card {
    border-radius: 20px; overflow: hidden; position: relative;
    background: #18181B; color: #fff;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 280px;
    transition: transform 0.3s;
}
.bento__card:hover { transform: translateY(-4px); }
.bento__card--wide { grid-column: span 2; }
.bento__card__image {
    position: absolute; inset: 0;
}
.bento__card__image img { width: 100%; height: 100%; object-fit: cover; }
.bento__card__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
}
.bento__card__content {
    position: relative; z-index: 2; padding: 28px;
    display: flex; flex-direction: column; gap: 8px;
}
.bento__card__tag {
    display: inline-flex; padding: 4px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 600; width: fit-content;
}
.bento__card__tag--green { background: rgba(0,210,106,0.15); color: #00D26A; }
.bento__card__tag--red { background: rgba(255,107,107,0.15); color: #FF6B6B; }
.bento__card__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(20px, 2.5vw, 26px); font-weight: 800;
}
.bento__card__desc { font-size: 14px; color: rgba(255,255,255,0.7); }

/* =============================================
   RESTAURANTES
   ============================================= */
.restaurants { padding: 100px 0; background: #0A0A0F; }
.restaurants__header { text-align: center; margin-bottom: 48px; }
.restaurants__header .section-title { font-size: clamp(32px, 4vw, 48px); }

/* Filtros por pueblo */
.restaurants__filters {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    margin-bottom: 40px;
}
.restaurants__filter {
    padding: 10px 22px; border-radius: 999px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6); font-size: 14px; font-weight: 500;
    cursor: pointer; transition: all 0.3s;
}
.restaurants__filter:hover { border-color: rgba(0,210,106,0.3); color: #fff; }
.restaurants__filter.active {
    background: rgba(0,210,106,0.15); border-color: #00D26A; color: #00D26A;
}

/* Grid de restaurantes */
.restaurants__grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px;
}
.restaurant-card {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px; overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.restaurant-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,210,106,0.2);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.restaurant-card__image {
    width: 100%; height: 160px; overflow: hidden; position: relative;
}
.restaurant-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.restaurant-card:hover .restaurant-card__image img { transform: scale(1.05); }
.restaurant-card__logo {
    position: absolute; bottom: -20px; left: 16px;
    width: 48px; height: 48px; border-radius: 12px;
    background: #1a1a2e; border: 2px solid #0A0A0F;
    overflow: hidden; z-index: 2;
}
.restaurant-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.restaurant-card__body { padding: 28px 16px 16px; }
.restaurant-card__name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px; font-weight: 700; margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.restaurant-card__meta {
    display: flex; align-items: center; gap: 12px;
    font-size: 13px; color: rgba(255,255,255,0.5);
}
.restaurant-card__category {
    display: inline-flex; align-items: center; gap: 4px;
}
.restaurant-card__time {
    display: inline-flex; align-items: center; gap: 4px;
}
.restaurant-card__time svg { width: 14px; height: 14px; }
.restaurant-card__pueblo {
    font-size: 12px; color: #00D26A; font-weight: 500; margin-top: 8px;
}

/* =============================================
   CIUDADES
   ============================================= */
.cities { padding: 100px 0; background: #0A0A0F; }
.cities__header { text-align: center; margin-bottom: 60px; }
.cities__header .section-title { font-size: clamp(32px, 4vw, 52px); }

.cities__grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.city-card {
    position: relative; border-radius: 16px; overflow: hidden;
    height: 220px; cursor: default;
    transition: transform 0.3s;
}
.city-card:hover { transform: translateY(-4px); }
.city-card__image {
    position: absolute; inset: 0;
}
.city-card__image img { width: 100%; height: 100%; object-fit: cover; }
.city-card__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.75) 100%);
}
.city-card__info {
    position: absolute; bottom: 20px; left: 20px; z-index: 2;
    display: flex; flex-direction: column; gap: 4px;
}
.city-card__province {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 500; color: #00D26A;
}
.city-card__province .dot { width: 8px; height: 8px; border-radius: 50%; background: #00D26A; }
.city-card__name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px; font-weight: 700; color: #fff;
}
.city-card__count {
    font-size: 12px; color: rgba(255,255,255,0.5);
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.how-it-works { padding: 100px 0; background: #F8F9FA; }
.how-it-works__header { text-align: center; margin-bottom: 60px; }
.how-it-works__header .section-title { font-size: clamp(32px, 4vw, 52px); color: #18181B; }

.how-it-works__steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.step { text-align: center; }
.step__number {
    width: 72px; height: 72px; border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 36px; font-weight: 800; color: #fff;
}
.step__number--1 { background: linear-gradient(135deg, #00D26A, #00B85C); }
.step__number--2 { background: linear-gradient(135deg, #5B2FA0, #7C3AED); }
.step__number--3 { background: linear-gradient(135deg, #FF6B6B, #ee5a5a); }
.step__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px; font-weight: 700; color: #18181B; margin-bottom: 12px;
}
.step__desc { font-size: 15px; color: #6B7280; line-height: 1.6; max-width: 300px; margin: 0 auto; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials { padding: 100px 0; background: #F8F9FA; }
.testimonials__header { text-align: center; margin-bottom: 60px; }
.testimonials__header .section-title { font-size: clamp(32px, 4vw, 44px); color: #18181B; }

.testimonials__grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testimonial-card {
    background: #fff; border-radius: 20px; padding: 32px;
    border: 1px solid #E5E7EB;
    transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.testimonial-card__stars { color: #FBBF24; font-size: 20px; margin-bottom: 16px; }
.testimonial-card__quote { font-size: 16px; color: #374151; line-height: 1.6; margin-bottom: 20px; }
.testimonial-card__author { font-size: 15px; font-weight: 600; color: #18181B; }
.testimonial-card__city { font-size: 13px; color: #9CA3AF; }

/* =============================================
   DOWNLOAD CTA
   ============================================= */
.cta-section {
    position: relative; padding: 120px 0; background: #0A0A0F;
    overflow: hidden; text-align: center;
}
.cta-section__orb {
    position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none;
}
.cta-section__orb--green { width: 400px; height: 400px; background: rgba(0,210,106,0.12); top: -100px; left: 50%; transform: translateX(-50%); }
.cta-section__orb--purple { width: 300px; height: 300px; background: rgba(91,47,160,0.15); bottom: -50px; right: 10%; }

.cta-section__content { position: relative; z-index: 2; }
.cta-section__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(36px, 5vw, 64px); font-weight: 800; margin-bottom: 16px;
}
.cta-section__subtitle {
    font-size: 20px; color: rgba(255,255,255,0.5); margin-bottom: 48px;
}
.cta-section__buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.store-btn {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 28px; border-radius: 16px;
    font-weight: 600; transition: transform 0.2s, box-shadow 0.2s;
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn--apple {
    background: #fff; color: #0A0A0F;
    box-shadow: 0 4px 20px rgba(255,255,255,0.1);
}
.store-btn--apple:hover { box-shadow: 0 8px 30px rgba(255,255,255,0.2); }
.store-btn--google {
    background: rgba(255,255,255,0.08); color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}
.store-btn--google:hover { box-shadow: 0 8px 30px rgba(0,210,106,0.15); }
.store-btn__icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; }
.store-btn__icon svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-btn__text { text-align: left; }
.store-btn__text small { display: block; font-size: 11px; font-weight: 400; opacity: 0.7; }
.store-btn__text strong { display: block; font-size: 18px; font-family: 'Plus Jakarta Sans', sans-serif; }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: #06060A; padding: 80px 0 40px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer__grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
    margin-bottom: 60px;
}
.footer__brand img { height: 40px; margin-bottom: 16px; }
.footer__brand p { font-size: 14px; color: rgba(255,255,255,0.35); line-height: 1.7; max-width: 300px; }
.footer__col-title {
    font-size: 13px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; margin-bottom: 16px; color: #fff;
}
.footer__links li { margin-bottom: 10px; }
.footer__links a { font-size: 14px; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer__links a:hover { color: #00D26A; }
.footer__bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 13px; color: rgba(255,255,255,0.25);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .bento__grid { grid-template-columns: repeat(2, 1fr); }
    .bento__card--wide { grid-column: span 2; }
    .cities__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header__nav { display: none; }
    .header__burger { display: flex; }
    .header__auth-name { display: none; }
    .header__auth-btn { padding: 6px 12px; font-size: 12px; }
    .header__nav.open {
        display: flex; flex-direction: column;
        position: absolute; top: 80px; left: 0; right: 0;
        background: rgba(10,10,15,0.95); backdrop-filter: blur(20px);
        padding: 24px 40px; gap: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .hero__float-item { width: 60px; height: 60px; }

    .trust-bar__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }

    .bento__grid { grid-template-columns: 1fr; }
    .bento__card--wide { grid-column: span 1; }

    .restaurants__grid { grid-template-columns: repeat(2, 1fr); }

    .cities__grid { grid-template-columns: repeat(2, 1fr); }

    .how-it-works__steps { grid-template-columns: 1fr; gap: 48px; }

    .testimonials__grid { grid-template-columns: 1fr; }

    .footer__grid { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .restaurants__grid { grid-template-columns: 1fr; }
    .cities__grid { grid-template-columns: 1fr; }
    .trust-bar__grid { grid-template-columns: repeat(2, 1fr); }
    .cta-section__buttons { flex-direction: column; align-items: center; }
}
