
/* =========================================================
   AGROADMIN LANDING - SHARED STYLE
   Compatible with: index.html, terminos.html, privacidad.html
   ========================================================= */

/* =========================================================
   1. DESIGN TOKENS / COLOR PALETTE
   ========================================================= */

  :root {
      /* AgroAdmin - Light Color Scheme */
      --primary: #4CAF50;
      --on-primary: #FFFFFF;
      --primary-container: rgba(76, 175, 80, 0.12);
      --on-primary-container: #4CAF50;
      --primary-dark: #2E7D32;
      --primary-deep: #1B5E20;

      --secondary: #FF9800;
      --on-secondary: #FFFFFF;
      --secondary-container: rgba(255, 152, 0, 0.12);
      --on-secondary-container: #FF9800;

      --tertiary: #2196F3;
      --on-tertiary: #FFFFFF;
      --tertiary-container: rgba(33, 150, 243, 0.12);
      --on-tertiary-container: #2196F3;
      --tertiary-dark: #1565C0;

      --success: #2E7D32;
      --error: #C62828;
      --warning: #F9A825;
      --info: #1565C0;

      --background: #F7F9F7;
      --on-background: #212121;
      --surface: #FFFFFF;
      --on-surface: #212121;
      --surface-variant: #F1F4F1;
      --on-surface-variant: #616161;
      --surface-container: #F3F6F3;
      --outline: #E2E6E2;

      --text-primary: #212121;
      --text-secondary: #616161;

      /* Aliases usados por el CSS actual */
      --dark: var(--text-primary);
      --text: var(--text-primary);
      --muted: var(--text-secondary);
      --light: var(--background);
      --white: var(--surface);
      --border: var(--outline);

      --shadow: 0 24px 70px rgba(33, 33, 33, 0.12);
      --shadow-soft: 0 14px 40px rgba(33, 33, 33, 0.08);
      --shadow-green: 0 16px 34px rgba(76, 175, 80, 0.28);
    }


/* =========================================================
   2. RESET / BASE
   ========================================================= */

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: Arial, sans-serif;
      background: var(--light);
      color: var(--text);
      line-height: 1.6;
      overflow-x: hidden;
    }

    a {
      text-decoration: none;
    }


/* =========================================================
   3. NAVBAR / BRAND
   ========================================================= */

    .navbar {
      position: fixed;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      width: min(1180px, 95%);
      z-index: 9999;
      border-radius: 22px;
      background: rgba(255,255,255,.88);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      box-shadow: var(--shadow-soft);
      border: 1px solid rgba(255,255,255,.55);
    }

.navbar-hidden{

transform:translateX(-50%) translateY(-140px);

opacity:0;

}



    .nav-content {
      padding: 14px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 18px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 14px;
      color: var(--primary-deep);
    }
  
    .brand-logo {
      width: 50px;
      height: 50px;
      object-fit: contain;
      border-radius: 16px;
      transition: .3s;
    }

    .brand-logo:hover {
      transform: rotate(-6deg) scale(1.08);
    }

.brand-text {
      font-size: 25px;
      font-weight: 900;
      letter-spacing: -1px;
      color: var(--primary-deep);
      line-height: 1;
    }
  
    .brand-subtitle {
      font-size: 10px;
      color: var(--text-secondary);
      margin-top: 4px;
      letter-spacing: .6px;
      text-transform: uppercase;
      font-weight: 700;
    }

    .nav-links {
      display: flex;
      gap: 22px;
      align-items: center;
      font-size: 14px;
      font-weight: 700;
    }

    .nav-links a {
      color: var(--text);
    }

    .nav-button {
      background: linear-gradient(135deg, var(--primary), var(--primary-dark));
      color: white !important;
      padding: 11px 18px;
      border-radius: 999px;
    }


