/* ==========================================================
   CONAFOOD DESIGN SYSTEM
   ========================================================== */

:root {
  --primary: #1FA463;
  --primary-dark: #168a52;
  --primary-light: #E8F5EE;
  
  --bg: #F6F7FB;
  --surface: #FFFFFF;
  --surface-soft: #F1F4F2;
  
  --text: #0F172A;
  --text-secondary: #64748B;
  
  --border: rgba(15, 23, 42, .10);
  
  --success: #2E9B62;
  --warning: #D99A22;
  --danger: #D9534F;
  --info: #3B82C4;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  
  --shadow-sm: 0 4px 12px rgba(2, 6, 23, .04);
  --shadow-md: 0 8px 24px rgba(2, 6, 23, .08);
  --shadow-lg: 0 12px 32px rgba(2, 6, 23, .12);

  --container: 1120px;
}

/* RESET & GLOBAL */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--spacing-sm); color: var(--text); line-height: 1.2; }
p { margin: 0 0 var(--spacing-md); color: var(--text-secondary); }

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

/* LAYOUT */
.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* NAVBAR */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}
.brand-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
}
.desktop-nav {
  display: flex;
  gap: 24px;
  font-weight: 500;
  color: var(--text-secondary);
}
.desktop-nav a:hover {
  color: var(--primary-dark);
}
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface-soft);
}

