/* =========================================================================
   Call2World — hoja de estilos única
   Réplica estática de www.call2w.com. Sin dependencias externas.
   ========================================================================= */

/* ---------- Tipografía autoalojada (Gabarito variable 400–900) ---------- */
@font-face {
  font-family: 'Gabarito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fuentes/gabarito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Gabarito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fuentes/gabarito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Variables de marca ---------- */
:root {
  --naranja: #ef351c;
  --naranja-hover: #dc321b;
  --rojo-cta: #d62e17;
  --azul: #00284c;
  --azul-claro: #1e4c76;
  --gris-fondo: #f8f8f8;
  --gris-texto: #828282;
  --gris-lista: #525252;
  --blanco: #fff;

  --ancho-contenido: 1100px;
  --alto-cabecera: 92px;
  --degradado-azul: linear-gradient(90deg, var(--azul) 0%, var(--azul-claro) 100%);
  --tipo: 'Gabarito', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--alto-cabecera);
}

body {
  margin: 0;
  font-family: var(--tipo);
  font-size: 17px;
  line-height: 24px;
  color: var(--azul);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video { max-width: 100%; }

img,
video { height: auto; display: block; }

a { color: var(--naranja); }
a:hover { color: var(--naranja-hover); }

:focus-visible {
  outline: 3px solid var(--naranja);
  outline-offset: 2px;
}

/* ---------- Titulares ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--tipo);
  color: var(--naranja);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 15px;
}

h1 { font-size: 45px; line-height: 50px; }
h2 { font-size: 35px; line-height: 40px; }
h3 { font-size: 30px; line-height: 35px; }
h5 { font-size: 22px; line-height: 26px; }

p { margin: 0 0 15px; }
p:last-child { margin-bottom: 0; }

ul {
  margin: 10px 0 10px 20px;
  padding: 0;
  list-style-position: outside;
  color: var(--gris-lista);
}

/* ---------- Utilidades ---------- */
.contenedor {
  width: 100%;
  max-width: var(--ancho-contenido);
  margin: 0 auto;
  padding: 0 20px;
}

.columna-900 { max-width: 900px; margin: 0 auto; }
.columna-670 { max-width: 670px; margin: 0 auto; }

.centrado { text-align: center; }
.texto-pequeno { font-size: 15px; line-height: 18px; }

.subtitulo {
  font-size: 30px;
  line-height: 34px;
  font-weight: 400;
}

.solo-lectores {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.salto-contenido {
  position: absolute;
  left: 20px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--naranja);
  color: var(--blanco);
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top .2s;
}
.salto-contenido:focus {
  top: 0;
  color: var(--blanco);
}

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--azul);
  transition: background-color .3s ease;
}

/* Sobre el hero arranca transparente y se vuelve azul al hacer scroll */
.cabecera--sobre-hero {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
}
.cabecera--sobre-hero.esta-fija { background: var(--azul); }

.cabecera__interior {
  max-width: var(--ancho-contenido);
  margin: 0 auto;
  padding: 0 20px;
}

/* Fila superior: selector de idioma */
.idiomas {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  padding: 6px 0 0;
  list-style: none;
  color: var(--blanco);
}
.idiomas a {
  display: block;
  padding: 2px 5px;
  color: var(--blanco);
  font-size: 13px;
  line-height: 18px;
  text-decoration: none;
}
.idiomas a:hover { color: var(--naranja); }
.idiomas [aria-current='true'] { color: var(--naranja); }

/* Fila inferior: logo + menú */
.cabecera__barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
}

.cabecera__logo { display: block; line-height: 0; }
.cabecera__logo img { width: 250px; height: 49px; }