/* =========================================================
   4. LANDING HERO
   ========================================================= */

    .hero {
      min-height: 100vh;
      padding-top: 120px;
      background:
        radial-gradient(circle at 18% 20%, rgba(76,175,80,0.16), transparent 28%),
        radial-gradient(circle at 80% 12%, rgba(255,152,0,0.14), transparent 28%),
        radial-gradient(circle at 70% 80%, rgba(33,150,243,0.12), transparent 28%),
        linear-gradient(120deg, rgba(247,249,247,0.97), rgba(247,249,247,0.84)),
        url("../assets/field-bg.jpg");
      background-size: auto, auto, auto, auto, cover;
      background-position: center;
      background-attachment: fixed;
    }

    .hero-content {
      max-width: 1180px;
      margin: auto;
      padding: 70px 24px;
      display: grid;
      grid-template-columns: 1.02fr 0.98fr;
      gap: 56px;
      align-items: center;
    }

    .badge {
      display: inline-flex;
      background: var(--primary-container);
      color: var(--primary-dark);
      border: 1px solid rgba(76, 175, 80, 0.22);
      padding: 9px 15px;
      border-radius: 999px;
      font-weight: 800;
      font-size: 14px;
      margin-bottom: 22px;
    }

    .hero h1 {
      font-size: clamp(44px, 6vw, 76px);
      line-height: 0.98;
      letter-spacing: -2px;
      color: var(--dark);
      margin-bottom: 24px;
    }

    .hero h1 span {
      background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--secondary));
      -webkit-background-clip: text;
      color: transparent;
    }

    .hero p {
      max-width: 630px;
      font-size: 20px;
      color: var(--text);
      margin-bottom: 30px;
    }


/* =========================================================
   5. BUTTONS / CTA
   ========================================================= */

    .cta-group {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
      align-items: center;
    }

    .primary-button {
      display: inline-block;
      padding: 17px 28px;
      border-radius: 18px;
      background: linear-gradient(135deg, var(--primary), var(--primary-dark));
      color: white;
      font-weight: 900;
      box-shadow: var(--shadow-green);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .primary-button:hover {
      transform: translateY(-3px);
      box-shadow: 0 22px 44px rgba(76,175,80,0.38);
    }

    .secondary-button {
      display: inline-block;
      padding: 16px 24px;
      border-radius: 18px;
      background: var(--surface);
      color: var(--primary-dark);
      border: 1px solid rgba(76, 175, 80, 0.22);
      font-weight: 900;
    }

    .hero-note {
      margin-top: 18px;
      font-size: 14px !important;
      color: var(--muted);
    }

    .hero-visual {
      position: relative;
      min-height: 580px;
    }

    .hero-card {
      position: absolute;
      inset: 0;
      background: var(--surface);
      border-radius: 38px;
      padding: 18px;
      box-shadow: var(--shadow);
      overflow: hidden;
      z-index: 1;
    }

    .hero-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 28px;
      display: block;
    }

    .main-phone {
      position: absolute;
      width: 46%;
      right: 18px;
      bottom: -24px;
      z-index: 4;
      filter: drop-shadow(0 30px 45px rgba(0,0,0,0.28));
      animation: floatPhone 5s ease-in-out infinite;
    }

    .main-phone img {
      width: 100%;
      display: block;
    }

    .floating-card {
      position: absolute;
      left: 36px;
      bottom: 36px;
      width: 310px;
      background: rgba(255,255,255,0.96);
      padding: 22px 24px;
      border-radius: 22px;
      box-shadow: var(--shadow);
      border-left: 6px solid var(--secondary);
      z-index: 5;
    }

    .floating-card strong {
      display: block;
      color: var(--dark);
      font-size: 18px;
      margin-bottom: 6px;
    }

    .floating-card p {
      margin: 0;
      font-size: 16px;
      color: var(--text);
    }

    .mini-bubble {
      position: absolute;
      z-index: 6;
      background: var(--surface);
      padding: 12px 15px;
      border-radius: 999px;
      box-shadow: 0 14px 34px rgba(0,0,0,0.12);
      font-weight: 800;
      color: var(--dark);
      animation: floatBubble 4s ease-in-out infinite;
    }

    .bubble-1 {
      top: 32px;
      right: -10px;
      border-left: 5px solid var(--primary);
    }

    .bubble-2 {
      top: 130px;
      left: -18px;
      border-left: 5px solid var(--tertiary);
      animation-delay: 0.7s;
    }

    .bubble-3 {
      right: 32px;
      bottom: 120px;
      border-left: 5px solid var(--secondary);
      animation-delay: 1.2s;
    }


