/* ==========================================================================
   RinGO – Be Safe · landing
   Réplica en HTML/CSS de myringo.es (WordPress + Betheme)
   ========================================================================== */

/* ---------- Fuentes ---------- */
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-Light.woff2") format("woff2");
  font-weight: 100 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Iconos de la web original (fuente mfn-icons de Betheme) */
@font-face {
  font-family: "mfn-icons";
  src: url("../fonts/mfn-icons.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/* ---------- Variables ---------- */
:root {
  --azul-oscuro: #0063b0;   /* barra de cabecera */
  --azul: #2991d6;          /* iconos, franja de contacto, titular vigilantes */
  --azul-claro: #46c3ff;    /* subtítulo */
  --azul-hover: #bfebff;    /* menú al pasar el ratón */
  --titulos: #353638;
  --texto: #9a9a9a;
  --gris-fondo: #f9f9f9;
  --pie: #383838;

  --container: 1220px;
  --font: "Source Sans Pro", Arial, Tahoma, sans-serif;
  --ease: cubic-bezier(.25, .46, .45, .94);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: #fcfcfc; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--gris-fondo);
  color: var(--texto);
  font: 400 15px/21px var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--azul); text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--azul-claro); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 10px; }

.skip {
  position: absolute; left: 10px; top: -60px; z-index: 1000;
  background: #fff; color: var(--titulos); padding: 10px 16px; border-radius: 4px;
}
.skip:focus { top: 10px; }

/* Titulares de sección: fino y espaciado */
.h-section {
  color: var(--titulos);
  font-size: 48px;
  line-height: 48px;
  font-weight: 300;
  letter-spacing: 5px;
  margin-bottom: 15px;
}

/* Iconos */
.ico { font-family: "mfn-icons"; font-style: normal; font-weight: normal; speak: never; line-height: inherit; }
.ico::before { display: inline-block; width: 1em; text-align: center; }
.ico-megaphone::before { content: "\e8d5"; }
.ico-caidas::before    { content: "\e82f"; }
.ico-call::before      { content: "\e827"; }
.ico-attention::before { content: "\e810"; }
.ico-location::before  { content: "\e8c6"; }
.ico-battery::before   { content: "\e815"; }
.ico-flight::before    { content: "\e882"; }
.ico-gauge::before     { content: "\e88d"; }
.ico-podcast::before   { content: "\e8ff"; }
.ico-down::before      { content: "\e863"; }
.ico-users::before     { content: "\e94e"; }
.ico-lifebuoy::before  { content: "\e8be"; }

/* ---------- Cabecera ---------- */
.header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
}
.header__bar {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  height: 150px;
  display: flex; align-items: center;
  padding: 0 218px 0 30px;  /* el menú original termina antes del borde del contenedor */
}
.header__logo { display: block; flex: none; }
.header__logo img { height: 80px; width: auto; }

.menu { margin-left: auto; display: flex; }
.menu a {
  display: block;
  padding: 0 20px;
  color: #fff;
  font-size: 17px;
  line-height: 60px;
  letter-spacing: 3px;
  transition: color .2s;
}
.menu a:hover, .menu a[aria-current="true"] { color: var(--azul-hover); }

.header__toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px; padding: 11px 9px;
  background: none; border: 0; cursor: pointer;
}
.header__toggle span { display: block; height: 2px; background: #fff; margin: 0 0 7px; transition: transform .25s, opacity .25s; }
.header__toggle span:last-child { margin: 0; }
.header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: min(650px, 52.42vw);  /* 650 px sobre una rejilla de 1240 px, como el slider original */
  overflow: hidden;
  background: var(--azul-oscuro);
}
.hero__img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center top;
  will-change: transform;
}

