/* ==========================================================================
   Riclar — Landing Page
   Valores extraídos del diseño en Figma (desktop 1280 / tablet 800 / móvil 375)
   ========================================================================== */

:root {
  /* Colores de marca */
  --azul-noche: #0d1a2a;
  --big-stone: #1a2e46;
  --cello: #243e5f;          /* columna CTA */
  --chambray: #2f567f;
  --azul-modulo: #7aa6ce;    /* tarjetas "¿Cómo funciona?" */
  --azul-bento: #a5cfef;     /* tarjetas de cifras y botón Empecemos */
  --saffron: #f7b533;
  --saffron-20: rgba(247, 181, 51, 0.2);
  --cello-7: rgba(36, 62, 95, 0.07);
  --cello-8: rgba(36, 62, 95, 0.08);
  --emperor: #555555;
  --gris-parrafo: #5d5d5d;
  --pampas: #f5f4f0;         /* fondo testimonios */
  --gris-icono: #cecece;     /* fondo iconos "diferentes" */
  --fondo-footer: #ededed;
  --subhead: #cbcbcb;
  --blanco: #ffffff;
  --blanco-25: rgba(255, 255, 255, 0.25);
  --blanco-45: rgba(255, 255, 255, 0.45);

  /* Tipografía */
  --font-principal: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-display: 'Barlow Condensed', var(--font-principal);

  /* Layout */
  --sidebar-ancho: 520px;
  --pad-seccion: 40px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-principal);
  color: var(--azul-noche);
  background: var(--blanco);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
iframe {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ==========================================================================
   Columna azul (sidebar en desktop, cabecera en tablet/móvil)
   ========================================================================== */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-ancho);
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  background: var(--cello);
  padding: 50px 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 49px;
}

.sidebar-nav {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.logo-nav {
  width: 95px;
  height: 34px;
}

.btn-empecemos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  background: var(--azul-bento);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: -0.2px;
  line-height: 1.058;
  color: #000;
  white-space: nowrap;
  transition: filter 0.15s ease;
}

.btn-empecemos:hover {
  filter: brightness(1.06);
}

.sidebar-hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-hero h1 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.058;
  letter-spacing: -0.8px;
  text-transform: capitalize;
  color: var(--blanco);
  max-width: 381px;
}

.sidebar-hero .acento {
  color: var(--saffron);
}

.sidebar-sub {
  font-size: 16px;
  line-height: 1.09;
  color: var(--subhead);
  max-width: 420px;
}

.sidebar-label {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--saffron);
}

.sidebar-como {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 401px;
  width: 100%;
}

.modulos {
  position: relative;
  display: flex;
  gap: 10px;
  width: 100%;
}

.modulo {
  flex: 1 0 0;
  min-width: 0;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 12px 10px;
  background: var(--azul-modulo);
  border-radius: 4px;
}

.modulo-central {
  gap: 4px;
}

.modulo img {
  width: 37px;
  height: 37px;
}

.modulo p {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.15;
  color: #000;
  text-align: center;
}

.modulo-flecha {
  position: absolute;
  top: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--saffron);
  border-radius: 50%;
}

/* Centradas sobre los espacios entre módulos */
.flecha-1 {
  left: calc((100% - 20px) / 3 - 9px);
}

.flecha-2 {
  left: calc((100% - 20px) * 2 / 3 + 1px);
}

.sidebar-dudas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 13px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--saffron);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--cello);
  transition: filter 0.15s ease;
}

.btn-whatsapp:hover {
  filter: brightness(1.05);
}

.sidebar-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--blanco-45);
}

.sidebar-trust::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--blanco-25);
}

.sidebar-links {
  display: flex;
  gap: 12.8px;
  margin-top: auto;
}

.sidebar-links a {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--saffron);
}

.sidebar-links a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Columna derecha
   ========================================================================== */

.columna-derecha {
  margin-left: var(--sidebar-ancho);
  background: var(--blanco);
}

/* En monitores grandes el contenido no crece sin límite:
   se mantiene centrado dentro de la columna blanca */
.columna-derecha main {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

main > section {
  padding-left: var(--pad-seccion);
  padding-right: var(--pad-seccion);
}

.seccion-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.seccion-header h2 {
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 400;
  line-height: 1.058;
  letter-spacing: -0.84px;
  text-transform: capitalize;
  color: var(--azul-noche);
}

.seccion-header p {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--gris-parrafo);
  max-width: 395px;
}

/* --- Hero: video + tagline + logos ------------------------------------- */

.seccion-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  padding-top: 50px;
  padding-bottom: 50px;
}