/* =========================================================
   6. SECTIONS / COMMON LAYOUT
   ========================================================= */

    .section {
      max-width: 1180px;
      margin: auto;
      padding: 86px 24px;
    }

    .section-header {
      max-width: 760px;
      margin: 0 auto 48px;
      text-align: center;
    }

    .section-header h2 {
      font-size: clamp(34px, 4vw, 52px);
      line-height: 1.05;
      color: var(--dark);
      letter-spacing: -1px;
      margin-bottom: 16px;
    }

    .section-header p {
      color: var(--muted);
      font-size: 19px;
    }


/* =========================================================
   7. STATS
   ========================================================= */

    .stats {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
      margin-top: -44px;
      position: relative;
      z-index: 8;
    }

    .stat-card {
      background: rgba(255,255,255,0.94);
      border: 1px solid var(--border);
      border-radius: 26px;
      padding: 28px;
      text-align: center;
      box-shadow: var(--shadow-soft);
    }

    .stat-card strong {
      display: block;
      font-size: 36px;
      color: var(--primary-dark);
      line-height: 1;
      margin-bottom: 8px;
    }

    .stat-card span {
      color: var(--muted);
      font-weight: 700;
    }


/* =========================================================
   8. PROBLEM / QUOTE
   ========================================================= */

    .problem {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 42px;
      align-items: center;
    }

    .problem-card {
      background: var(--surface);
      border-radius: 34px;
      padding: 42px;
      box-shadow: var(--shadow);
      border: 1px solid var(--border);
    }

    .problem-card h2 {
      font-size: 44px;
      line-height: 1.1;
      color: var(--dark);
      margin-bottom: 20px;
    }

    .problem-card p {
      font-size: 19px;
      color: var(--text);
    }

    .quote-card {
      border-radius: 34px;
      min-height: 420px;
      padding: 38px;
      color: white;
      background:
        linear-gradient(135deg, rgba(16,21,16,0.88), rgba(27,94,32,0.70)),
        url("../assets/hero-agroadmin.png");
      background-size: cover;
      background-position: center;
      display: flex;
      align-items: flex-end;
      box-shadow: var(--shadow);
    }

    .quote-card h3 {
      font-size: 34px;
      line-height: 1.15;
    }


/* =========================================================
   9. MOCKUPS / PHONES
   ========================================================= */

    .mockups-zone {
      position: relative;
      min-height: 680px;
      background:
        radial-gradient(circle at 50% 40%, rgba(76,175,80,0.20), transparent 34%),
        radial-gradient(circle at 25% 70%, rgba(255,152,0,0.16), transparent 28%),
        radial-gradient(circle at 80% 30%, rgba(33,150,243,0.14), transparent 28%);
      border-radius: 42px;
      overflow: hidden;
    }

    .phone-float {
      position: absolute;
      width: 260px;
      filter: drop-shadow(0 26px 34px rgba(0,0,0,0.20));
      transition: transform 0.3s ease;
    }

    .phone-float:hover {
      transform: translateY(-10px) scale(1.03);
    }

    .phone-home {
      left: 50%;
      top: 70px;
      transform: translateX(-50%);
      z-index: 4;
    }

    .phone-gastos {
      left: 120px;
      top: 210px;
      z-index: 3;
    }

    .phone-ventas {
      right: 120px;
      top: 230px;
      z-index: 3;
    }


/* =========================================================
   10. FEATURES
   ========================================================= */

    .features {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
      margin-top: 32px;
    }

    .feature-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 24px;
      padding: 26px;
      box-shadow: var(--shadow-soft);
    }

    .feature-icon {
      width: 48px;
      height: 48px;
      border-radius: 16px;
      color: white;
      display: grid;
      place-items: center;
      font-weight: 900;
      margin-bottom: 16px;
    }

    .green { background: var(--primary); }
    .orange { background: var(--secondary); }
    .blue { background: var(--tertiary); }
    .dark-bg { background: var(--dark); }

    .feature-card h3 {
      color: var(--dark);
      margin-bottom: 8px;
      font-size: 19px;
    }


