/* ===========================
   MALAK RESTO BAR — Landing Page
   Tema claro: blanco + naranja + dorado
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;600;700;800;900&display=swap');

/* ---- Variables ---- */
:root {
  --orange:        #FF6B1A;
  --orange-light:  #FF8C42;
  --orange-dark:   #D94F00;
  --gold:          #F5C518;
  --gold-light:    #FFD966;
  --gold-dark:     #C8960C;

  --light-bg:      #FFFFFF;
  --light-bg-2:    #F9F6F2;
  --light-bg-3:    #F0EDE8;
  --text-dark:     #2D2D2D;
  --text-muted:    #757575;
  --border-light:  #E8E8E8;

  --font-display: 'Lato', sans-serif;
  --font-body:    'Lato', sans-serif;

  --radius:    12px;
  --radius-lg: 24px;
  --shadow:    0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- Utilidades ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--orange);
  color: var(--light-bg);
  box-shadow: var(--shadow);
}

.btn-gold {
  background: var(--gold);
  color: var(--text-dark);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline:hover { background: rgba(255, 107, 26, 0.04); }

/* ========================
   NAV
   ======================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: var(--light-bg);
  transition: box-shadow 0.3s;
  border-bottom: 1px solid var(--border-light);
}
.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--orange); }

.nav-cta { display: flex; gap: 12px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ========================
   HERO
   ======================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--light-bg-2) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(255, 107, 26, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 70%, rgba(245, 197, 24, 0.04) 0%, transparent 55%);
}

/* Decorative circles */
.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--border-light);
}
.hero-bg::before {
  width: 600px; height: 600px;
  top: -100px; right: -100px;
}
.hero-bg::after {
  width: 400px; height: 400px;
  bottom: -80px; left: -80px;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 26, 0.1);
  border: 1px solid var(--orange);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--orange-dark);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--orange);
}
.stat-item .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-screen-image {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 44px;
  box-shadow: var(--shadow-lg);
  display: block;
}

/* Floating badges around phone */
.float-badge {
  position: absolute;
  background: var(--light-bg);
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}
.float-badge:nth-child(2) { animation-delay: 1s; }
.float-badge:nth-child(3) { animation-delay: 2s; }

.float-badge-1 { top: 80px; right: -20px; }
.float-badge-2 { bottom: 140px; right: -30px; }
.float-badge-3 { bottom: 80px; left: -30px; }

.badge-icon { font-size: 20px; }
.badge-text { display: flex; flex-direction: column; gap: 1px; }
.badge-text span:first-child { color: var(--orange); font-size: 13px; font-weight: 700; }
.badge-text span:last-child { color: var(--text-muted); font-size: 10px; font-weight: 400; }

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

/* ========================
   CÓMO FUNCIONA
   ======================== */
.how-section {
  padding: 100px 0;
  background: var(--light-bg-2);
  position: relative;
  overflow: hidden;
}

.how-section::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.04) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 60px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  position: relative;
}

/* Arrow connector (desktop only) */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--gold), transparent);
  opacity: 0.3;
  pointer-events: none;
}

.step-card {
  background: var(--light-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
}
.step-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.step-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(255, 107, 26, 0.1);
  border: 2px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
  transition: transform 0.3s;
}
.step-card:hover .step-icon { transform: scale(1.08); }

.step-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================
   FEATURES
   ======================== */
.features-section {
  padding: 100px 0;
  position: relative;
}

.features-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 80% 50%, rgba(255, 107, 26, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.features-header { text-align: center; margin-bottom: 64px; }
.features-header .section-subtitle { margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: var(--light-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.feature-card:hover {
  border-color: var(--orange);
  background: rgba(255, 107, 26, 0.04);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.icon-orange { background: rgba(255, 107, 26, 0.1); border: 1px solid var(--orange); }
.icon-gold   { background: rgba(245, 197, 24, 0.1); border: 1px solid var(--gold); }
.icon-warm   { background: rgba(255, 107, 26, 0.08); border: 1px solid var(--orange-light); }

.feature-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ========================
   DESCARGA
   ======================== */
.download-section {
  padding: 100px 0;
  background: var(--light-bg-3);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.download-section::before {
  display: none;
}

.download-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.download-text .section-title { margin-bottom: 16px; color: var(--text-dark); }

.download-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.store-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.store-btn-badge {
  display: inline-block;
  transition: transform 0.2s, filter 0.2s;
}
.store-btn-badge img {
  height: 48px;
  width: auto;
  display: block;
}
.store-btn-badge:hover {
  transform: translateY(-2px);
  filter: drop-shadow(var(--shadow-lg));
}

/* QR mockup */
.download-visual {
  display: flex;
  justify-content: center;
}

.app-card {
  background: var(--light-bg);
  border: 2px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.app-icon {
  width: 120px;
  height: 120px;
  display: block;
}

.app-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.app-sub {
  font-size: 13px;
  color: var(--orange);
  font-weight: 600;
}

/* ========================
   LEGAL
   ======================== */
.legal-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-light);
}

.legal-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: start;
}

.legal-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.legal-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 28px;
}

.legal-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.legal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border-light);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.legal-link:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255, 107, 26, 0.04);
}

.complaints-card {
  background: var(--light-bg);
  border: 2px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  min-width: 200px;
  align-items: center;
  display: flex;
  flex-direction: column;

}

.complaints-image {
  width: 100%;
  max-width: 100px;
  height: auto;
  margin-bottom: 16px;
  display: block;
}

.complaints-sub { font-size: 11px; color: var(--orange); margin-bottom: 16px; font-weight: 600; }

/* ========================
   FOOTER
   ======================== */
footer {
  background: var(--light-bg-2);
  border-top: 1px solid var(--border-light);
}

.footer-company {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border-light);
}

.footer-section {
  max-width: 600px;
}

.footer-company-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.footer-company-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}

.detail-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.detail-label {
  font-weight: 600;
  color: var(--text-dark);
  min-width: 80px;
}

.detail-value {
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-bottom {
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--orange); }

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle { max-width: 100%; margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }

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

  .download-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .store-buttons { justify-content: center; }
  .download-visual { display: none; }

  .legal-inner { grid-template-columns: 1fr; }
  .complaints-card { display: none; }

  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { flex-wrap: wrap; gap: 20px; justify-content: center; }

  .footer-company {
    padding: 32px 0 24px;
  }

  .detail-row {
    flex-direction: column;
    gap: 4px;
  }

  .detail-label {
    min-width: auto;
  }
}
