/* =========================================================
   Agroregistro – Public UI (GLOBAL)
   Header + Footer verdes · SaaS moderno
   ========================================================= */

:root{
  --ar-green-1:#2E7D5A;
  --ar-green-2:#3FA37A;
  --ar-green-3:#6BCF9B;
  --ar-green-deep:#1F6A4A;
  --ar-soft:#E9F7F0;

  --ar-text:#0f172a;
  --ar-muted:#64748b;
  --ar-white:#ffffff;

  --ar-border: rgba(15,23,42,.10);
  --ar-border-soft: rgba(15,23,42,.08);
  --ar-shadow: 0 14px 34px rgba(15,23,42,.10);

  --ar-radius:18px;
  --ar-radius-sm:14px;
  --ar-max:1180px;
  --ar-header-h:66px;
}

/* ===============================
   RESET / BASE
   =============================== */
*{ box-sizing:border-box; }
html,body{ height:100%; }

body.ar{
  margin:0;
  font-family:"Open Sans",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:#fff;
  color:var(--ar-text);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }

/* ===============================
   LAYOUT
   =============================== */
.ar-container{
  max-width:var(--ar-max);
  margin:0 auto;
  padding:0 22px;
}

.ar-hero-wrap{ background:#fff; }
.ar-page{ min-height:calc(100vh - 140px); }
.ar-main{ padding:0; }

/* ===============================
   HEADER (VERDE · LOGO SOLO)
   =============================== */
.ar-header{
  position:sticky;
  top:0;
  z-index:9999;
  height:var(--ar-header-h);
  display:flex;
  align-items:center;
  background:linear-gradient(135deg,var(--ar-green-1),var(--ar-green-2),var(--ar-green-3));
  border-bottom:1px solid rgba(255,255,255,.18);
}

.ar-header__inner{
  width:100%;
  max-width:var(--ar-max);
  margin:0 auto;
  padding:0 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* LOGO SOLO */
.ar-brand{
  display:flex;
  align-items:center;
}
.ar-brand__logo{
  height:50px;
  width:auto;
}

/* ===============================
   NAV DESKTOP
   =============================== */
.ar-nav--desktop{
  display:flex;
  align-items:center;
  gap:10px;
}

.ar-nav__link{
  font-size:13px;
  color:rgba(255,255,255,.92);
  padding:8px 12px;
  border-radius:999px;
  font-weight:600;
}
.ar-nav__link:hover{
  background:rgba(255,255,255,.14);
}
.ar-nav__link.is-active{
  background:rgba(255,255,255,.20);
}

/* ===============================
   BOTONES
   =============================== */
.ar-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid transparent;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
}

.ar-btn--sm{ padding:8px 14px; }

.ar-btn--primary{
  background:#fff;
  color:var(--ar-text);
  box-shadow:0 14px 34px rgba(15,23,42,.18);
}

.ar-btn--ghost{
  background:rgba(255,255,255,.18);
  border-color:rgba(255,255,255,.28);
  color:#fff;
}

/* ===============================
   HAMBURGUESA MÓVIL
   =============================== */
.ar-nav--mobile{
  display:none;
  position:relative;
}

.ar-burger{
  cursor:pointer;
  list-style:none;
}
.ar-burger::-webkit-details-marker{ display:none; }

.ar-burger__icon{
  width:26px;
  height:2px;
  background:#fff;
  position:relative;
}
.ar-burger__icon::before,
.ar-burger__icon::after{
  content:"";
  position:absolute;
  left:0; right:0;
  height:2px;
  background:#fff;
}
.ar-burger__icon::before{ top:-7px; }
.ar-burger__icon::after{ top:7px; }

.ar-mobile-menu{
  position:absolute;
  right:0;
  top:48px;
  width:240px;
  background:#fff;
  border-radius:18px;
  padding:16px;
  box-shadow:var(--ar-shadow);
  display:flex;
  flex-direction:column;
  gap:12px;
}

.ar-mobile-link{
  font-weight:600;
  color:var(--ar-text);
}
.ar-mobile-link.is-active{
  color:var(--ar-green-1);
}

.ar-mobile-cta{
  margin-top:8px;
  justify-content:center;
}

/* ===============================
   TIPOGRAFÍA
   =============================== */
.ar-title{
  font-size:44px;
  line-height:1.05;
  font-weight:700;
}
.ar-lead{
  font-size:16px;
  color:var(--ar-muted);
}
.ar-h2{ font-size:22px; font-weight:700; }
.ar-h3{ font-size:18px; font-weight:700; }
.ar-p{ color:var(--ar-muted); }

/* ===============================
   CARDS
   =============================== */
.ar-card{
  background:#fff;
  border:1px solid var(--ar-border-soft);
  border-radius:var(--ar-radius);
  box-shadow:var(--ar-shadow);
}
.ar-card--pad{ padding:18px; }

/* ===============================
   FOOTER (VERDE)
   =============================== */
.ar-footer{
  background:linear-gradient(135deg,var(--ar-green-1),var(--ar-green-2),var(--ar-green-3));
  color:rgba(255,255,255,.92);
}

.ar-footer__inner{
  max-width:var(--ar-max);
  margin:0 auto;
  padding:28px 22px;
  display:flex;
  justify-content:space-between;
  gap:18px;
  font-size:13px;
}

.ar-footer__links{
  display:flex;
  gap:10px;
}

.ar-footer__link{
  padding:6px 10px;
  border-radius:999px;
}
.ar-footer__link:hover{
  background:rgba(255,255,255,.14);
}

/* ===============================
   HOME HERO VERDE
   =============================== */
body.ar-screen-home .ar-hero-wrap{
  background:linear-gradient(135deg,var(--ar-green-1),var(--ar-green-2),var(--ar-green-3));
}

/* ===============================
   RESPONSIVE
   =============================== */
@media (max-width:900px){
  .ar-nav--desktop{ display:none; }
  .ar-nav--mobile{ display:block; }
}

@media (max-width:520px){
  .ar-brand__logo{ height:28px; }
}