/* =========================================================
   11. TIMELINE
   ========================================================= */

    .timeline {
      background: var(--surface);
      border-radius: 38px;
      padding: 44px;
      box-shadow: var(--shadow);
      border: 1px solid var(--border);
    }

    .timeline-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 18px;
      position: relative;
    }

    .timeline-grid::before {
      content: "";
      position: absolute;
      top: 39px;
      left: 9%;
      right: 9%;
      height: 4px;
      background: linear-gradient(90deg, var(--primary), var(--secondary), var(--tertiary));
      border-radius: 999px;
      z-index: 0;
    }

    .timeline-step {
      position: relative;
      z-index: 1;
      text-align: center;
      padding: 8px;
      cursor: pointer;
    }

    .step-icon {
      width: 82px;
      height: 82px;
      margin: 0 auto 18px;
      border-radius: 26px;
      background: var(--surface);
      border: 3px solid rgba(76, 175, 80, 0.24);
      display: grid;
      place-items: center;
      font-size: 30px;
      box-shadow: 0 14px 28px rgba(16,36,23,0.10);
      transition: transform 0.25s ease, border-color 0.25s ease;
    }

    .timeline-step:hover .step-icon {
      transform: translateY(-8px);
      border-color: var(--secondary);
    }

    .timeline-step h3 {
      color: var(--dark);
      font-size: 17px;
      margin-bottom: 8px;
    }

    .timeline-step p {
      color: var(--muted);
      font-size: 14px;
    }


/* =========================================================
   12. FIELD SECTION
   ========================================================= */

    .field-section {
      background:
        linear-gradient(135deg, rgba(16,21,16,0.92), rgba(27,94,32,0.82)),
        url("../assets/field-bg.jpg");
      background-size: cover;
      background-position: center;
      background-attachment: fixed;
      color: white;
      margin-top: 50px;
    }

    .field-content {
      max-width: 1180px;
      margin: auto;
      padding: 90px 24px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 42px;
      align-items: center;
    }

    .field-content h2 {
      font-size: 48px;
      line-height: 1.05;
      margin-bottom: 18px;
    }

    .field-content p {
      color: #E5E7EB;
      font-size: 19px;
    }

    .field-list {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
    }

    .field-item {
      background: rgba(255,255,255,0.12);
      border: 1px solid rgba(255,255,255,0.18);
      border-radius: 24px;
      padding: 24px;
      backdrop-filter: blur(12px);
    }

    .field-item strong {
      color: white;
      display: block;
      margin-bottom: 6px;
      font-size: 19px;
    }