/* HERO */
.hero {
  padding: 80px 0;
  background: var(--bg);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text);
}
.hero-text {
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-benefits {
  display: flex;
  gap: 32px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.benefit-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 12px;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

/* PHONE MOCKUP */
.hero-phone-wrapper {
  display: flex;
  justify-content: center;
}
.hero-phone {
  width: 320px;
  height: 640px;
  background: var(--bg);
  border-radius: 40px;
  box-shadow: var(--shadow-lg);
  border: 10px solid #ffffff;
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.phone-brand {
  font-weight: 700;
  color: var(--primary-dark);
}
.phone-avatar {
  background: var(--surface-soft);
  color: var(--text-secondary);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-mock-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.phone-mock-img {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--surface-soft);
}
.phone-mock-info {
  flex: 1;
}
.phone-mock-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 4px;
}
.phone-mock-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.phone-mock-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CATEGORIES */
.section {
  padding: 64px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-subtitle {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.section-title {
  font-size: 2.2rem;
  margin-top: 8px;
  margin-bottom: 16px;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.category-card {
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 160px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.category-card.bg-1 { background: #F8FAF9; border: 1px solid var(--border); }
.category-card.bg-2 { background: #F8FAF9; border: 1px solid var(--border); }
.category-card.bg-3 { background: #F8FAF9; border: 1px solid var(--border); }
.category-card.bg-4 { background: #F8FAF9; border: 1px solid var(--border); }
.category-title {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
}
.category-link {
  color: var(--primary);
  font-size: 0.95rem;
  margin-top: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* HOW IT WORKS */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.step-item {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.step-number {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}

/* PRODUCT GRID */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 32px;
}
.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { 
  transform: translateY(-4px); 
  box-shadow: var(--shadow-md);
}
.product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
}
.product-body { 
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.product-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 8px 0 24px;
  flex: 1;
}
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.product-price {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.add-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, border-color 0.2s;
}
.add-btn:hover:not(:disabled) {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--primary-dark);
}
.add-btn:disabled {
  background: var(--surface-soft);
  color: var(--text-secondary);
  cursor: not-allowed;
}

.hint-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text);
  color: white;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transition: opacity 0.3s;
}
.hint-toast:empty { display: none; }

/* SVG Icons */
svg.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero-title { font-size: 2.8rem; }
  .desktop-nav { display: none; }
  .hero-benefits { flex-direction: column; gap: 24px; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-phone-wrapper { display: none; }
}


/* === LEGACY UTILS FOR OTHER PAGES === */










/* Header (como app) */






.brand-subtitle{
  margin:0;
  color: var(--muted);
  font-size: .92rem;
}



/* Buttons */









/* Hero */



.hero-badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31,164,99,.10);
  color: var(--primary-dark);
  border: 1px solid rgba(31,164,99,.18);
  font-weight: 650;
  font-size: .9rem;
}




.hero-cta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hero-note{
  margin-top: 12px;
  color: var(--muted);
  font-size: .92rem;
}

/* App-like Card */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.card-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.card-title{
  margin:0;
  font-size: 1.05rem;
}
.pill{
  font-size: .82rem;
  font-weight: 650;
  color: var(--primary-dark);
  background: rgba(31,164,99,.10);
  border: 1px solid rgba(31,164,99,.18);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.steps{
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step{
  display:flex;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: rgba(15, 23, 42, .02);
}
.step-badge{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display:grid;
  place-items:center;
  background: rgba(31,164,99,.12);
  border: 1px solid rgba(31,164,99,.22);
  color: var(--primary-dark);
  font-weight: 800;
  flex: 0 0 auto;
}
.step p{
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .95rem;
}

/* Benefits */


.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.feature{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 10px 22px rgba(2, 6, 23, .05);
}
.feature h4{ margin: 0 0 6px; }
.feature p{ margin:0; color: var(--muted); }

/* Footer */
.site-footer{
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 18px 0;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: .92rem;
}

/* Responsive */
@media (max-width: 920px){
  .hero-inner{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .footer-inner{ flex-direction: column; }
}

.field input{
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  outline: none;
  font-size: 1rem;
  transition: border .15s ease, box-shadow .15s ease;
}

.field input:focus{
  border-color: rgba(31,164,99,.55);
  box-shadow: 0 0 0 4px rgba(31,164,99,.12);
}

/* =========================
   LOGIN ELEGANTE (Uber Style)
   ========================= */

.auth-wrap{
  min-height: calc(100vh - 74px);
  display: grid;
  place-items: center;
  padding: 26px 0 38px;
}

.auth-card{
  width: 100%;
  max-width: 520px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow:
    0 24px 60px rgba(2, 6, 23, .10),
    0 6px 18px rgba(2, 6, 23, .06);
  position: relative;
  overflow: hidden;
}

.auth-card::before{
  content:"";
  position:absolute;
  width: 380px;
  height: 380px;
  right: -180px;
  top: -220px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(31,164,99,.18), transparent 62%);
  pointer-events:none;
}

.auth-title{
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.4px;
}

.auth-subtitle{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .98rem;
}

.fgroup{ margin-top: 14px; }

.flabel{
  display:block;
  font-size: .92rem;
  font-weight: 750;
  margin-bottom: 8px;
  color: rgba(15, 23, 42, .88);
}

.input-wrap{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.98);
  transition: border .16s ease, box-shadow .16s ease, transform .08s ease;
}

.input-wrap:focus-within{
  border-color: rgba(31,164,99,.55);
  box-shadow: 0 0 0 4px rgba(31,164,99,.14);
}

.input-wrap .icon{
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(2, 6, 23, .04);
  color: rgba(15, 23, 42, .58);
  flex: 0 0 auto;
}

.input-wrap input{
  width:100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  padding: 6px 2px;
  color: var(--text);
}

.input-wrap input::placeholder{
  color: rgba(100,116,139,.85);
}

.toggle-pass{
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(2, 6, 23, .04);
  color: rgba(15, 23, 42, .80);
  font-weight: 750;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, transform .08s ease;
}

.toggle-pass:hover{
  background: rgba(2, 6, 23, .07);
}

.btn-wide{
  width: 100%;
  margin-top: 16px;
  padding: 13px 16px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(31,164,99,.18);
}



.hint{
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: .9rem;
}

.auth-links{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: .95rem;
}

.link{
  color: var(--primary-dark);
  font-weight: 800;
}

.link:hover{ text-decoration: underline; }

.alert{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(239,68,68,.25);
  background: rgba(239,68,68,.08);
  color: #991B1B;
  font-weight: 750;
}

/* Responsive del login */
@media (max-width: 560px){
  .auth-card{ padding: 16px; border-radius: 20px; }
  .auth-links{ flex-direction: column; align-items: flex-start; }
}

/* Food cards estilo Uber */
.food-card{
  background: var(--card);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

.food-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.food-card img{
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.food-info{
  padding: 14px;
}

.food-info h4{
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.food-info p{
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}
/* =========================
   AUTH / REGISTRO ELEGANTE
   ========================= */

.auth-wrap{
  min-height: calc(100vh - 74px);
  display: grid;
  place-items: center;
  padding: 30px 0 40px;
}

.auth-panel{
  width: -50%;
}

.auth-card{
  width: 100%;
  max-width: 560px;
  padding: 26px;
  border-radius: 26px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow:
    0 30px 70px rgba(2, 6, 23, .12),
    0 8px 20px rgba(2, 6, 23, .08);
  position: relative;
  overflow: hidden;
}

/* Glow verde suave */
.auth-card::before{
  content:"";
  position:absolute;
  width: 420px;
  height: 420px;
  right: -200px;
  top: -250px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(31,164,99,.20), transparent 65%);
  pointer-events:none;
}

.auth-head{
  position: relative;
  margin-bottom: 18px;
}

.auth-title{
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
}

.auth-subtitle{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.5;
}

/* Campos */
.fgroup{
  margin-top: 16px;
}

.flabel{
  display:block;
  font-size: .95rem;
  font-weight: 750;
  margin-bottom: 8px;
  color: rgba(15, 23, 42, .88);
}

.input-wrap{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: #fff;
  transition: border .18s ease, box-shadow .18s ease, transform .08s ease;
}

.input-wrap:focus-within{
  border-color: rgba(31,164,99,.65);
  box-shadow: 0 0 0 4px rgba(31,164,99,.14);
}

.input-wrap input{
  width:100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text);
  padding: 6px 0;
}

.input-wrap input::placeholder{
  color: rgba(100,116,139,.85);
}

/* Iconos */
.input-wrap .icon{
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(2, 6, 23, .05);
  color: rgba(15, 23, 42, .6);
  flex: 0 0 auto;
}

/* Mostrar contraseña */
.toggle-pass{
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(2, 6, 23, .05);
  color: rgba(15, 23, 42, .80);
  font-weight: 750;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, transform .08s ease;
}

.toggle-pass:hover{
  background: rgba(2, 6, 23, .08);
}

.toggle-pass:active{
  transform: translateY(1px);
}

/* Botón */
.btn-wide{
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(31,164,99,.20);
}



/* Texto pequeño */
.hint{
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: .9rem;
}

/* Links */
.auth-links{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: .95rem;
}

.link{
  color: var(--primary-dark);
  font-weight: 800;
}

.link:hover{
  text-decoration: underline;
}

/* Nota inferior */
.auth-footnote{
  margin-top: 20px;
  padding: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(15, 23, 42, .14);
  background: rgba(15, 23, 42, .03);
  display:flex;
  gap: 10px;
  align-items:flex-start;
}

.auth-footnote p{
  margin:0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.4;
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(31,164,99,.65);
  margin-top: 5px;
  flex: 0 0 auto;
}

/* Alert */
.alert{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(239,68,68,.25);
  background: rgba(239,68,68,.08);
  color: #991B1B;
  font-weight: 750;
}

/* Responsive */
@media (max-width: 560px){
  .auth-card{
    padding: 18px;
    border-radius: 22px;
  }

  .auth-links{
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes spin { 100% { transform: rotate(360deg); } }
