/* ============================================
   FRASOR — Servicios Informáticos
   Paleta y tipografía según "Datos desarrollo.pdf"
   ============================================ */

:root {
  --azul-oscuro: #122d40;   /* cabecera / footer */
  --blanco-fondo: #f2f1f2;  /* fondo general */
  --negro: #191919;         /* fondo productos / texto general */
  --azul: #65c1f4;          /* texto azul */
  --verde: #a3d204;         /* texto verde */
  --ocre: #fbcf64;          /* texto ocre */
  --ancho-slider: 1920px;
  --ancho-titular: 1440px;
  --ancho-texto: 1280px;
  --alto-cabecera: 118px;
  --alto-footer: 259px;
}

/* ---------- Tipografía Roobert (TRIAL) ---------- */
@font-face {
  font-family: "Roobert";
  src: url("../fuentes/Roobert-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roobert";
  src: url("../fuentes/Roobert-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roobert";
  src: url("../fuentes/Roobert-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Roobert", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: var(--negro);
  background-color: var(--blanco-fondo);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-weight: 300; margin: 0; }
p { margin: 0 0 1.2em; }
ul, ol { margin: 0; }

a { color: inherit; }

.texto-azul  { color: var(--azul); }
.texto-verde { color: var(--verde); }
.texto-ocre  { color: var(--ocre); }

.contenedor-titular,
.contenedor-texto {
  margin-inline: auto;
  padding-inline: 2rem;
}
.contenedor-titular { max-width: calc(var(--ancho-titular) + 4rem); }
.contenedor-texto   { max-width: calc(var(--ancho-texto) + 4rem); }

.seccion-etiqueta {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin-bottom: 0.5em;
}

/* ---------- Cabecera ---------- */
.cabecera {
  background-color: var(--azul-oscuro);
  height: var(--alto-cabecera);
  position: sticky;
  top: 0;
  z-index: 100;
}
.cabecera__contenido {
  max-width: calc(var(--ancho-titular) + 4rem);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-inline: 2rem;
}
.cabecera__logo img { height: calc(var(--alto-cabecera) - 24px); width: auto; }

.cabecera__nav {
  display: flex;
  gap: 2.5rem;
}
.cabecera__nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}
.cabecera__nav a:hover { color: var(--azul); }

.cabecera__clientes { position: relative; }
.clientes__boton {
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0.5rem 0;
}
.clientes__flecha { margin-left: 0.4em; }
.clientes__menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 240px;
  background: var(--azul-oscuro);
  border-top: 2px solid var(--azul);
  padding: 0.5rem 0;
  list-style: none;
}
.clientes__menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}
.clientes__menu a:hover { background: rgba(101, 193, 244, 0.15); color: var(--azul); }
.cabecera__clientes:hover .clientes__menu,
.cabecera__clientes:focus-within .clientes__menu { display: block; }