/* =========================================================
   13. TESTIMONIALS
   ========================================================= */

    .testimonials {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
    }

    .testimonial-card {
      background: var(--surface);
      border-radius: 28px;
      padding: 28px;
      border: 1px solid var(--border);
      box-shadow: var(--shadow-soft);
    }

    .testimonial-card p {
      font-size: 17px;
      margin-bottom: 22px;
      color: var(--text);
    }

    .person {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .avatar {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      display: grid;
      place-items: center;
      color: white;
      font-weight: 900;
    }

    .person strong {
      display: block;
      color: var(--dark);
    }

    .person span {
      color: var(--muted);
      font-size: 14px;
    }


/* =========================================================
   14. DOWNLOAD / INSTALLATION
   ========================================================= */

    .download-box {
      position: relative;
      overflow: hidden;
      background:
        radial-gradient(circle at 20% 20%, rgba(255,152,0,0.18), transparent 26%),
        radial-gradient(circle at 80% 50%, rgba(33,150,243,0.18), transparent 28%),
        linear-gradient(135deg, #101510, var(--primary-deep));
      color: white;
      border-radius: 42px;
      padding: 58px;
      display: grid;
      grid-template-columns: 1fr 0.85fr;
      gap: 42px;
      align-items: center;
      box-shadow: var(--shadow);
    }

    .download-box h2 {
      font-size: 52px;
      line-height: 1.05;
      margin-bottom: 18px;
    }

    .download-box p {
      color: #E5E7EB;
      font-size: 19px;
      margin-bottom: 26px;
    }

    .install-steps {
      background: rgba(255,255,255,0.96);
      border-radius: 30px;
      padding: 30px;
      color: var(--text);
      position: relative;
      z-index: 2;
    }

    .install-steps h3 {
      color: var(--dark);
      margin-bottom: 16px;
      font-size: 24px;
    }

    .install-steps ol {
      padding-left: 20px;
    }

    .install-steps li {
      margin-bottom: 10px;
    }

    .warning {

background: #FFF8E8;

border: 1px solid rgba(249,168,37,.35);

border-left: 6px solid var(--secondary);

color: var(--text);

padding: 20px;

border-radius: 18px;

margin-top: 22px;

box-shadow:
    0 8px 20px rgba(0,0,0,.06);

}

.warning strong{

color: var(--warning);

display:block;

margin-bottom:6px;

font-size:16px;

}


/* =========================================================
   15. FOOTER
   ========================================================= */

    footer {
      padding: 38px 20px;
      background: #101510;
      color: #CBD5E1;
      text-align: center;
      font-size: 14px;
    }

    footer a {
      color: #A5D6A7;
      margin: 0 6px;
    }


/* =========================================================
   16. ANIMATIONS / REVEAL
   ========================================================= */

    .reveal {
      opacity: 0;
      transform: translateY(38px);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal.active {
      opacity: 1;
      transform: translateY(0);
    }

/* =========================================================
   17. KEYFRAMES
   ========================================================= */

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

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


/* =========================================================
   18. RESPONSIVE - TABLET
   ========================================================= */

    @media (max-width: 980px) {
      .hero-content,
      .problem,
      .field-content,
      .download-box {
        grid-template-columns: 1fr;
      }

      .hero {
        background-attachment: scroll;
      }

      .hero-visual {
        min-height: auto;
      }

      .hero-card {
        position: relative;
        height: 480px;
      }

      .main-phone {
        position: relative;
        width: 55%;
        margin: -120px auto 0;
        right: auto;
        bottom: auto;
        display: block;
      }

      .floating-card {
        position: relative;
        left: auto;
        bottom: auto;
        margin: 20px auto 0;
        width: 100%;
      }

      .mini-bubble {
        display: none;
      }

      .stats,
      .features,
      .testimonials {
        grid-template-columns: 1fr 1fr;
      }

      .mockups-zone {
        min-height: auto;
        padding: 40px 20px;
        display: grid;
        gap: 20px;
      }

      .phone-float {
        position: relative;
        width: 70%;
        max-width: 300px;
        left: auto;
        right: auto;
        top: auto;
        margin: auto;
        transform: none;
      }

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

      .timeline-grid::before {
        display: none;
      }
    }


/* =========================================================
   19. RESPONSIVE - MOBILE
   ========================================================= */

    @media (max-width: 620px) {
      .nav-links a:not(.nav-button) {
        display: none;
      }

      .navbar {
        top: 12px;
        width: 94%;
      }

      .hero-content {
        padding: 48px 20px;
      }

      .hero h1 {
        font-size: 44px;
      }

      .hero-card {
        height: 360px;
      }

      .main-phone {
        width: 68%;
        margin-top: -80px;
      }

      .stats,
      .features,
      .testimonials,
      .field-list {
        grid-template-columns: 1fr;
      }

      .section {
        padding: 66px 20px;
      }

      .problem-card,
      .timeline,
      .download-box {
        padding: 28px 22px;
      }

      .problem-card h2,
      .field-content h2,
      .download-box h2 {
        font-size: 34px;
      }

      .download-box {
        border-radius: 28px;
      }
    }
  

/* =========================================================
   20. LEGAL PAGES
   Use in terminos.html and privacidad.html:
   <body class="legal-page">
   ========================================================= */

body.legal-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(76,175,80,0.12), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(255,152,0,0.10), transparent 28%),
    radial-gradient(circle at 75% 82%, rgba(33,150,243,0.09), transparent 30%),
    var(--background);
  line-height: 1.7;
}

.legal-page .hero {
  min-height: auto;
  padding: 150px 24px 58px;
  background: transparent;
}

.legal-page .hero-content {
  max-width: 1180px;
  margin: auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 32px;
  align-items: end;
}

.legal-page h1 {
  color: var(--dark);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -1.8px;
  margin-bottom: 16px;
}

.legal-page .hero p {
  font-size: 19px;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 0;
}

.meta-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--outline);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.meta-card strong {
  display: block;
  color: var(--dark);
  font-size: 16px;
  margin-bottom: 6px;
}