.video-fachada {
  position: relative;
  width: 100%;
  aspect-ratio: 680 / 379.33;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 16px 48px -24px rgba(13, 26, 42, 0.35);
  cursor: pointer;
}

.video-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-gradiente {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 26, 42, 0) 30%, rgba(13, 26, 42, 0.45) 100%);
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease;
}

.video-fachada:hover .video-play {
  transform: translate(-50%, -50%) scale(1.05);
}

.video-etiquetas {
  position: absolute;
  left: 24px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.video-pill {
  padding: 4.5px 11px 4.9px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font-size: 11px;
  font-weight: 500;
  line-height: 15.4px;
  letter-spacing: 1.32px;
  text-transform: uppercase;
  color: var(--blanco);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.video-texto {
  font-size: 13px;
  font-weight: 500;
  line-height: 18.2px;
  letter-spacing: 0.26px;
  color: var(--blanco);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.video-fachada.video-activo {
  cursor: default;
}

.video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-tagline {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.09;
  letter-spacing: -0.4px;
  text-align: center;
  color: #000;
}

/* Carrusel de marcas: se desplaza de derecha a izquierda y se
   desvanece en los bordes. Vive dentro de la columna blanca. */
.logo-wall {
  overflow: hidden;
  padding: 34px 0;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: logos-desplazamiento 76s linear infinite;
}

.logo-grupo {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
}

.logo-grupo img {
  flex-shrink: 0;
}

@keyframes logos-desplazamiento {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
  }
}

/* --- Los números no mienten --------------------------------------------- */

.seccion-numeros {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 500px));
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.bento-card {
  min-width: 0;
  height: 222px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  padding: 30px 20px;
  background: var(--azul-bento);
  border-radius: 10.7px;
  color: var(--azul-noche);
}

.bento-cifra {
  font-size: 90px;
  line-height: 1.037;
  letter-spacing: -3.6px;
  text-align: center;
}

.bento-label {
  font-size: 16px;
  line-height: 1.09;
  text-align: center;
  white-space: nowrap;
}

/* --- Testimonios --------------------------------------------------------- */

.seccion-confianza {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.testimonios {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.testimonio {
  flex: 0 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 29px 27px;
  background: var(--pampas);
  border: 1px solid var(--cello-8);
  border-radius: 6px;
}

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

.avatar {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--saffron-20);
  border: 2px solid var(--saffron);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  color: var(--saffron);
}

.autor {
  font-size: 15px;
  font-weight: 700;
  color: var(--big-stone);
}

.autor-detalle {
  font-size: 13px;
  font-weight: 500;
  color: var(--saffron);
}

.cita {
  font-size: 14px;
  line-height: 23.8px;
  color: var(--emperor);
}

.testimonio-tag {
  padding: 5px 10px;
  background: var(--cello-7);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--chambray);
}

/* --- Imagen camión -------------------------------------------------------- */

.seccion-imagen {
  padding-top: 100px;
  padding-bottom: 100px;
}

.seccion-imagen img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
}

/* --- Lo que nos hace diferentes ------------------------------------------ */

.seccion-diferentes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding-top: 48px;
  padding-bottom: 80px;
}

.seccion-diferentes .seccion-header p {
  max-width: 351px;
}

.diferentes-grid {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 8px;
  width: 100%;
}

.diferente {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.diferente-icono {
  width: 100%;
  aspect-ratio: 140.75 / 115.75;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  background: var(--gris-icono);
  border-radius: 10px;
}

.diferente-icono img {
  max-height: 60%;
  width: auto;
}

.diferente p {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  color: #000;
}

/* --- Diseñado para empresarios -------------------------------------------- */

.seccion-empresarios {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.lista-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 692px;
  width: 100%;
  padding-top: 9px;
}

.lista-checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 17px;
  line-height: 28px;
  color: var(--emperor);
}

.lista-checks img {
  flex-shrink: 0;
  margin-top: 5px;
}

/* --- CTA final -------------------------------------------------------------- */

.seccion-cta {
  padding-top: 50px;
  padding-bottom: 100px;
}

.cta-caja {
  position: relative;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 65px 40px 34px;
  border-radius: 10px;
  overflow: hidden;
  background: url('../assets/img-cta.jpg') center / cover no-repeat;
}

.cta-caja::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  mix-blend-mode: color-burn;
}

.cta-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 310px;
}

.cta-copy h3 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.09;
  letter-spacing: -0.64px;
  color: var(--blanco);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  min-height: 190px;
  padding: 31px 40px;
  background: var(--fondo-footer);
}

.logo-footer {
  width: 358px;
  height: auto;
  flex-shrink: 1;
  min-width: 0;
}

.footer-derecha {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  align-self: stretch;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.15;
}