.menu ul {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu a {
  color: var(--blanco);
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
}
.menu a:hover { color: var(--naranja); }
.menu [aria-current='page'] { color: var(--naranja); }

.hamburguesa {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.hamburguesa span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--blanco);
  transition: transform .25s, opacity .25s;
}
.hamburguesa[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburguesa[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.hamburguesa[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero de la portada ---------- */
.hero {
  position: relative;
  min-height: 550px;
  display: flex;
  align-items: center;
  padding: var(--alto-cabecera) 0 40px;
  background-color: var(--azul);
  background-image: image-set(
    url('../img/hero-portada-1920.webp') type('image/webp'),
    url('../img/hero-portada-1920.jpg') type('image/jpeg'));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero__titulo {
  margin: 0;
  color: var(--blanco);
  font-size: 60px;
  line-height: 62px;
  font-weight: 500;
}

/* ---------- Sección "Sobre nosotros" ---------- */
.sobre {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--blanco);
}

.sobre__imagen {
  min-height: 500px;
  background-color: var(--azul);
  background-image: image-set(
    url('../img/sobre-nosotros-1200.webp') type('image/webp'),
    url('../img/sobre-nosotros-1200.jpg') type('image/jpeg'));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.sobre__texto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 20px 60px 60px;
}
.sobre__texto > div { max-width: 600px; }
.sobre__texto p {
  font-size: 19px;
  line-height: 26px;
}

/* ---------- Banda de cifras ---------- */
.cifras {
  padding: 80px 0 50px;
  background: var(--azul);
}
.cifras__lista {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cifras__dato { text-align: center; }
.cifras__numero {
  margin: 0 0 10px;
  color: var(--naranja);
  font-size: 45px;
  line-height: 50px;
  font-weight: 500;
}
.cifras__etiqueta {
  margin: 0;
  color: var(--blanco);
  font-size: 15px;
  line-height: 18px;
}

/* ---------- Nuestras empresas ---------- */
.empresas {
  padding: 80px 0 50px;
  background: var(--gris-fondo);
}
.empresas__titulo {
  margin-bottom: 50px;
  text-align: center;
}

/* Los títulos de sección conservan el tamaño de h1 del original (45px)
   sin necesidad de repetir <h1> en la misma página. */
.titulo-seccion {
  font-size: 45px;
  line-height: 50px;
}

.empresa {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 30px;
  align-items: start;
  margin-bottom: 80px;
}
.empresa:last-child { margin-bottom: 0; }

.empresa__logo {
  width: 100%;
  border-radius: 6px;
}
.empresa__enlace { margin-top: 15px; }
.empresa__enlace a { text-decoration: none; }
.empresa__enlace a:hover { text-decoration: underline; }

/* ---------- Novedades ---------- */
.novedades {
  padding: 80px 0 50px;
  background: var(--azul);
}
.novedades__titulo {
  margin-bottom: 50px;
  color: var(--blanco);
  text-align: center;
}
.novedades__lista {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.novedad {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 30px;
  background: var(--gris-fondo);
  border-radius: 25px;
}
.novedad h3 { margin-bottom: 10px; }
.novedad p {
  color: var(--azul);
  font-size: 15px;
  line-height: 20px;
}

/* ---------- Contacto ---------- */
.contacto {
  padding: 80px 0;
  background: var(--blanco);
  text-align: center;
}
.contacto__titulo { margin-bottom: 15px; }
.contacto p { font-size: 17px; }

/* ---------- Pie ---------- */
.pie {
  padding: 40px 0;
  background: var(--gris-fondo);
  color: var(--gris-texto);
  text-align: center;
}
.pie p {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 22px;
}
.pie p:last-child { margin-bottom: 0; }
.pie a { text-decoration: underline; }
.pie a:hover { color: var(--azul); }

/* =========================================================================
   Páginas legales
   ========================================================================= */
.legal {
  padding: 40px 0 80px;
  background: var(--gris-fondo);
}
.legal__caja {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}
.legal h1 { margin: 30px 0 25px; }
/* Apartados numerados del texto legal (en el original eran <h5>) */
.legal h2 {
  margin: 30px 0 12px;
  text-transform: uppercase;
  font-size: 17px;
  line-height: 22px;
  font-weight: 700;
}
.legal h2 b { font-weight: 700; }
.legal p,
.legal li {
  color: var(--azul);
  font-size: 17px;
  line-height: 26px;
}
.legal p { margin: 0 0 18px; }
.legal ul { margin: 0 0 18px 20px; }
.legal li { margin-bottom: 10px; }

.boton-volver {
  display: inline-block;
  padding: 11px 24px;
  background: var(--naranja);
  color: var(--blanco);
  border-radius: 100px;
  font-weight: 500;
  text-decoration: none;
}
.boton-volver:hover {
  background: var(--naranja-hover);
  color: var(--blanco);
}

/* =========================================================================
   Página Call2World Ventures
   ========================================================================= */
.boton {
  display: inline-block;
  padding: 11px 26px;
  background: var(--naranja);
  color: var(--blanco);
  border: 1px solid var(--naranja);
  border-radius: 100px;
  font-size: 17px;
  line-height: 24px;
  font-weight: 500;
  text-decoration: none;
}
.boton:hover {
  background: var(--naranja-hover);
  border-color: var(--naranja-hover);
  color: var(--blanco);
}
.boton--inactivo {
  background: var(--naranja);
  opacity: .75;
  cursor: default;
}
.boton--sobre-rojo {
  background: var(--blanco);
  border-color: var(--blanco);
  color: var(--rojo-cta);
}
.boton--sobre-rojo:hover {
  background: var(--gris-fondo);
  border-color: var(--gris-fondo);
  color: var(--rojo-cta);
}

.botonera {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

/* Hero con vídeo */
.hero-video {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 510px;
  padding: calc(var(--alto-cabecera) + 40px) 0 60px;
  overflow: hidden;
  /* El póster va de fondo: sin JS ni vídeo la sección se ve igual. */
  background-color: #071d33;
  background-image: image-set(
    url('../img/ventures-poster-1280.webp') type('image/webp'),
    url('../img/ventures-poster-1280.jpg') type('image/jpeg'));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.hero-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-video__contenido {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--ancho-contenido);
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  color: var(--blanco);
}
.hero-video__titulo {
  margin: 0 0 10px;
  color: var(--blanco);
  font-size: 55px;
  line-height: 62px;
  font-weight: 500;
}
.hero-video__subtitulo {
  margin: 0 auto;
  max-width: 720px;
  color: var(--blanco);
  font-size: 26px;
  line-height: 34px;
}

/* Bloques de sección */
.bloque { padding: 80px 0 50px; }
.bloque--claro { background: var(--gris-fondo); }
.bloque--blanco { background: var(--blanco); }
.bloque--azul {
  background: var(--azul);
  background-image: var(--degradado-azul);
  color: var(--blanco);
}
.bloque--azul h1,
.bloque--azul h2,
.bloque--azul h3 { color: var(--blanco); }
.bloque--rojo {
  padding: 60px 0;
  background: var(--rojo-cta);
  color: var(--blanco);
  text-align: center;
}
.bloque--rojo h2 {
  margin-bottom: 10px;
  color: var(--blanco);
  font-size: 45px;
  line-height: 50px;
}
.bloque--rojo p { font-size: 19px; }

.dos-columnas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Lista con separadores ("Este programa es para ti si") */
.lista-grande {
  margin: 0;
  padding: 0 0 0 20px;
  color: var(--azul);
}
.lista-grande li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #000;
  font-size: 20px;
  line-height: 26px;
}
.lista-grande li:last-child { border-bottom: 0; }

.requisitos {
  margin-top: 30px;
  color: var(--naranja);
  font-size: 15px;
  line-height: 20px;
}
.requisitos strong { display: block; }

/* Círculos "¿Qué buscamos?" (recreados en CSS, sin imágenes) */
.circulos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 520px;
}
.circulo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 50%;
  background: var(--degradado-azul);
  color: var(--blanco);
  font-size: 17px;
  line-height: 21px;
  font-weight: 700;
  text-align: center;
}

/* Fases del programa */
.fases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.fase img {
  width: 70px;
  height: auto;
  margin: 0 auto 15px;
}
.fase h3 {
  font-size: 22px;
  line-height: 26px;
  margin-bottom: 10px;
}
.fase p {
  font-size: 15px;
  line-height: 20px;
  color: var(--azul);
}
.fase__fecha {
  margin-top: 10px;
  font-weight: 700;
  color: var(--naranja);
}

/* Qué ofrecemos */
.ventajas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ventaja img {
  width: 70px;
  height: auto;
  margin-bottom: 15px;
}
.ventaja h3 {
  font-size: 26px;
  line-height: 30px;
  margin-bottom: 12px;
}
.ventaja ul {
  margin: 0;
  padding-left: 18px;
  color: var(--blanco);
}
.ventaja li {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 21px;
}

/* Mentores */
.mentores {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.mentor img {
  width: 130px;
  height: 130px;
  margin: 0 auto 15px;
  border-radius: 50%;
  object-fit: cover;
}
.mentor h3 {
  margin-bottom: 4px;
  color: var(--azul);
  font-size: 19px;
  line-height: 24px;
  font-weight: 500;
}
.mentor p {
  margin: 0;
  font-size: 14px;
  line-height: 19px;
  color: var(--gris-texto);
}
.mentor__cargo { color: var(--naranja); }

/* Partners */
.partners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.partner img {
  height: 60px;
  width: auto;
  margin: 0 auto 20px;
  object-fit: contain;
}
.partner p {
  font-size: 14px;
  line-height: 20px;
  color: var(--azul);
}

/* Bloque final "¿Quieres saber más?" */
.saber-mas { text-align: center; }
.saber-mas p { font-size: 19px; line-height: 27px; }
.saber-mas a { color: var(--blanco); }
.saber-mas a:hover { color: var(--gris-fondo); }
.saber-mas .destacado a { color: #ffb3a8; }

/* =========================================================================
   Animación de entrada (se desactiva sin JS y con reduce-motion)
   ========================================================================= */
.js .aparece {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .aparece.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .aparece {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-video__media { display: none; }
}

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

/* Tablet grande */
@media (max-width: 1100px) {
  .mentores { grid-template-columns: repeat(3, 1fr); }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .ventajas { grid-template-columns: repeat(2, 1fr); }
  .fases { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
}

/* Menú móvil */
@media (max-width: 1000px) {
  .cabecera--sobre-hero { background: var(--azul); }

  .hamburguesa { display: block; }

  .menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    background: var(--azul);
    border-top: 1px solid rgba(255, 255, 255, .15);
  }
  .menu.abierto { display: block; }
  .menu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
  }
  .menu li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .menu li:last-child { border-bottom: 0; }
  .menu a { display: block; padding: 14px 0; }

  .cabecera__interior { position: relative; }
}

/* Tablet / móvil */
@media (max-width: 860px) {
  .sobre { grid-template-columns: 1fr; }
  .sobre__imagen {
    min-height: 300px;
    background-image: image-set(
      url('../img/sobre-nosotros-800.webp') type('image/webp'),
      url('../img/sobre-nosotros-800.jpg') type('image/jpeg'));
  }
  .sobre__texto { padding: 50px 20px; }
  .sobre__texto > div { max-width: none; }

  .cifras__lista { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }

  .empresa { grid-template-columns: 1fr; gap: 20px; }
  .empresa__logo { max-width: 380px; }

  .novedades__lista { grid-template-columns: 1fr; }
  .novedad { min-height: 0; }

  .dos-columnas { grid-template-columns: 1fr; gap: 50px; }
  .circulos { max-width: none; }
  .mentores { grid-template-columns: repeat(2, 1fr); }
  .ventajas { grid-template-columns: 1fr; gap: 40px; }
}

/* Móvil */
@media (max-width: 600px) {
  h1 { font-size: 36px; line-height: 42px; }
  h2 { font-size: 30px; line-height: 32px; }
  h3 { font-size: 25px; line-height: 28px; }
  .subtitulo { font-size: 22px; line-height: 26px; }

  .cabecera__logo img { width: 190px; height: 37px; }

  .titulo-seccion { font-size: 36px; line-height: 42px; }

  .hero {
    min-height: 400px;
    padding: var(--alto-cabecera) 0 30px;
    background-image: image-set(
      url('../img/hero-portada-800.webp') type('image/webp'),
      url('../img/hero-portada-800.jpg') type('image/jpeg'));
  }
  .hero__titulo { font-size: 36px; line-height: 42px; }

  .cifras,
  .empresas,
  .novedades,
  .contacto,
  .bloque { padding: 50px 0 40px; }

  .cifras__numero { font-size: 36px; line-height: 42px; }

  .hero-video {
    min-height: 420px;
    padding: calc(var(--alto-cabecera) + 30px) 0 40px;
    background-image: image-set(
      url('../img/ventures-poster-800.webp') type('image/webp'),
      url('../img/ventures-poster-800.jpg') type('image/jpeg'));
  }
  .hero-video__titulo { font-size: 34px; line-height: 40px; }
  .hero-video__subtitulo { font-size: 19px; line-height: 26px; }

  .bloque--rojo h2 { font-size: 32px; line-height: 38px; }

  .fases,
  .circulos { grid-template-columns: repeat(2, 1fr); }
  .mentores,
  .partners { grid-template-columns: 1fr; }

  .lista-grande li { font-size: 18px; line-height: 24px; }

  .legal h1 { font-size: 32px; line-height: 38px; }
}

/* Móvil estrecho: "Telecomunicaciones" no cabe a 36px en 320px de ancho */
@media (max-width: 400px) {
  .cabecera__logo img { width: 165px; height: 32px; }
  .circulo { font-size: 15px; line-height: 19px; }

  .hero__titulo { font-size: 28px; line-height: 34px; }
  .hero-video__titulo { font-size: 28px; line-height: 34px; }
  .cifras__numero { font-size: 32px; line-height: 38px; }
  .novedad { padding: 24px; }
  .legal__caja,
  .contenedor { padding: 0 16px; }
}

/* En pantallas altas el hero de escritorio usa la imagen intermedia */
@media (min-width: 601px) and (max-width: 1280px) {
  .hero {
    background-image: image-set(
      url('../img/hero-portada-1280.webp') type('image/webp'),
      url('../img/hero-portada-1280.jpg') type('image/jpeg'));
  }
}

@media print {
  .cabecera, .hamburguesa, .salto-contenido, .boton-volver { display: none !important; }
  body { color: #000; }
}