.meta-card span {
  color: var(--muted);
  font-size: 15px;
}

.layout {
  max-width: 1180px;
  margin: 0 auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 28px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 120px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--outline);
  border-radius: 26px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
  max-height: calc(100vh - 145px);
  overflow: auto;
}

.toc-title {
  color: var(--dark);
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 14px;
}

.toc a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 0;
  border-bottom: 1px solid rgba(226,230,226,0.9);
  transition: color .2s ease, transform .2s ease;
}

.toc a:hover {
  color: var(--primary-deep);
  transform: translateX(4px);
}

.document {
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--outline);
  border-radius: 34px;
  padding: clamp(28px, 5vw, 58px);
  box-shadow: var(--shadow);
}

.document h2 {
  scroll-margin-top: 130px;
  color: var(--dark);
  font-size: 26px;
  line-height: 1.25;
  margin-top: 34px;
  margin-bottom: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(226,230,226,0.95);
}

.document h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.document p {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 12px;
}

.spacer {
  height: 4px;
}

.back-box {
  margin-top: 36px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(76,175,80,0.10),
    rgba(33,150,243,0.08)
  );
  border: 1px solid rgba(76,175,80,0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.back-box strong {
  color: var(--dark);
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 920px) {
  .legal-page .hero-content,
  .layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: relative;
    top: auto;
    max-height: none;
  }
}

@media (max-width: 620px) {
  .legal-page .hero {
    padding-top: 125px;
  }

  .document {
    border-radius: 24px;
  }
}

