/* ---- Tokens ---- */
:root{
  --bg-void: #060F0A;
  --bg-panel: #0D1F16;
  --bg-panel-2: #112A1E;
  --mint: #4ADE9C;
  --teal: #1F8F6B;
  --paper: #EAF7F0;
  --muted: #8FB5A3;
  --border: rgba(143,181,163,0.18);
  --font: "Plus Jakarta Sans", sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg-void);
  color: var(--paper);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a{ color: inherit; text-decoration: none; }
h1, h2, h3{ font-weight: 800; margin: 0 0 .5em; line-height: 1.15; letter-spacing: -0.01em; }
p{ margin: 0 0 1em; color: var(--muted); }
ul{ margin: 0; padding: 0; list-style: none; }
.container{ max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ---- Buttons & links ---- */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 10px; font-size: 15px; font-weight: 700;
  font-family: var(--font); border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, border-color .15s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: linear-gradient(90deg, var(--mint), var(--teal)); color: #04140C; }
.btn-primary:hover{ opacity: .92; }
.btn-outline{ border-color: rgba(74,222,156,0.5); color: var(--paper); background: transparent; }
.btn-outline:hover{ border-color: var(--mint); }
.btn-outline-light{ border: 1px solid rgba(234,247,240,0.4); color: var(--paper); background: rgba(255,255,255,0.03); }
.btn-outline-light:hover{ border-color: var(--paper); }
.btn-lg{ padding: 16px 30px; font-size: 16px; }
.btn-block{ width: 100%; }
.link-plain{ font-size: 14px; color: var(--paper); font-weight: 500; }
.link-underline{ font-size: 15px; color: var(--paper); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ---- Header ---- */
.site-header{ position: sticky; top: 0; z-index: 20; background: rgba(19, 27, 23, 0.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner{ display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.logo{ font-size: 17px; font-weight: 800; display: inline-flex; align-items: center; }
.logo-img{ height: 27px; width: auto; display: block; }
.logo span{ color: var(--mint); margin-left: 4px; font-weight: 700; }
.main-nav{ display: flex; gap: 30px; }
.main-nav a{ font-size: 14px; font-weight: 500; color: var(--muted); }
.main-nav a:hover{ color: var(--paper); }
.header-actions{ display: flex; align-items: center; gap: 20px; }
.nav-toggle{ display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span{ width: 20px; height: 2px; background: var(--paper); display: block; }

/* ---- Hero ---- */
.hero{ position: relative; padding: 100px 0 70px; overflow: hidden; text-align: center; }
.hero-glow{
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31,143,107,0.35) 0%, rgba(31,143,107,0.08) 45%, transparent 70%);
  pointer-events: none;
}
.hero-inner{ display: flex; flex-direction: column; align-items: center; }
.hero-badge{
  width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(74,222,156,0.08); border: 1px solid rgba(74,222,156,0.3);
  box-shadow: 0 0 40px rgba(74,222,156,0.25); margin-bottom: 24px;
}
.pill{
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--mint); background: rgba(74,222,156,0.1); border: 1px solid rgba(74,222,156,0.3);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 26px;
}
.hero h1{ font-size: 46px; color: var(--paper); max-width: 16ch; margin: 0 auto 22px; }
.grad-text{ background: linear-gradient(90deg, var(--mint), #9be8ce); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub{ font-size: 17px; max-width: 46ch; margin: 0 auto 30px; }
.hero-cta{ display: flex; align-items: center; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.equipo-row{ display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); opacity: .8; }

/* ---- Sections generic ---- */
.section{ padding: 90px 0; border-top: 1px solid var(--border); }
.eyebrow{ font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); margin-bottom: 12px; }
.section h2{ font-size: 30px; color: var(--paper); max-width: 26ch; margin-bottom: 48px; }

/* ---- How it works (interactive showcase) ---- */
.how-showcase{ display: grid; grid-template-columns: minmax(300px, 360px) 1fr; gap: 48px; align-items: center; }
.how-list{ display: flex; flex-direction: column; }
.how-list .eyebrow{ margin-bottom: 10px; }
.how-list h2{ font-size: 26px; margin-bottom: 14px; }
.how-list .how-lead{ font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.how-item{ position: relative; padding: 13px 0 15px; border-bottom: 1px solid var(--border); cursor: pointer; }
.how-item:last-child{ border-bottom: none; }
.how-item h3{ font-size: 15px; color: var(--muted); margin: 0; transition: color .25s ease; }
.how-item p{ font-size: 13px; color: var(--muted); margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .35s ease, margin .35s ease; }
.how-item.active h3{ color: var(--paper); }
.how-item.active p{ max-height: 80px; opacity: 1; margin-top: 6px; }
.how-item-track{ position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.how-item.active .how-item-track{ background: var(--border); }
.how-item-bar{ display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--mint), var(--teal)); }
.how-item.active .how-item-bar.run{ animation: how-progress 5s linear forwards; }
@keyframes how-progress{ from{ width: 0%; } to{ width: 100%; } }

.how-visual{ position: relative; border-radius: 24px; min-height: 560px; background: linear-gradient(135deg, rgba(74,222,156,0.10), rgba(31,143,107,0.06)); border: 1px solid var(--border); overflow: hidden; }
.how-frame{ position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; transform: scale(.98); transition: opacity .5s ease, transform .5s ease; padding: 10px; pointer-events: none; }
.how-frame.active{ opacity: 1; transform: scale(1); pointer-events: auto; }
.how-frame-bar{ display: flex; gap: 6px; padding: 2px 4px 8px; }
.how-frame-bar span{ width: 9px; height: 9px; border-radius: 50%; background: rgba(234,247,240,0.18); }
.how-frame-body{ flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 16px; }
.how-frame-body svg{ width: 96px; height: 96px; }
.how-frame-label{ font-size: 16px; font-weight: 700; color: var(--paper); }

/* Cuando un paso trae "image" en vez de ícono */
.how-frame-body.has-image{ position: relative; padding: 0; overflow: hidden; }
.how-frame-img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.how-frame-body.has-image .how-frame-label{ position: absolute; left: 16px; bottom: 16px; background: rgba(6,16,11,0.65); padding: 6px 14px; border-radius: 999px; font-size: 13px; }

@media (max-width: 900px){
  .how-showcase{ grid-template-columns: 1fr; }
  .how-visual{ min-height: 320px; order: -1; }
}

/* ---- Features ---- */
.features-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card{ background: var(--bg-panel); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.feature-card h3{ font-size: 16px; color: var(--paper); margin-bottom: 10px; }
.feature-card p{ font-size: 14px; margin: 0; }

/* ---- Testimonials ---- */
.testimonials-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.testimonial-card{ background: var(--bg-panel); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.quote{ font-size: 15px; color: var(--paper); margin-bottom: 20px; }
.testi-person{ display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--paper); }
.avatar{ width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--mint), var(--teal)); color: #04140C; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }

/* ---- Pricing ---- */
.pricing-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.price-card{ background: var(--bg-panel); border: 1px solid var(--border); border-radius: 14px; padding: 26px 22px; display: flex; flex-direction: column; position: relative; }
.price-card.featured{ border-color: rgba(74,222,156,0.5); background: var(--bg-panel-2); box-shadow: 0 0 40px rgba(74,222,156,0.08); }
.price-badge{ position: absolute; top: -13px; left: 22px; background: linear-gradient(90deg, var(--mint), var(--teal)); color: #04140C; font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.price-label{ font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.price{ font-size: 28px; font-weight: 800; color: var(--paper); margin-bottom: 20px; }
.price span{ font-size: 13px; color: var(--muted); font-weight: 500; }
.price-card ul{ margin-bottom: 24px; flex: 1; }
.price-card li{ font-size: 13px; color: var(--muted); padding: 9px 0; border-bottom: 1px solid var(--border); }
.price-card li::before{ content: "✓ "; color: var(--mint); font-weight: 700; }
.pricing-note{ text-align: center; font-size: 13px; color: var(--muted); margin: 30px 0 0; }

/* ---- Final CTA ---- */
.final-cta{ position: relative; text-align: center; padding: 110px 0; overflow: hidden; background-image: url(https://riegoman.cl/RiegoManIrrigationPro/images/background_body.webp); background-position: center; background-position-y:center ;}
.cta-glow{
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(31,143,107,0.4) 0%, rgba(13,31,22,0.6) 55%, var(--bg-void) 80%);
  pointer-events: none;
}
.final-cta h2{ font-size: 32px; max-width: 18ch; margin: 0 auto 30px; color: var(--paper); }

/* ---- Footer ---- */
.site-footer{ padding: 50px 0 30px; background: var(--bg-void); text-align: center; }
.footer-logo-img{ height: 32px; width: auto; margin-bottom: 20px; }
.footer-links{ display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.footer-links a{ font-size: 13px; color: var(--muted); }
.footer-links a:hover{ color: var(--paper); }
.footer-copy{ font-size: 12px; color: var(--muted); opacity: .7; margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 900px){
  .steps-grid{ grid-template-columns: 1fr 1fr; }
  .features-grid, .pricing-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  .main-nav{ position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-void); flex-direction: column; padding: 16px 24px; border-bottom: 1px solid var(--border); display: none; gap: 16px; }
  .main-nav.open{ display: flex; }
  .nav-toggle{ display: flex; }
  .header-actions .link-plain{ display: none; }
  .hero h1{ font-size: 32px; }
  .steps-grid, .features-grid, .testimonials-grid, .pricing-grid{ grid-template-columns: 1fr; }
  .section h2{ font-size: 24px; }
}

/* ---- Auth pages (login / signup) ---- */
.auth-body{ min-height: 100vh; display: flex; flex-direction: column; position: relative; overflow-x: hidden; }
.auth-glow{
  position: absolute; top: -250px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31,143,107,0.3) 0%, rgba(31,143,107,0.06) 45%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.auth-top{ position: relative; z-index: 1; padding: 26px 32px; }
.auth-wrap{ position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px 24px 60px; }
.auth-card{
  width: 100%; max-width: 420px; background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px 32px; text-align: center;
}
.auth-title{ font-size: 26px; color: var(--paper); margin-bottom: 8px; }
.auth-sub{ font-size: 14px; margin-bottom: 28px; }
.auth-form{ text-align: left; }
.form-group{ margin-bottom: 16px; }
.form-group label{ display: block; font-size: 13px; font-weight: 600; color: var(--paper); margin-bottom: 6px; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"]{
  width: 100%; padding: 11px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-void); color: var(--paper); font-family: var(--font); font-size: 14px;
}
.form-group input:focus{ outline: none; border-color: var(--mint); }
.checkbox-row{ display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 20px; cursor: pointer; }
.checkbox-row input{ width: 16px; height: 16px; accent-color: var(--mint); }
.auth-row{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.auth-row .checkbox-row{ margin-bottom: 0; }
.auth-row .link-underline{ font-size: 13px; }
.auth-switch{ margin: 24px 0 0; font-size: 14px; }
.form-error{ background: rgba(226,75,74,0.1); border: 1px solid rgba(226,75,74,0.4); color: #F0A0A0; font-size: 13px; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }

/* ============================================================
   RM IrrigationPro — Solapas del showcase "Cómo funciona"
   Agregar este bloque a css/style.css
   ============================================================ */

   .how-tabs {
    display: flex;
    gap: 10px;
    margin: 28px 0 36px;
    flex-wrap: wrap;
  }
  
  .how-tab {
    padding: 12px 22px;
    border-radius: 10px;
    border: 1px solid rgba(63, 217, 184, 0.3);
    background: transparent;
    color: #bfe4dc;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }
  
  .how-tab:hover {
    border-color: rgba(63, 217, 184, 0.6);
  }
  
  .how-tab.active {
    background: #3fd9b8;
    color: #06100b;
    border-color: #3fd9b8;
  }
  
  /* Pasos de texto (columna izquierda) */
  .how-step {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s ease;
  }
  
  .how-step:hover {
    opacity: 0.85;
  }
  
  .how-step.active {
    opacity: 1;
  }
  
  .how-step h3 {
    margin: 0;
    font-size: 1.05rem;
  }
  
  .how-step p {
    margin: 10px 0 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.7);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.35s ease, margin 0.35s ease;
  }
  
  .how-step.active p {
    max-height: 200px;
    opacity: 1;
    margin: 10px 0 10px;
  }
  
  .how-step-progress {
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
  }
  
  .how-step.active .how-step-progress {
    max-height: 3px;
  }
  
  .how-step-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: #3fd9b8;
  }
  
  @keyframes howProgress {
    from { width: 0%; }
    to { width: 100%; }
  }
  
  /* Tarjetas visuales (columna derecha) */
  .how-visual {
    position: relative;
    width: 100%;
    padding: 10px;
    aspect-ratio: 1284 / 1036;
  }
  
  .how-visual-card {
    position: absolute;
    inset: 10px;
    opacity: 0;
    transform: scale(0.985);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .how-visual-card.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }
  
  .how-visual-frame {
    position: relative;
    width: 100%;
    height: 100%;
  }
  
  .how-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
  }
  
  .how-visual-label {
    position: absolute;
    left: 22px;
    bottom: 22px;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(6, 16, 11, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #3fd9b8;
    font-size: 0.85rem;
    font-weight: 600;
  }
  