/* Hoja de estilos del formato editorial de RiegoMan.cl (copiada de riego.html).
   Si mueves el CSS del sitio a un archivo compartido, cambia el <link> en inc/plantilla.php y borra este archivo. */
   RIEGOMAN.CL — Diseño editorial (inspirado en RDA)
   Paleta: negro, blanco, verde-petróleo #007185
   ============================================================ */

:root{
  --rm-black: #000000;
  --rm-white: #ffffff;
  --rm-accent: #007185;
  --rm-gray: #6e6e6e;
  --rm-gray-light: #f2f2f2;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font);
  color: var(--rm-black);
  background: var(--rm-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a{ color: inherit; }

/* ---------- Navegación ---------- */
.rm-nav{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.rm-nav-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rm-logo{
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--rm-black);
  display: flex;
  align-items: center;
}
.rm-logo-img{
  height: 32px;
  width: auto;
  display: block;
}
.rm-nav-links{ display: flex; gap: 20px; }
.rm-nav-links a{
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.rm-nav-links a:hover{ color: var(--rm-accent); }
.rm-nav-cta{
  background: var(--rm-black);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.rm-nav-cta:hover{ background: var(--rm-accent); }

.rm-nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 12px;
}
.rm-nav-toggle span{
  width: 24px;
  height: 2px;
  background: var(--rm-black);
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.rm-nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.rm-nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.rm-nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px){
  .rm-nav-toggle{ display: flex; }
  .rm-nav-links{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px 24px;
    border-bottom: 1px solid #ececec;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  }
  .rm-nav-links.is-open{ display: flex; }
  .rm-nav-links a{
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
  }
  .rm-nav-links a:last-child{ border-bottom: none; }
}

/* ---------- Hero ---------- */
.rm-hero{
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 24px 60px;
}
.rm-eyebrow{
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 700;
  color: var(--rm-accent);
  margin: 0 0 20px;
}
.rm-hero h1{
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.rm-accent{ color: var(--rm-accent); }
.rm-hero-sub{
  font-size: 24px;
  color: var(--rm-gray);
  max-width: 640px;
  margin: 0 0 36px;
}
.rm-hero-cta{ display: flex; gap: 14px; flex-wrap: wrap; }
.rm-btn{
  display: inline-block;
  padding: 16px 30px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.rm-btn-solid{ background: var(--rm-black); color: #fff; }
.rm-btn-solid:hover{ background: var(--rm-accent); }
.rm-btn-outline{ background: transparent; color: var(--rm-black); border: 2px solid var(--rm-black); }
.rm-btn-outline:hover{ border-color: var(--rm-accent); color: var(--rm-accent); }
.rm-btn-big{ font-size: 18px; padding: 20px 40px; }

/* ---------- Marquesina (logos/marcas de socios) ---------- */
.rm-marquee{
  background: var(--rm-black);
  color: #fff;
  overflow: hidden;
  padding: 26px 0;
  white-space: nowrap;
  transform: rotate(-3deg);
  transform-origin: center;
  width: 110%;
  margin: 50px 0 50px -5%;
}
.rm-marquee-track{
  display: inline-flex;
  gap: 28px;
  animation: rm-scroll 22s linear infinite;
  font-weight: 800;
  font-size: clamp(22px, 3.2vw, 34px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.rm-marquee-track span{ color: var(--rm-accent); }
.rm-marquee-track span:nth-child(odd){ color: #fff; }
@keyframes rm-scroll{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}


/* ---------- Por qué elegirnos (con stats) ---------- */
.rm-stats{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.rm-stat{
  border-top: 3px solid var(--rm-black);
  padding-top: 16px;
}
.rm-stat strong{
  display: block;
  font-size: 32px;
  font-weight: 900;
}
.rm-stat span{
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rm-gray);
}

/* ---------- Encabezados de sección reutilizables ---------- */
.rm-section-title{
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  max-width: 900px;
  margin: 0 0 20px;
}
.rm-section-title-light{ color: #fff; }
.rm-section-intro, .rm-services-text{
  font-size: 24px;
  color: var(--rm-gray);
  max-width: 700px;
  margin: 0 0 40px;
  font-weight: 400;
  line-height: 1.5;
}
.rm-section-intro-light{ color: #cfcfcf; }

/* ---------- Efecto de revelado: barra negra que desliza sobre el texto ---------- */
.rm-reveal-wrap{
  position: relative;
  overflow: hidden;
  display: block;
}
.rm-reveal-bar{
  position: absolute;
  inset: 0;
  background: var(--rm-black);
  transform: translateX(0%);
  transition: transform 0.9s cubic-bezier(0.65,0,0.35,1);
  pointer-events: none;
}
.rm-reveal-wrap.is-revealed .rm-reveal-bar{
  transform: translateX(101%);
}
.rm-hero .rm-reveal-wrap:nth-of-type(1) .rm-reveal-bar{ transition-delay: 0s; }
.rm-hero .rm-reveal-wrap:nth-of-type(2) .rm-reveal-bar{ transition-delay: 0.15s; }
.rm-hero .rm-reveal-wrap:nth-of-type(3) .rm-reveal-bar{ transition-delay: 0.3s; }

/* ---------- Beneficios (¿Vale la pena?) ---------- */
.rm-benefits{
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 24px 60px;
}
.rm-benefits-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.rm-benefit{
  border-top: 3px solid var(--rm-black);
  padding-top: 18px;
}
.rm-benefit h3{ font-size: 18px; font-weight: 800; margin: 0 0 10px; }
.rm-benefit p{ font-size: 14px; color: var(--rm-gray); margin: 0; }

/* ---------- Galería de proyectos (carrusel continuo) ---------- */
.rm-gallery{
  padding: 20px 0 90px;
}
.rm-gallery .rm-section-label,
.rm-gallery .rm-section-title,
.rm-gallery .rm-section-intro{
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}
.rm-gallery-outer{
  overflow: hidden;
  margin-top: 30px;
}
.rm-gallery-track{
  display: flex;
  gap: 24px;
  width: max-content;
  animation: rm-scroll 60s linear infinite;
}
.rm-gallery-outer:hover .rm-gallery-track{
  animation-play-state: paused;
}
.rm-gallery-item{
  flex: 0 0 auto;
  width: clamp(260px, 34vw, 480px);
}
.rm-gallery-item img{
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  display: block;
  background: var(--rm-gray-light);
}
.rm-gallery-item p{
  margin: 14px 2px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--rm-gray);
}
@media (max-width: 600px){
  .rm-gallery-item{ width: 62vw; }
}
.rm-section-label{
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rm-accent);
  margin: 0 0 30px;
}
.rm-section-label-light{ color: var(--rm-white); }

/* ---------- Servicios detallados ---------- */
.rm-services{
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 90px;
}
.rm-services-detail{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.rm-service-card{
  background: var(--rm-gray-light);
  border-radius: 16px;
  padding: 28px;
}
.rm-service-sub{
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--rm-accent);
  margin: 0 0 8px;
}
.rm-service-card h3{ font-size: 22px; font-weight: 800; margin: 0 0 12px; }
.rm-service-card p{ font-size: 14px; color: var(--rm-gray); margin: 0 0 16px; }
.rm-service-card ul{ margin: 0; padding: 0 0 0 18px; }
.rm-service-card li{ font-size: 13px; margin-bottom: 6px; }

/* ---------- Proceso ---------- */
.rm-process{
  background: var(--rm-black);
  color: #fff;
  padding: 90px 24px;
}
.rm-process-list{ max-width: 900px; margin: 0 auto; }
.rm-process-step{
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.rm-process-step:last-child{ border-bottom: 1px solid rgba(255,255,255,0.15); }
.rm-process-num{
  font-size: 32px;
  font-weight: 900;
  color: var(--rm-accent);
  min-width: 60px;
}
.rm-process-step h3{ font-size: 19px; font-weight: 800; margin: 0 0 8px; }
.rm-process-step p{ font-size: 14px; color: #cfcfcf; margin: 0 0 8px; max-width: 640px; }
.rm-process-note{ font-size: 13px; color: var(--rm-accent) !important; font-weight: 600; }

/* ---------- Precios ---------- */
.rm-pricing{
  max-width: 1000px;
  margin: 0 auto;
  padding: 90px 24px;
}
.rm-pricing-table-wrap{ overflow-x: auto; margin-bottom: 20px; }
.rm-pricing-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}
.rm-pricing-table thead{ background: var(--rm-black); color: #fff; }
.rm-pricing-table th{ padding: 16px 20px; text-align: left; font-size: 14px; font-weight: 700; }
.rm-pricing-table td{ padding: 16px 20px; border-bottom: 1px solid #e5e5e5; font-size: 14px; }
.rm-pricing-table td:last-child{ font-weight: 800; color: var(--rm-accent); }
.rm-pricing-note{ font-size: 13px; color: var(--rm-gray); max-width: 700px; }

/* ---------- Por qué elegirnos ---------- */
.rm-why{
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 24px;
}
.rm-why-text{
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  max-width: 900px;
  line-height: 1.4;
  margin: 0 0 40px;
  color: var(--rm-gray);
}
.rm-why-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.rm-why-item{ border-top: 3px solid var(--rm-black); padding-top: 16px; }
.rm-why-item h3{ font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.rm-why-item p{ font-size: 14px; color: var(--rm-gray); margin: 0; }

/* ---------- FAQ ---------- */
.rm-faq{
  background: var(--rm-black);
  color: #fff;
  padding: 90px 24px;
}
.rm-faq-item{
  max-width: 1000px;
  margin: 0 auto 4px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 22px 0;
}
.rm-faq-item summary{
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 700;
}
.rm-faq-item summary::-webkit-details-marker{ display: none; }
.rm-faq-num{ color: var(--rm-accent); font-weight: 900; font-size: 14px; }
.rm-faq-q{ flex: 1; }
.rm-faq-plus{ font-size: 24px; color: var(--rm-accent); transition: transform 0.2s ease; }
.rm-faq-item[open] .rm-faq-plus{ transform: rotate(45deg); }
.rm-faq-item p{
  margin: 16px 0 0 40px;
  color: #cfcfcf;
  font-size: 15px;
  max-width: 800px;
}

/* ---------- Zonas cercanas ---------- */
.rm-nearby{
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--rm-gray);
}

/* ---------- CTA final ---------- */
.rm-cta-final{
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px 100px;
  text-align: center;
}
.rm-cta-final h2{
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 36px;
}

/* ---------- Formulario ---------- */
#rm-contact-wrap{
  background: var(--rm-black);
  color: #fff;
  padding: 90px 24px;
}
#rm-contact-form{
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rm-row{ display: flex; flex-direction: column; gap: 18px; }
.rm-field{ display: flex; flex-direction: column; gap: 8px; }
#rm-contact-form label{
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cfcfcf;
}
#rm-contact-form input,
#rm-contact-form select,
#rm-contact-form textarea{
  padding: 14px 16px;
  border: 2px solid #3a3a3a;
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font);
  background: #111;
  color: #fff;
}
#rm-contact-form input:focus,
#rm-contact-form select:focus,
#rm-contact-form textarea:focus{
  outline: none;
  border-color: var(--rm-accent);
}
.rm-honeypot{ position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
#rm-submit-btn{
  background: var(--rm-accent);
  color: #fff;
  border: none;
  padding: 18px 28px;
  border-radius: 10px;
  font-size: 28px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 8px;
}
#rm-submit-btn:hover{ background: #005a68; }
#rm-submit-btn:disabled{ opacity: 0.6; cursor: not-allowed; }
#rm-form-msg{ font-size: 14px; margin: 0; min-height: 20px; }
#rm-form-msg.rm-ok{ color: #4ade9c; font-weight: 700; }
#rm-form-msg.rm-error{ color: #ff8a8a; font-weight: 700; }

/* ---------- Footer ---------- */
.rm-footer{
  background: #003e48;
  color: #fff;
  padding-top: 60px;
  position: relative;
  overflow: hidden;
}
.rm-footer-isotipo-wrap{
  position: absolute;
  left: -60px;
  top: 78%;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}
.rm-footer-isotipo{
  width: 360px;
  height: 360px;
  opacity: 1;
  filter: brightness(0) invert(1);
  animation: rm-spin 3s linear infinite;
}
@keyframes rm-spin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}
.rm-footer-top{
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  padding: 0 24px 50px;
}
.rm-footer-col{ display: flex; flex-direction: column; gap: 10px; }
.rm-footer-heading{
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  margin: 0 0 6px;
}
.rm-footer-col a{
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
.rm-footer-col a:hover{ color: var(--rm-accent); }

/* Logo grande de imagen, pegado abajo, de lado a lado. Copyright inmediatamente arriba. */
.rm-footer-giant{
  padding-top: 30px;
  position: relative;
  z-index: 1;
}
.rm-footer-copyright{
  text-align: center;
  margin: 0 0 10px;
  padding: 0 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}
.rm-footer-logo-img{
  display: block;
  width: 100%;
  height: auto;
  padding: 20px;
  box-sizing: border-box;
}

/* ---------- Botones flotantes ---------- */
#rm-float-stack{
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
#rm-float-quote, #rm-float-whatsapp{
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 100px;
  padding: 14px 22px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
#rm-float-quote{ background: var(--rm-accent); }
#rm-float-whatsapp{ background: #25d366; padding: 14px; }
#rm-float-quote-icon, #rm-float-icon{ width: 22px; height: 22px; display: block; object-fit: contain; }
#rm-float-icon{ width: 30px; height: 30px; }
@media (max-width: 600px){
  #rm-float-quote{ padding: 16px; border-radius: 50%; width: 54px; height: 54px; justify-content: center; gap: 0; }
  #rm-float-quote-label, #rm-float-label{ display: none; }
  #rm-float-whatsapp{ padding: 16px; border-radius: 50%; }
}

/* ================= HOME ================= */
.rm-hero-sub-strong{ color: var(--rm-black); font-weight: 600; }

/* Tarjetas de servicio con foto */
.rm-services-detail{ grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.rm-service-card{ display: flex; flex-direction: column; padding: 14px 14px 24px; }
.rm-service-card img{
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 10px; display: block; background: #e4e4e4; margin-bottom: 18px;
}
.rm-service-card h3, .rm-service-card p, .rm-service-link{ margin-left: 10px; margin-right: 10px; }
.rm-service-card h3{ font-size: 20px; line-height: 1.2; }
.rm-service-card p{ flex: 1; }
.rm-service-link{
  align-self: flex-start; text-decoration: none; font-weight: 700; font-size: 14px;
  border-bottom: 2px solid var(--rm-black); padding-bottom: 2px;
}
.rm-service-link:hover{ color: var(--rm-accent); border-color: var(--rm-accent); }

/* Quiénes somos */
.rm-about{
  max-width: 1200px; margin: 0 auto; padding: 90px 24px;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center;
}
.rm-about img{ width: 100%; height: auto; display: block; }
.rm-about-text p{ font-size: 18px; color: var(--rm-gray); margin: 0 0 20px; max-width: 620px; }
.rm-about-text strong{ color: var(--rm-black); }
@media (max-width: 800px){ .rm-about{ grid-template-columns: 1fr; gap: 30px; } }

/* Por qué elegirnos: reutiliza .rm-why-grid */
.rm-why-icon{ width: 44px; height: 44px; object-fit: contain; display: block; margin: 0 0 16px; }
.rm-why-item h3{ font-size: 20px; }
.rm-why-item p{ font-size: 15px; line-height: 1.65; }

/* Video */
.rm-video{ background: var(--rm-black); color: #fff; padding: 90px 24px; }
.rm-video-inner{ max-width: 1100px; margin: 0 auto; }
.rm-video-frame{ position: relative; aspect-ratio: 16 / 9; background: #111; margin-bottom: 30px; }
.rm-video-frame iframe{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rm-video-play{ position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.rm-video-play img{ width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity .2s ease; }
.rm-video-play:hover img{ opacity: 1; }
.rm-video-icon{
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%; background: var(--rm-accent);
}
.rm-video-icon::after{
  content: ""; position: absolute; left: 34px; top: 26px;
  border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #fff;
}
.rm-video-play:hover .rm-video-icon{ background: #fff; }
.rm-video-play:hover .rm-video-icon::after{ border-left-color: var(--rm-accent); }
.rm-video p{ color: #cfcfcf; font-size: 17px; max-width: 820px; margin: 0 0 16px; }
.rm-video strong{ color: #fff; }
.rm-btn-light{ background: #fff; color: var(--rm-black); margin-top: 14px; }
.rm-btn-light:hover{ background: var(--rm-accent); color: #fff; }

/* Testimonios (slider) */
.rm-testimonials{ max-width: 1200px; margin: 0 auto; padding: 90px 24px 40px; }
.rm-slider-head{ display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.rm-slider-arrows{ display: flex; gap: 10px; margin-bottom: 24px; }
.rm-arrow{
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--rm-black);
  background: transparent; font-size: 20px; font-weight: 700; cursor: pointer; color: var(--rm-black);
}
.rm-arrow:hover{ background: var(--rm-black); color: #fff; }
.rm-t-track{
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 80px) / 3);
  gap: 40px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: 6px;
}
.rm-t-track::-webkit-scrollbar{ display: none; }
@media (max-width: 900px){ .rm-t-track{ grid-auto-columns: calc((100% - 24px) / 2); gap: 24px; } }
@media (max-width: 600px){ .rm-t-track{ grid-auto-columns: 88%; gap: 16px; } }
.rm-testimonial{
  scroll-snap-align: start; margin: 0; border-top: 3px solid var(--rm-black); padding-top: 22px;
  display: flex; flex-direction: column;
}
.rm-stars{ display: flex; gap: 3px; margin-bottom: 16px; }
.rm-stars svg{ width: 20px; height: 20px; fill: var(--rm-accent); }
.rm-testimonial blockquote{ margin: 0 0 22px; font-size: 19px; font-weight: 500; line-height: 1.45; flex: 1; }
.rm-testimonial blockquote strong{ font-weight: 800; }
.rm-testimonial figcaption strong{ display: block; font-size: 15px; }
.rm-testimonial figcaption span{ font-size: 13px; color: var(--rm-gray); }
.rm-dots{ display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.rm-dots button{
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0;
  background: #d0d0d0; cursor: pointer; transition: width .2s ease, background .2s ease;
}
.rm-dots button[aria-current="true"]{ width: 28px; border-radius: 10px; background: var(--rm-black); }

/* Clientes (slider continuo de logos) */
.rm-clients{ padding: 60px 0 90px; }
.rm-clients .rm-section-label, .rm-clients .rm-section-title{
  max-width: 1200px; margin-left: auto; margin-right: auto; padding: 0 24px;
}
.rm-clients-outer{
  overflow: hidden; margin-top: 30px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.rm-clients-track{ display: flex; width: max-content; animation: rm-scroll 110s linear infinite; }
.rm-clients-outer:hover .rm-clients-track{ animation-play-state: paused; }
.rm-client{ flex: 0 0 auto; width: 220px; height: 120px; padding: 0 30px; display: flex; align-items: center; justify-content: center; }
.rm-client img{
  width: auto; height: auto; max-width: 100%; max-height: 90px; object-fit: contain;
  filter: grayscale(1); opacity: .7; transition: filter .2s ease, opacity .2s ease;
}
.rm-client img:hover{ filter: none; opacity: 1; }
@media (max-width: 600px){ .rm-client{ width: 160px; height: 100px; padding: 0 20px; } }

/* Contacto */
.rm-contact-head{ max-width: 800px; margin: 0 auto 40px; }
.rm-contact-head .rm-section-label{ margin-bottom: 20px; }

/* Texto solo para lectores de pantalla y buscadores */
.rm-sr{ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Footer extra */
.rm-footer-col span{ font-size: 15px; color: rgba(255,255,255,.85); }

a:focus-visible, button:focus-visible, summary:focus-visible{ outline: 3px solid var(--rm-accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce){
  .rm-marquee-track, .rm-footer-isotipo, .rm-clients-track{ animation: none; }
  .rm-clients-outer{ overflow-x: auto; }
  .rm-reveal-bar{ display: none; }
}

/* ============ PÁGINA DE SERVICIO ============ */
.rm-sr{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
a:focus-visible, button:focus-visible, summary:focus-visible{ outline:3px solid var(--rm-accent); outline-offset:3px; }
.rm-wrap{ max-width:1200px; margin:0 auto; padding:90px 24px; }
.rm-crumbs{ max-width:1200px; margin:0 auto; padding:24px 24px 0; font-size:13px; color:var(--rm-gray); }
.rm-crumbs ol{ list-style:none; display:flex; flex-wrap:wrap; gap:8px; margin:0; padding:0; }
.rm-crumbs li+li::before{ content:"/"; margin-right:8px; color:#bbb; }
.rm-crumbs a{ text-decoration:none; } .rm-crumbs a:hover{ color:var(--rm-accent); }
.rm-hero{ padding-top:50px; }
.rm-hero h1{ font-size:clamp(38px, 7vw, 84px); }

/* Métricas */
.rm-metrics{ max-width:1200px; margin:0 auto; padding:30px 24px 60px; }
.rm-metrics-box{ background:var(--rm-gray-light); border-radius:24px; display:grid; grid-template-columns:1fr 260px; align-items:end; overflow:hidden; }
.rm-metrics-box > div{ padding:48px; align-self:center; }
.rm-metrics-box .rm-stats{ margin-top:10px; }
.rm-metrics-box .rm-stat strong{ font-size:clamp(34px,4vw,52px); }
.rm-counters strong{ font-variant-numeric: tabular-nums; }
.rm-metrics-box img{ width:100%; height:auto; display:block; }
@media (max-width:800px){ .rm-metrics-box{ grid-template-columns:1fr; } .rm-counters strong{ font-variant-numeric: tabular-nums; }
.rm-metrics-box img{ max-width:220px; margin:0 auto; } .rm-metrics-box > div{ padding:32px 24px; } }

/* Beneficios */
.rm-benefit .rm-ico{ margin-bottom:16px; }
.rm-ico{ display:inline-flex; width:48px; height:48px; border-radius:12px; background:var(--rm-accent); align-items:center; justify-content:center; flex:0 0 auto; }
.rm-ico svg{ width:26px; height:26px; fill:none; stroke:#fff; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.rm-benefit h3{ font-size:20px; }
.rm-benefit p{ font-size:15px; line-height:1.6; }

/* Banner */
.rm-banner{ max-width:1100px; margin:0 auto; padding:0 24px; }
.rm-banner img{ width:100%; height:auto; display:block; border-radius:16px; background:var(--rm-gray-light); }

/* Sistemas */
.rm-systems{ background:var(--rm-gray-light); }
.rm-system{ padding:40px 0; border-top:1px solid #d9d9d9; }
.rm-system:first-of-type{ border-top:0; }
.rm-system .rm-service-sub{ margin-bottom:10px; }
.rm-system h3{ font-size:clamp(22px,3vw,32px); font-weight:900; margin:0 0 16px; }
.rm-system > p{ font-size:17px; color:var(--rm-gray); max-width:820px; margin:0 0 14px; line-height:1.65; }
.rm-checks{ list-style:none; padding:0; margin:22px 0 0; display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:12px 40px; }
.rm-checks li{ position:relative; padding-left:32px; font-size:16px; }
.rm-checks li::before{ content:""; position:absolute; left:0; top:2px; width:20px; height:20px; border-radius:50%; background:var(--rm-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Proceso (reutiliza .rm-process) */
.rm-process .rm-section-label, .rm-process .rm-section-title{ max-width:900px; margin-left:auto; margin-right:auto; }
.rm-process .rm-section-intro{ max-width:900px; margin:0 auto 30px; }
.rm-process .rm-process-step p{ font-size:15px; }

/* Proceso: tubería que se llena de agua al hacer scroll */
.rm-process-list{ position:relative; }
.rm-process-num{
  position:relative; z-index:1; align-self:flex-start; width:60px; min-width:60px; text-align:center; line-height:1;
  padding:6px 0 10px; background:var(--rm-black); color:#2c3b3e;
  transition:color .5s ease, transform .5s cubic-bezier(.34,1.56,.64,1), text-shadow .5s ease;
}
.rm-process-step > div{ opacity:.45; transition:opacity .6s ease; }
.rm-process-step.is-on .rm-process-num{ color:var(--rm-accent); transform:scale(1.12); text-shadow:0 0 18px rgba(43,179,200,.45); }
.rm-process-step.is-on > div{ opacity:1; }
.rm-pipe{
  position:absolute; left:30px; top:var(--pipe-top,0); height:var(--pipe-h,0);
  z-index:0; width:4px; margin-left:-2px; border-radius:4px; background:rgba(255,255,255,.12);
}
.rm-pipe-fill{
  position:absolute; left:0; top:0; width:100%; height:0; border-radius:4px;
  background:linear-gradient(180deg, var(--rm-accent), #2bb3c8);
  box-shadow:0 0 14px rgba(43,179,200,.55);
}
.rm-pipe-fill::after{ /* gota en la punta */
  content:""; position:absolute; left:50%; bottom:-9px; width:12px; height:12px;
  background:#2bb3c8; border-radius:0 50% 50% 50%; transform:translateX(-50%) rotate(45deg);
  box-shadow:0 0 12px rgba(43,179,200,.8); animation:rm-drip 1.4s ease-in-out infinite;
}
@keyframes rm-drip{ 0%,100%{ opacity:1; } 50%{ opacity:.55; } }
.rm-pipe.is-full .rm-pipe-fill::after{ display:none; }
@media (prefers-reduced-motion: reduce){
  .rm-process-step > div{ opacity:1; }
  .rm-process-num{ color:var(--rm-accent); transition:none; }
  .rm-pipe-fill{ height:100% !important; }
  .rm-pipe-fill::after{ display:none; }
}

/* Banda CTA */
.rm-band{ text-align:center; padding:90px 24px; }
.rm-band-accent{ background:var(--rm-accent); color:#fff; }
.rm-band-dark{
  color:#fff; position:relative; overflow:hidden;
  background:
    radial-gradient(ellipse 60% 80% at 85% 0%, rgba(43,179,200,.28), transparent 70%),
    radial-gradient(ellipse 50% 70% at 10% 100%, rgba(0,113,133,.35), transparent 70%),
    linear-gradient(160deg, #005a68 0%, #003e48 100%);
}
.rm-band-dark .rm-btn-white{ color:#003e48; }
.rm-band .rm-section-label{ color:#fff; opacity:.8; }
.rm-band h2, .rm-band .rm-band-title{ font-size:clamp(28px,4.5vw,52px); font-weight:900; line-height:1.08; max-width:900px; margin:0 auto 18px; }
.rm-band p:not(.rm-band-title){ font-size:18px; max-width:760px; margin:0 auto 34px; opacity:.9; }
.rm-band .rm-hero-cta{ justify-content:center; }
.rm-btn-white{ background:#fff; color:var(--rm-black); }
.rm-btn-white:hover{ background:var(--rm-black); color:#fff; }
.rm-btn-ghost{ border:2px solid #fff; color:#fff; }
.rm-btn-ghost:hover{ background:#fff; color:var(--rm-black); }
.rm-band-dark .rm-btn-white:hover{ background:var(--rm-accent); color:#fff; }
.rm-band-note{ font-size:14px !important; opacity:.6 !important; margin:30px auto 0 !important; }

/* Proyectos */
.rm-projects-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:28px; }
.rm-project{ margin:0; }
.rm-project img{ width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; display:block; border-radius:12px; background:var(--rm-gray-light); }
.rm-project figcaption{ padding-top:18px; }
.rm-project h3{ font-size:22px; font-weight:800; margin:6px 0 8px; }
.rm-project p{ font-size:15px; color:var(--rm-gray); margin:0; }

/* Precios (reutiliza .rm-pricing) */
.rm-pricing{ max-width:1200px; }
.rm-pricing .rm-section-intro{ max-width:820px; }
.rm-pricing-table{ border-radius:12px; overflow:hidden; }
.rm-pricing-table td{ font-size:16px; }
.rm-includes{ background:var(--rm-black); color:#fff; padding:24px 28px; border-radius:12px; font-size:15px; margin:26px 0; }
.rm-includes strong{ color:#fff; }
.rm-center{ text-align:center; }

/* Cobertura */
.rm-zones-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); column-gap:40px; border-top:3px solid var(--rm-black); margin-bottom:24px; }
.rm-zone{ display:flex; justify-content:space-between; align-items:center; padding:20px 4px; border-bottom:1px solid #e2e2e2; text-decoration:none; font-size:clamp(18px,2vw,22px); font-weight:800; }
.rm-zone span{ color:var(--rm-accent); }
a.rm-zone:hover{ color:var(--rm-accent); }
.rm-faq-item p a{ color:#fff; text-decoration:underline; text-decoration-color:var(--rm-accent); text-underline-offset:3px; }
.rm-note{ font-size:16px; color:var(--rm-gray); max-width:820px; margin:0; }

/* FAQ intro */
.rm-faq .rm-section-title, .rm-faq .rm-section-label, .rm-faq .rm-section-intro{ max-width:1000px; margin-left:auto; margin-right:auto; }

/* Por qué RiegoMan */
.rm-reasons{ background:var(--rm-gray-light); }
.rm-reasons-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:24px; }
.rm-reason{ background:#fff; border-radius:16px; padding:28px; }
.rm-reason h3{ font-size:20px; font-weight:800; margin:18px 0 10px; line-height:1.25; }
.rm-reason p{ font-size:15px; color:var(--rm-gray); margin:0; line-height:1.65; }

@media (prefers-reduced-motion: reduce){
  .rm-marquee-track, .rm-footer-isotipo, .rm-clients-track{ animation:none; }
  .rm-clients-outer{ overflow-x:auto; }
  .rm-reveal-bar{ display:none; }
}