/* =========================================================
   21. ACCESS PILOT PAGE
   Use in acceso-piloto.html: <body class="access-page">
   ========================================================= */

   body.access-page {
    min-height: 100vh;
    background:
      radial-gradient(circle at 18% 20%, rgba(76,175,80,0.18), transparent 28%),
      radial-gradient(circle at 80% 12%, rgba(255,152,0,0.16), transparent 28%),
      radial-gradient(circle at 70% 80%, rgba(33,150,243,0.14), transparent 28%),
      linear-gradient(120deg, rgba(247,249,247,0.96), rgba(247,249,247,0.82)),
      url("../assets/field-bg.jpg");
    background-size: auto, auto, auto, auto, cover;
    background-position: center;
    background-attachment: fixed;
  }
  
  .pilot-access {
    width: min(1180px, 100%);
    min-height: 100vh;
    margin: auto;
    padding: 42px 24px;
    display: grid;
    grid-template-columns: 1fr 0.78fr;
    gap: 28px;
    align-items: center;
  }
  
  .pilot-access-card,
  .pilot-access-side {
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(226,230,226,0.9);
    border-radius: 38px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  
  .pilot-access-card { padding: clamp(30px, 5vw, 56px); }
  
  .pilot-access-side {
    padding: 34px;
    position: relative;
    overflow: hidden;
  }
  
  .pilot-access-side::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -110px;
    top: -110px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(76,175,80,0.18), transparent 68%);
  }
  
  .pilot-access-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 34px;
    text-decoration: none;
  }
  
  .pilot-access-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
    transition: .3s ease;
  }
  
  .pilot-access-logo:hover { transform: rotate(-5deg) scale(1.05); }
  
  .pilot-access-brand-text {
    color: var(--primary-deep);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
  }
  
  .pilot-access-brand-subtitle {
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
  }
  
  .pilot-access-card h1 {
    color: var(--dark);
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.02;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
  }
  
  .pilot-access-description {
    color: var(--muted);
    font-size: 19px;
    max-width: 620px;
    margin-bottom: 26px;
  }
  
  .pilot-token-card {
    background: linear-gradient(135deg, rgba(76,175,80,0.10), rgba(33,150,243,0.08));
    border: 1px solid rgba(76,175,80,0.18);
    border-radius: 24px;
    padding: 20px;
    margin: 26px 0;
    word-break: break-all;
  }
  
  .pilot-token-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-bottom: 8px;
  }
  
  .pilot-token-card strong {
    color: var(--primary-deep);
    font-size: 15px;
    line-height: 1.5;
  }
  
  .pilot-access-button {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
  }
  
  .pilot-access-button:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
  }
  
  .pilot-access-message {
    display: none;
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 18px;
    font-weight: 800;
  }
  
  .pilot-access-message.success {
    display: block;
    background: rgba(76,175,80,0.12);
    color: var(--primary-deep);
    border: 1px solid rgba(76,175,80,0.25);
  }
  
  .pilot-access-message.error {
    display: block;
    background: #FFF8E8;
    color: var(--error);
    border: 1px solid rgba(198,40,40,0.18);
  }
  
  .pilot-access-note {
    color: var(--muted);
    font-size: 14px;
    margin-top: 18px;
  }
  
  .pilot-side-header,
  .pilot-access-steps,
  .pilot-access-warning {
    position: relative;
    z-index: 2;
  }
  
  .pilot-side-header { margin-bottom: 24px; }
  
  .pilot-side-header span {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--primary-container);
    margin-bottom: 18px;
    font-size: 26px;
  }
  
  .pilot-side-header h2 {
    color: var(--dark);
    font-size: 34px;
    line-height: 1.06;
    letter-spacing: -1px;
    margin-bottom: 12px;
  }
  
  .pilot-side-header p {
    color: var(--muted);
    font-size: 17px;
  }
  
  .pilot-access-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: start;
    padding: 18px 0;
    border-bottom: 1px solid var(--outline);
  }
  
  .pilot-access-step strong {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: var(--shadow-green);
  }
  
  .pilot-access-step h3 {
    color: var(--dark);
    font-size: 17px;
    margin-bottom: 4px;
  }
  
  .pilot-access-step p {
    color: var(--muted);
    font-size: 15px;
  }
  
  .pilot-access-warning {
    margin-top: 24px;
    padding: 20px;
    border-radius: 22px;
    background: #FFF8E8;
    border: 1px solid rgba(249,168,37,.35);
    border-left: 6px solid var(--secondary);
  }
  
  .pilot-access-warning strong {
    color: var(--warning);
    display: block;
    margin-bottom: 6px;
  }
  
  .pilot-access-warning p {
    color: var(--text);
    font-size: 15px;
  }
  
  @media (max-width: 900px) {
    .pilot-access {
      grid-template-columns: 1fr;
      padding: 28px 18px;
    }
  
    .pilot-access-side { order: 2; }
  }
  
  @media (max-width: 560px) {
    body.access-page { background-attachment: scroll; }
  
    .pilot-access-card,
    .pilot-access-side { border-radius: 28px; }
  
    .pilot-access-brand-text { font-size: 24px; }
  
    .pilot-access-logo {
      width: 52px;
      height: 52px;
    }
  
    .pilot-access-card h1 { font-size: 38px; }
  }

  /* =========================================================
   DELETE ACCOUNT PAGE - HELP CENTER STYLE
   ========================================================= */

body.delete-account-page {
  background:
    radial-gradient(circle at 10% 10%, rgba(76,175,80,0.10), transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(255,152,0,0.08), transparent 28%),
    var(--background);
}

.account-delete-main {
  padding-top: 130px;
}

.account-delete-hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 64px 24px 34px;
  text-align: center;
}

.account-delete-hero h1 {
  color: var(--dark);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -1.8px;
  margin-bottom: 18px;
}

.account-delete-hero p {
  color: var(--muted);
  font-size: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.account-delete-container {
  max-width: 980px;
  margin: 0 auto 90px;
  padding: 0 24px;
}

.account-delete-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--outline);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
}

.main-card {
  text-align: center;
  margin-bottom: 22px;
  padding: 38px;
}

.main-card h2,
.account-delete-card h3 {
  color: var(--dark);
  margin-bottom: 12px;
}

.main-card p,
.account-delete-card p,
.account-delete-card li {
  color: var(--text);
  font-size: 17px;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.account-delete-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.card-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--primary-deep);
  background: var(--primary-container);
  border: 1px solid rgba(76,175,80,0.18);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.account-delete-card ul {
  padding-left: 20px;
}

.account-delete-card li {
  margin-bottom: 10px;
}

.accent-card {
  background:
    linear-gradient(135deg, rgba(76,175,80,0.10), rgba(33,150,243,0.08)),
    white;
}

.accent-card strong {
  color: var(--primary-deep);
}