/* ---------- Rápido y sencillo ---------- */
.about {
  padding: 40px 0 110px;
  background: var(--gris-fondo) url("../img/fondo-formas.png") no-repeat center top / cover fixed;
}
.about__intro {
  display: grid;
  grid-template-columns: 3fr 2fr;
}
.about__text { padding: 100px 11% 0 calc(11% - 3px); }
.about__sub {
  color: var(--azul-claro);
  font-size: 32px;
  line-height: 34px;
  font-weight: 400;
  margin-bottom: 15px;
}
.about__text p { font-size: 16.5px; line-height: 29.7px; margin-bottom: 15px; }
.about__media { padding: 15px 0 0 19px; }
.about__media img { width: 62%; }

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 24px;
  row-gap: 30px;
  margin-top: 55px;
  padding: 0 2px;
}
.service { text-align: center; }
.service__icon {
  position: relative;
  display: block;
  width: 126px; height: 126px;
  margin: 10px auto 15px;
  border: 8px solid #f8f8f8;
  border-radius: 50%;
  background: #fff url("../img/rayas.png");
  box-shadow: inset 0 0 7px rgba(0, 0, 0, .08);
  color: var(--azul);
  font-size: 50px;
  line-height: 110px;
  transition: transform .3s ease-in-out, color .3s ease-in-out;
}
.service__icon::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background-color: transparent;
  transition: background-color .3s ease-in-out;
}
.service__icon .ico { position: relative; z-index: 2; }
.service:hover .service__icon { transform: scale(.94); color: #fff; }
.service:hover .service__icon::before { background-color: var(--azul); }
.service h3 {
  color: var(--titulos);
  font-size: 25px;
  line-height: 26px;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

/* ---------- Cómo funciona ---------- */
.how {
  position: relative;
  min-height: 870px;
  background: #fff;
  overflow: hidden;
}
.how__head { position: relative; z-index: 1; padding: 100px 70px 0; }
.how__line { margin-top: 5px; }
.how__body { position: relative; z-index: 1; width: 50%; padding: 70px 25px 150px 86px; }
.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 292px));
  column-gap: 24px;
  row-gap: 73px;
}
.step .ico {
  display: block;
  height: 80px;
  margin-bottom: 10px;
  color: var(--azul);
  font-size: 50px;
  line-height: 80px;
}
.step .ico::before { width: auto; text-align: left; }
.step h3 {
  color: var(--titulos);
  font-size: 22px;
  line-height: 28px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.how__photo {
  position: absolute; right: 0; bottom: 0;
  height: 100%; width: auto; max-width: none;
}

/* ---------- Vigilantes ---------- */
.security {
  position: relative;
  overflow: hidden;
  background: var(--azul-oscuro);
  padding: 200px 20px;
  text-align: center;
}
/* Foto quieta y pegada arriba, como en el original (allí el parallax del tema no actúa) */
.security__img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center top;
}
.security__inner {
  position: relative;
  padding-bottom: 15px;
  background: url("../img/linea-titulo.png") no-repeat center bottom;
}
.security__slogan {
  display: block;
  margin-bottom: 7px;
  color: #a8a8a8;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.security__title {
  color: var(--azul);
  font-size: 42px;
  line-height: 42px;
  font-weight: 300;
  letter-spacing: 5px;
  margin-bottom: 15px;
}
.security__text { color: #a8a8a8; margin-bottom: 15px; }

/* ---------- Características ---------- */
.features {
  display: grid;
  grid-template-columns: 3fr 2fr;
  padding: 70px 0;
  background: #fff;
}
.features__photo {
  min-height: 801px;
  background: url("../img/caracteristicas.jpg") no-repeat left bottom / contain;
}
.features__specs { padding: 10px 50px 0 0; }
.features__title {
  color: var(--titulos);
  font-size: 32px;
  line-height: 48px;
  font-weight: 300;
  letter-spacing: 5px;
  text-align: center;
  margin-bottom: 55px;
}
.specs {
  display: grid;
  grid-template-columns: 100px 1fr;
  column-gap: 10px;
  max-width: 450px;
  margin: 0 auto;
}
.specs dt, .specs dd { border-top: 1px solid rgba(0, 0, 0, .08); padding: 15px 0; }
.specs dt { color: #a9a9a9; font-weight: 700; }
.specs dd { color: #484848; padding-left: 20px; }

/* ---------- Contacto ---------- */
.cta { background: var(--azul); padding: 60px 0 70px; }
.cta__inner { display: grid; grid-template-columns: 2fr 1fr; align-items: center; }
.cta__text {
  color: #fff;
  font-size: 26px;
  line-height: 38px;
  font-weight: 300;
  letter-spacing: 1px;
  text-align: center;
}
.button {
  justify-self: center;
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .03);
  color: #fff;
  font-size: 16.5px;
  line-height: 18px;
  transition: background-color .3s, color .3s;
}
.button:hover { background: #1b1b1b; color: #fff; }

/* ---------- Pie ---------- */
.footer {
  background: var(--pie);
  color: #ccc;
  text-align: center;
  padding: 31px 20px 32px;
}

/* ---------- Animaciones de entrada (fadeIn / zoomIn de Betheme) ---------- */
.js .reveal { opacity: 0; }
.js .reveal.is-in[data-anim="fade"] { animation: fadeIn 1s both; }
.js .reveal.is-in[data-anim="zoom"] { animation: zoomIn 1s both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn {
  from { opacity: 0; transform: scale3d(.3, .3, .3); }
  50%  { opacity: 1; }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; animation: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Por debajo de 1240 px el original pasa a menú hamburguesa; la cabecera sigue transparente sobre la foto hasta móvil */
@media (max-width: 1239px) {
  .header__bar { padding: 0 30px; }
  .header__toggle { display: block; }
  .menu {
    display: none;
    position: absolute; top: 100%; right: 1px;
    width: 300px;
    flex-direction: column;
    background: var(--azul-oscuro);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .15);
  }
  .menu.is-open { display: flex; }
  .menu a { padding: 0 20px; border-top: 1px solid rgba(255, 255, 255, .12); line-height: 48px; font-size: 15px; }

  .about__text { padding: 60px 6% 0 4%; }
  .how__body { width: 56%; padding-left: 70px; }
  .how__photo { height: 70%; }
}

@media (max-width: 959px) {
  :root { --gutter: 40px; }  /* margen lateral común a todas las secciones */
  .container { padding: 0 var(--gutter); }
  .h-section { font-size: 40px; line-height: 44px; }
  .about__intro { grid-template-columns: 1fr; }
  .about__text { padding: 40px 0 0; }
  .about__media { padding: 30px 0 0; }
  .about__media img { width: 300px; margin: 0 auto; }
  .services { grid-template-columns: repeat(2, 1fr); column-gap: 30px; row-gap: 40px; padding: 0; }

  .how { min-height: 0; }
  .how__head { padding: 70px var(--gutter) 0; }
  .how__body { width: auto; padding: 50px var(--gutter) 40px; }
  .how__photo { position: static; height: auto; width: 100%; max-width: 560px; margin: 0 auto; }

  /* Vigilantes: velo oscuro y azul claro para que el titular se lea sobre el dispositivo azul de la foto */
  .security { padding: 140px var(--gutter); }
  .security::before {
    content: "";
    position: absolute; inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, .55);
  }
  .security__inner { z-index: 2; }
  .security__title { color: var(--azul-claro); font-size: 34px; line-height: 40px; letter-spacing: 3px; }
  .security__slogan, .security__text { color: #d0d0d0; }

  .features { grid-template-columns: 1fr; padding: 60px 0 0; }
  .features__photo { order: 2; min-height: 0; aspect-ratio: 2126 / 1600; margin-top: 40px; }
  .features__specs { padding: 0 var(--gutter); }
  .features__title { margin-bottom: 35px; }

  .cta__inner { grid-template-columns: 1fr; gap: 24px; }
  .footer { padding-left: var(--gutter); padding-right: var(--gutter); }
}

@media (max-width: 767px) {
  :root { --gutter: 30px; }
  .header { position: relative; background: var(--azul-oscuro); }  /* en móvil, barra azul encima de la foto */
  .header__bar { height: 80px; padding: 0 21px 0 var(--gutter); }  /* el botón ya tiene 9 px de aire */
  .header__logo img { height: 46px; }
  .menu { right: 0; width: 100%; }
  .menu a { padding: 0 var(--gutter); }

  .about { background-attachment: scroll; padding-bottom: 60px; }
  .h-section { font-size: 34px; line-height: 38px; letter-spacing: 4px; }
  .about__sub { font-size: 26px; line-height: 30px; }
  .about__text { padding-top: 30px; }
  .about__text p { font-size: 16px; line-height: 27px; }
  .about__media img { width: 240px; }
  .services { grid-template-columns: 1fr; }

  .how__head { padding-top: 60px; }
  .how__body { padding-top: 40px; padding-bottom: 30px; }
  .steps { grid-template-columns: 1fr; row-gap: 40px; }

  .security { padding-top: 110px; padding-bottom: 110px; }
  .security__title { font-size: 28px; line-height: 34px; letter-spacing: 2px; }

  .features__title { font-size: 28px; letter-spacing: 4px; }
  .specs { grid-template-columns: 110px 1fr; }
  .specs dd { padding-left: 10px; }

  .cta { padding: 50px 0; }
  .cta__text { font-size: 22px; line-height: 32px; }
}