/* ---------- Hero / Slider inicio ---------- */
.hero {
  background: url("../img/slider-inicio.jpg") center / cover no-repeat;
  min-height: min(758px, 70vh);
  display: flex;
  align-items: center;
}
.hero__contenido {
  max-width: calc(var(--ancho-titular) + 4rem);
  width: 100%;
  margin-inline: auto;
  padding: 4rem 2rem;
}
.hero__titulo {
  color: #fff;
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.hero__texto {
  color: #fff;
  font-weight: 600;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  max-width: 34em;
  margin-top: 1.5rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* ---------- Intro ---------- */
.intro {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
}
.intro::after {
  /* tramado de puntos decorativo, como en la plantilla */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34%;
  height: 100%;
  background-image: radial-gradient(rgba(25, 25, 25, 0.10) 1px, transparent 1.5px);
  background-size: 9px 9px;
  pointer-events: none;
}
.intro__titulo {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  margin-bottom: 1.5rem;
}
.intro__subtitulo {
  display: block;
  font-weight: 400;
}
.intro p { max-width: 62em; }

/* ---------- Qué hacemos ---------- */
.que-hacemos__cabecera {
  background: url("../img/slider-que-hacemos.jpg") center / cover no-repeat;
  color: #fff;
  text-align: right;
  padding: 6rem 0 5rem;
}
.que-hacemos__titulo {
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-bottom: 0.4em;
}
.que-hacemos__subtitulo {
  font-size: clamp(1.2rem, 1.9vw, 1.7rem);
  font-weight: 300;
  margin-bottom: 1.5em;
}
.que-hacemos__texto {
  margin-left: auto;
  max-width: 44em;
  font-size: 0.98rem;
}

.productos {
  background-color: var(--negro);
  color: #fff;
  padding: 4rem 0 6rem;
}
.productos__claim {
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  font-weight: 600;
  margin-bottom: 3.5rem;
}

.producto {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 5rem;
}
.producto--invertido { flex-direction: row-reverse; }
.producto--invertido .producto__texto { text-align: right; }
.producto--invertido .producto__lista { list-style: none; padding: 0; }

.producto__texto { flex: 1 1 55%; }
.producto__imagen { flex: 1 1 45%; }
.producto__imagen img { margin-inline: auto; }

.producto__titulo {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 400;
  margin-bottom: 0.8em;
}
.producto__lista {
  padding-left: 1.2em;
  margin-bottom: 1.5rem;
}
.producto__enlace {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
}
.producto__enlace:hover { text-decoration: underline; }

/* ---------- Normativa (Veri*factu / control horario) ---------- */
.normativa {
  padding: 5rem 0 6rem;
  background: #fff;
}
.normativa__titulo {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 0.8em;
}
.normativa__bloques {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
.normativa__bloque h3 {
  color: var(--azul-oscuro);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 0.5em;
}
.normativa__bloque p { max-width: 36em; margin: 0; }
.normativa__enlace-externo {
  display: inline-block;
  margin-top: 0.8em;
  color: var(--azul-oscuro);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Cómo trabajamos ---------- */
.como-trabajamos {
  padding: 5rem 0 6rem;
}
.como-trabajamos__titulo {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 0.3em;
}
.como-trabajamos__subtitulo {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 300;
  margin-bottom: 1.5em;
}
.como-trabajamos p { max-width: 62em; }
.como-trabajamos__claim {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  margin: 1.5em 0 3rem;
}

.pasos {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2rem;
  max-width: 990px;
}
.paso {
  position: relative;
  container-type: inline-size;
}
.paso__fondo { width: 100%; }
.paso__contenido {
  position: absolute;
  inset: 0;
  padding: 6% 9% 6% 18%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.paso__titulo {
  font-size: clamp(0.85rem, 1.7cqw, 1.05rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5em;
}
.paso__contenido p {
  font-size: clamp(0.7rem, 1.45cqw, 0.92rem);
  margin: 0;
  max-width: 46em;
}

/* ---------- Sobre nosotros ---------- */
.sobre-nosotros {
  background:
    linear-gradient(rgba(18, 45, 64, 0.72), rgba(18, 45, 64, 0.72)),
    url("../img/slider-quienes.jpg") center / cover no-repeat;
  color: #fff;
  padding: 5rem 0 6rem;
}
.sobre-nosotros__titulo {
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-bottom: 1.2em;
}
.sobre-nosotros__subtitulo {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 600;
  margin: 1.8em 0 0.8em;
}
.sobre-nosotros p { max-width: 58em; }
.sobre-nosotros__lista {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}
.sobre-nosotros__lista li { margin-bottom: 0.35em; }
.sobre-nosotros__lista li::before { content: "· "; font-weight: 600; }

/* ---------- Franja ---------- */
.franja {
  text-align: center;
  padding: 1.6rem 1rem;
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--azul-oscuro);
  color: #fff;
  min-height: var(--alto-footer);
  display: flex;
  align-items: center;
}
.footer__contenido {
  max-width: calc(var(--ancho-titular) + 4rem);
  width: 100%;
  margin-inline: auto;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  gap: 3rem;
  align-items: center;
}
.footer__logo img { height: 90px; width: auto; }
.footer__contacto {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.8;
}
.footer__contacto a { color: #fff; text-decoration: none; }
.footer__contacto a:hover { color: var(--azul); }
.footer__legal {
  font-size: 0.85rem;
  display: grid;
  gap: 0.3rem;
}
.footer__legal a { color: #fff; text-decoration: none; }
.footer__legal a:hover { color: var(--azul); }
.footer__legal p { margin: 0.4em 0; color: rgba(255, 255, 255, 0.75); }
.footer__cta { font-weight: 600; }
.footer__social {
  display: flex;
  gap: 0.8rem;
}
.footer__social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #fff;
}
.footer__social a:hover { color: var(--azul); border-color: var(--azul); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cabecera__contenido { gap: 1rem; }
  .cabecera__nav { gap: 1.2rem; font-size: 0.85rem; }
  .producto,
  .producto--invertido {
    flex-direction: column;
    gap: 2rem;
  }
  .producto--invertido .producto__texto { text-align: left; }
  .footer__contenido {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  :root { --alto-cabecera: 84px; }
  .cabecera__nav { display: none; }
  .que-hacemos__cabecera { text-align: left; }
  .que-hacemos__texto { margin-left: 0; }
  .normativa__bloques { grid-template-columns: 1fr; }

  /* Etiquetas numeradas: tarjeta plana en móvil */
  .paso__fondo { display: none; }
  .paso__contenido {
    position: static;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  }
  .paso__titulo { font-size: 0.95rem; }
  .paso__contenido p { font-size: 0.85rem; }

  .footer__contenido { grid-template-columns: 1fr; text-align: left; }
}

/* ---------- Páginas legales ---------- */
.pagina-legal {
  padding: 4.5rem 0 5.5rem;
}
.pagina-legal h1 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 1em;
}
.pagina-legal h2 {
  color: var(--azul-oscuro);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2em 0 0.6em;
}
.pagina-legal p,
.pagina-legal li { max-width: 62em; }
.pagina-legal ul {
  padding-left: 1.2em;
  margin-bottom: 1.2em;
}
.pagina-legal table {
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  max-width: 100%;
}
.pagina-legal th,
.pagina-legal td {
  border: 1px solid rgba(25, 25, 25, 0.2);
  padding: 0.5rem 0.9rem;
  text-align: left;
  vertical-align: top;
}
.pagina-legal th {
  background: var(--azul-oscuro);
  color: #fff;
  font-weight: 600;
}
.pagina-legal address { font-style: normal; }
.legal-aviso {
  background: rgba(251, 207, 100, 0.18);
  border-left: 3px solid var(--ocre);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}
.legal-aviso p { margin: 0; }

/* ---------- Páginas de contenido (Veri*factu, fichajes) ---------- */
.pagina-contenido__intro {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 300;
  max-width: 48em;
  margin-bottom: 1.5em;
}
.pagina-legal h3 {
  color: var(--azul-oscuro);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.6em 0 0.4em;
}
.cta-bloque {
  background: var(--azul-oscuro);
  color: #fff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin-top: 3.5rem;
}
.cta-bloque h2 {
  color: #fff;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 600;
  margin: 0 0 0.4em;
}
.cta-bloque p { margin-bottom: 1.5rem; }
.cta-boton {
  display: inline-block;
  border: 2px solid var(--azul);
  color: #fff;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  margin: 0.3rem;
}
.cta-boton:hover { background: var(--azul); color: var(--azul-oscuro); }