@media (max-width: 720px) {
  .account-delete-main {
    padding-top: 100px;
  }

  .account-delete-grid {
    grid-template-columns: 1fr;
  }

  .main-card {
    padding: 28px;
  }

  .contact-actions .primary-button,
  .contact-actions .secondary-button {
    width: 100%;
    text-align: center;
  }
}

/* =========================================================
   23. GOOGLE PLAY / ANDROID COMMUNICATION
   ========================================================= */

   .google-play-preview-card .playstore-info{

    max-width:100%;

    margin:0;

    border:none;

    border-radius:0;

    box-shadow:none;

    background:transparent;

    padding:20px 22px;

    border-bottom:1px solid var(--outline);

}

.playstore-mark{

  display:inline-flex;
  align-items:center;
  gap:10px;

  width:max-content;

  padding:11px 14px;

  background:#101510;
  color:white;

  border-radius:14px;

  flex-shrink:0;

}

.playstore-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 18px;
}

.playstore-mark div { display: flex; flex-direction: column; }
.playstore-mark span { font-size: 10px; line-height: 1.1; }
.playstore-mark strong { font-size: 18px; line-height: 1.1; }

.playstore-copy strong {
  display: block;
  margin-Top: 5px;
  color: var(--primary-deep);
  font-size: 17px;
}

.playstore-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.access-process { padding-top: 38px; }

.access-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.access-flow-step {
  min-height: 205px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.access-flow-step span {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 15px;
  font-weight: 900;
  box-shadow: var(--shadow-green);
}

.access-flow-step h3 {
  margin-bottom: 8px;
  color: var(--dark);
  font-size: 18px;
  line-height: 1.2;
}

.access-flow-step p { color: var(--muted); font-size: 14px; }

.device-badges {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.device-badges div {
  padding: 10px 16px;
  color: white;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 980px) { .access-flow { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 620px) {
  .playstore-info { grid-template-columns: 1fr; }
  .playstore-mark { width: fit-content; }
  .access-flow { grid-template-columns: 1fr; }
  .access-flow-step { min-height: auto; }
}

/*WhatsApp buttom*/
.whatsapp-button{

  display:inline-flex;

  align-items:center;

  justify-content:center;

  gap:12px;

}

.button-icon{

  width:25px;

  height:25px;

  object-fit:contain;

  flex-shrink:0;

}


/* =========================================================
   24. GOOGLE PLAY SCREENSHOT IN HERO
   Asset: assets/agroadmin-google-play.png (1600 x 878)
   ========================================================= */

.hero-visual {
  min-height: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: center;
}

.google-play-preview-card {
  width: 100%;
  overflow: hidden;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--outline);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.google-play-preview-header {
  padding: 20px 22px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--outline);
}

.google-play-preview-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.google-play-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-deep);
}

.google-play-preview-badge span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  font-weight: 900;
  box-shadow: var(--shadow-green);
}

.google-play-preview-badge strong {
  font-size: 16px;
  line-height: 1.2;
}

.google-play-screenshot-wrap {
  padding: 14px;
  background: var(--surface-container);
}

.google-play-screenshot {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 878;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
  border: 1px solid var(--outline);
}

.google-play-visibility-note {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 20px 22px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(76,175,80,0.20);
  border-left: 5px solid var(--primary);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.google-play-visibility-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--primary-deep);
  background: var(--primary-container);
  border: 1px solid rgba(76,175,80,0.20);
  border-radius: 16px;
  font-size: 22px;
  font-weight: 900;
}

.google-play-visibility-note h3 {
  margin: 1px 0 6px;
  color: var(--dark);
  font-size: 18px;
  line-height: 1.2;
}

.google-play-visibility-note p {
  margin: 0;
  max-width: none;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .hero-visual {
    width: 100%;
  }

  .google-play-preview-card,
  .google-play-visibility-note {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 620px) {
  .google-play-preview-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .google-play-preview-header p {
    text-align: left;
  }

  .google-play-screenshot-wrap {
    padding: 8px;
  }

  .google-play-screenshot {
    border-radius: 14px;
  }

  .google-play-visibility-note {
    grid-template-columns: 40px 1fr;
    padding: 18px;
  }

  .google-play-visibility-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    font-size: 18px;
  }
}
