:root{
  --primary: #1FA463;      /* verde Conafood */
  --primary-dark: #168a52;
  --bg: #F6F7FB;           /* gris muy claro */
  --card: #FFFFFF;
  --text: #0F172A;         /* oscuro elegante */
  --muted: #64748B;        /* gris texto */
  --border: rgba(15, 23, 42, .10);
  --shadow: 0 12px 30px rgba(2, 6, 23, .08);
  --radius: 18px;
  --container: 1120px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a{ color: inherit; text-decoration:none; }
p{ margin: .5rem 0; line-height: 1.5; }
.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* Header (como app) */
.site-header{
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}
.brand-logo{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(2, 6, 23, .08);
  background: #fff;
}
.brand-title{
  margin:0;
  font-size: 1.15rem;
  letter-spacing: .2px;
}
.brand-subtitle{
  margin:0;
  color: var(--muted);
  font-size: .92rem;
}

.header-actions{
  display:flex;
  gap: 10px;
  align-items:center;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 650;
  transition: transform .08s ease, background .2s ease, border .2s ease;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--primary);
  border-color: rgba(31,164,99,.35);
  color: #fff;
}
.btn-primary:hover{ background: var(--primary-dark); }

.btn-ghost{
  background: #fff;
  color: var(--text);
}
.btn-ghost:hover{
  background: rgba(15, 23, 42, .04);
}

/* Hero */
.hero{
  padding: 34px 0 20px;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: start;
}

.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-title{
  margin: 12px 0 0;
  font-size: clamp(2.1rem, 4vw, 3.0rem);
  line-height: 1.05;
  letter-spacing: -0.6px;
}
.hero-text{
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 10px;
  max-width: 60ch;
}

.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 */
.section{
  padding: 18px 0 36px;
}
.section-title{
  margin: 0 0 12px;
  font-size: 1.2rem;
}
.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);
}

.btn-primary:hover{
  filter: brightness(0.98);
}

.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);
}

.btn-primary:hover{
  filter: brightness(0.97);
}

/* 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;
  }
}