.footer-contactos {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 167px;
}

.footer-label {
  color: var(--gris-parrafo);
  margin-bottom: 10px;
}

.footer-contactos a {
  color: #000;
}

.footer-contactos a:hover {
  text-decoration: underline;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--gris-parrafo);
  white-space: nowrap;
}

/* ==========================================================================
   Página legal (legal.html)
   ========================================================================== */

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  background: var(--cello);
}

.legal-contenido {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 40px 80px;
}

.legal-contenido section + section {
  margin-top: 70px;
}

.legal-contenido h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 400;
  line-height: 1.058;
  letter-spacing: -0.7px;
  color: var(--azul-noche);
  margin-bottom: 8px;
}

.legal-intro {
  font-size: 13px;
  font-weight: 500;
  color: var(--gris-parrafo);
  margin-bottom: 28px;
}

.legal-contenido h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--big-stone);
  margin: 28px 0 8px;
}

.legal-contenido p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--emperor);
}

.legal-contenido a {
  color: var(--chambray);
  text-decoration: underline;
}

.legal-footer {
  align-items: flex-end;
}

.footer-legal a {
  color: var(--gris-parrafo);
}

.footer-legal a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   WhatsApp flotante (solo tablet y móvil)
   ========================================================================== */

.whatsapp-flotante {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  background: var(--saffron);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(13, 26, 42, 0.35);
  transition: transform 0.15s ease;
}

.whatsapp-flotante:hover {
  transform: scale(1.06);
}

.whatsapp-flotante img {
  width: 28px;
  height: 28px;
}

/* ==========================================================================
   Desktop estrecho (1025–1200px): la columna blanca queda angosta
   ========================================================================== */

@media (min-width: 1025px) and (max-width: 1200px) {
  .testimonios {
    flex-direction: column;
    align-items: center;
  }

  .testimonio {
    flex: 0 0 auto;
    width: min(360px, 100%);
  }

  .diferentes-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }

  .diferente {
    flex: 0 0 calc(50% - 15px);
  }
}

/* ==========================================================================
   Tablet (≤ 1024px): la columna azul pasa a cabecera
   ========================================================================== */

@media (max-width: 1024px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 20px 40px;
    gap: 50px;
  }

  /* En tablet/móvil el bloque de WhatsApp del sidebar se sustituye
     por el botón flotante */
  .sidebar-dudas {
    display: none;
  }

  .whatsapp-flotante {
    display: flex;
  }

  .sidebar-links {
    margin-top: 0;
  }

  .sidebar-hero h1 {
    max-width: none;
  }

  .sidebar-como {
    max-width: none;
  }

  .columna-derecha {
    margin-left: 0;
  }

  .seccion-imagen {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

/* ==========================================================================
   Móvil (≤ 640px)
   ========================================================================== */

@media (max-width: 640px) {
  :root {
    --pad-seccion: 20px;
  }

  .sidebar {
    padding: 20px 20px 30px;
    gap: 40px;
  }

  .sidebar-hero h1 {
    font-size: clamp(32px, 11vw, 40px);
    max-width: 300px;
  }

  .modulo p {
    font-size: 11px;
  }

  .seccion-hero {
    gap: 25px;
  }

  .video-etiquetas {
    left: 16px;
    right: 12px;
    bottom: 14px;
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .hero-tagline br {
    display: none;
  }

  .logo-grupo {
    gap: 32px;
    padding-right: 32px;
  }

  .bento {
    grid-template-columns: minmax(0, 330px);
  }

  .bento-label {
    white-space: normal;
  }

  .seccion-confianza {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .testimonios {
    flex-direction: column;
  }

  .testimonio {
    flex: 1 1 auto;
    width: 100%;
  }

  .seccion-imagen {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .seccion-imagen img {
    height: 400px;
  }

  .diferentes-grid {
    flex-direction: column;
    align-items: center;
  }

  .diferente {
    flex: 0 0 auto;
    width: 140px;
  }

  .diferente-icono {
    aspect-ratio: 335 / 250;
  }

  .seccion-empresarios {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .lista-checks li {
    font-size: 13px;
    line-height: 1.4;
    align-items: flex-start;
  }

  .lista-checks img {
    margin-top: 1px;
  }

  .seccion-cta {
    padding-top: 40px;
    padding-bottom: 100px;
  }

  .cta-caja {
    padding: 65px 20px 34px;
  }

  .legal-header {
    padding: 20px;
  }

  .legal-contenido {
    padding: 40px 20px 60px;
  }

  .footer {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 48px;
  }

  .footer-derecha {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
  }

  .logo-footer {
    width: min(334px, 100%);
  }
}
