/* ==========================================================================
   UBUNTU EXPERIENCE — Hoja de estilos
   Estructura: variables · base · navbar · hero · secciones · componentes · footer · responsive
   ========================================================================== */

:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --card: #161616;
  --card-2: #1c1c1c;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f5;
  --muted: rgba(245, 245, 245, 0.62);
  --muted-2: rgba(245, 245, 245, 0.45);
  --cream: #f5f5f5;
  --radius: 28px;
  --radius-sm: 18px;
  --maxw: 1200px;
  --serif: "Hedvig Letters Serif", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.serif { font-family: var(--serif); font-weight: 400; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -0.015em; }

.section { padding: 90px 0; }
.section-sm { padding: 56px 0; }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 620px;
}

.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 32px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.btn-primary { background: var(--cream); color: #0a0a0a; }
.btn-primary:hover { transform: translateY(-2px); opacity: 0.9; }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 32px);
  max-width: var(--maxw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px 20px;
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 40px;
}
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo img { width: 30px; height: 30px; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { font-size: 14px; font-weight: 500; color: var(--text); opacity: 0.9; transition: opacity 0.2s; }
.nav__links a:hover { opacity: 1; }
.nav__toggle { display: none; background: none; border: 0; color: var(--text); font-size: 24px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 0;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(10,10,10,0.85) 100%);
}
.hero__title {
  font-size: clamp(56px, 12vw, 132px);
  letter-spacing: -0.02em;
  text-shadow: 0 4px 40px rgba(0,0,0,0.4);
}
.hero__subtitle {
  margin-top: 6px;
  font-size: clamp(15px, 2.2vw, 20px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.hero__desc { margin: 26px auto 0; max-width: 640px; color: rgba(255,255,255,0.9); font-size: 17px; }
.hero__cta { margin-top: 30px; }

.hero__stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 22px 24px;
  background: linear-gradient(180deg, transparent, rgba(10,10,10,0.6));
  text-align: center;
}
.hero__stats span { font-family: var(--serif); font-size: clamp(18px, 3vw, 30px); }

/* ---------- Bloque de texto grande ---------- */
.statement { text-align: center; }
.statement h2 { font-size: clamp(30px, 5vw, 56px); max-width: 900px; margin: 0 auto; }
.statement .lead { margin: 22px auto 0; }
.big-quote { font-size: clamp(40px, 8vw, 96px); letter-spacing: -0.01em; }

/* ---------- Imagen ancha ---------- */
.wide-img { border-radius: var(--radius); overflow: hidden; }
.wide-img img { width: 100%; height: clamp(260px, 40vw, 460px); object-fit: cover; }

/* ---------- Pilar (imagen + tarjeta) ---------- */
.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.pillar--reverse { direction: rtl; }
.pillar--reverse > * { direction: ltr; }
.pillar__media { min-height: 380px; }
.pillar__media img { width: 100%; height: 100%; object-fit: cover; }
.pillar__body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.pillar__icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  margin-bottom: 16px;
}
.pillar__body h3 { font-size: clamp(26px, 3.4vw, 38px); margin: 6px 0 16px; }
.pillar__body p { color: var(--muted); font-size: 16px; }
.pillar__body .btn { margin-top: 26px; align-self: flex-start; }

/* ---------- Rejilla de tarjetas imagen + título ---------- */
.thumb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.thumb {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.thumb figcaption { padding: 16px 18px; font-family: var(--serif); font-size: 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
a.thumb { transition: transform 0.2s ease, border-color 0.2s ease; }
a.thumb:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.22); }
a.thumb figcaption::after { content: "→"; opacity: 0; transform: translateX(-6px); transition: opacity 0.2s, transform 0.2s; }
a.thumb:hover figcaption::after { opacity: 0.7; transform: none; }
a.thumb img { transition: transform 0.4s ease; }
a.thumb:hover img { transform: scale(1.04); }

/* ---------- Galería / carrusel ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide {
  position: relative;
  flex: 0 0 min(88%, 520px);
  scroll-snap-align: center;
  border-radius: var(--radius); overflow: hidden;
}
.carousel__slide img { width: 100%; height: clamp(320px, 42vw, 480px); object-fit: cover; }
.carousel__slide .tag {
  position: absolute; left: 16px; bottom: 16px;
  padding: 7px 16px; border-radius: 24px;
  background: rgba(10,10,10,0.55); backdrop-filter: blur(8px);
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
}
.carousel__nav { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.carousel__btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--text); font-size: 18px; cursor: pointer;
  display: grid; place-items: center; transition: background 0.2s;
}
.carousel__btn:hover { background: rgba(255,255,255,0.14); }

/* ---------- Rejilla de beneficios (icono + texto) ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.benefit { text-align: center; }
.benefit__icon {
  width: 56px; height: 56px; border-radius: 50%;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  background: var(--card-2); border: 1px solid var(--border);
}
.benefit h4 { font-family: var(--serif); font-size: 22px; margin-bottom: 10px; }
.benefit p { color: var(--muted); font-size: 15px; max-width: 300px; margin: 0 auto; }

/* ---------- Equipo (bento de 3 columnas por persona) ---------- */
.team { display: flex; flex-direction: column; gap: 22px; }
.team__row {
  display: grid;
  grid-template-columns: 1.7fr 1fr 0.9fr;
  gap: 22px;
  min-height: 360px;
}
.team__row--reverse { grid-template-columns: 0.9fr 1fr 1.7fr; }

/* Tarjeta principal: foto grande con nombre y descripción */
.team__main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: block;
}
.team__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team__main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.9)); }
.team__main .team__text { position: relative; z-index: 2; padding: 30px; display: flex; flex-direction: column; height: 100%; justify-content: space-between; }
.team__main .eyebrow { color: rgba(255,255,255,0.75); }
.team__main h3 { font-size: clamp(24px, 3vw, 32px); margin-top: 4px; }
.team__main p { color: rgba(255,255,255,0.85); font-size: 15px; margin-top: auto; max-width: 90%; }

/* Tarjeta central: logo + botón "+" (enlace) */
.team__logo {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  display: grid;
  place-items: center;
}
.team__logo img { width: 74px; height: 74px; opacity: 0.9; }
.team__plus {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  color: var(--text); font-size: 22px; line-height: 1;
  display: grid; place-items: center; transition: background 0.2s, transform 0.2s;
}
.team__plus:hover { background: rgba(255,255,255,0.18); transform: rotate(90deg); }

/* Tarjeta de retrato */
.team__portrait { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.team__portrait img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Página de artículo ---------- */
.article { padding-top: 130px; }
.article__hero {
  border-radius: var(--radius); overflow: hidden; margin-bottom: 40px;
  max-height: 420px;
}
.article__hero img { width: 100%; height: clamp(240px, 40vw, 420px); object-fit: cover; }
.article__body { max-width: 760px; margin: 0 auto; }
.article__body h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 26px; }
.article__body h2 { font-size: clamp(22px, 3vw, 28px); margin: 34px 0 14px; }
.article__body p { color: var(--muted); font-size: 17px; margin-bottom: 14px; }
.article__body ul { list-style: none; margin: 6px 0 20px; padding: 0; }
.article__body li {
  color: var(--muted); font-size: 17px; padding: 8px 0 8px 26px; position: relative;
  border-bottom: 1px solid var(--border);
}
.article__body li::before { content: "→"; position: absolute; left: 0; color: var(--text); opacity: 0.6; }
.article__actions { max-width: 760px; margin: 44px auto 0; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Formulario de contacto ---------- */
.form-wrap { max-width: 720px; margin: 0 auto; }
.form-steps { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 12px; }
.form-steps li { color: var(--muted); padding-left: 30px; position: relative; }
.form-steps li::before {
  content: counter(step); counter-increment: step;
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%; font-size: 12px;
  background: var(--card-2); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--text);
}
.form-steps { counter-reset: step; }
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  font-family: var(--sans); font-size: 15px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: rgba(255,255,255,0.3); }
.field textarea { resize: vertical; min-height: 110px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 13px; color: var(--muted-2); margin-top: 4px; }

/* ---------- Tabla incluye / no incluye ---------- */
.compare {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare__head, .compare__row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  align-items: center;
}
.compare__head { background: var(--card); font-family: var(--serif); font-size: 18px; }
.compare__head > div, .compare__row > div { padding: 16px 22px; }
.compare__head > div + div, .compare__row > div + div { text-align: center; border-left: 1px solid var(--border); }
.compare__row { border-top: 1px solid var(--border); font-size: 15px; }
.compare__row .yes { color: #b9f3c8; }
.compare__row .no { color: var(--muted-2); }
.compare__col--hi { background: rgba(255,255,255,0.03); }

/* ---------- Documental ---------- */
.doc { text-align: center; }
.doc__media { position: relative; border-radius: var(--radius); overflow: hidden; margin-top: 30px; }
.doc__media img { width: 100%; height: clamp(280px, 42vw, 480px); object-fit: cover; opacity: 0.85; }
.doc__play {
  position: absolute; inset: 0; margin: auto;
  width: 78px; height: 78px; border-radius: 50%;
  background: rgba(245,245,245,0.92); color: #0a0a0a;
  display: grid; place-items: center; font-size: 26px;
  border: 0; cursor: pointer;
}

/* ---------- Footer ---------- */
.footer { position: relative; padding: 70px 0 40px; border-top: 1px solid var(--border); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; position: relative; z-index: 2; }
.footer__brand img { width: 34px; height: 34px; margin-bottom: 14px; }
.footer__brand p { color: var(--muted); font-size: 14px; }
.footer h5 { font-size: 14px; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; opacity: 0.85; }
.footer ul a:hover { opacity: 1; }
.footer__watermark {
  position: absolute; left: 0; right: 0; bottom: -18px;
  text-align: center; font-family: var(--serif);
  font-size: clamp(80px, 22vw, 260px);
  color: rgba(255,255,255,0.03);
  line-height: 1; pointer-events: none; user-select: none;
}
.footer__bottom { margin-top: 60px; display: flex; align-items: center; gap: 10px; color: var(--muted-2); font-size: 13px; position: relative; z-index: 2; }
.footer__bottom img { width: 20px; height: 20px; }

/* ---------- Utilidades de aparición ----------
   El contenido es visible por defecto. Solo se oculta/anima cuando JS añade
   la clase .js-reveal al <html>, de modo que si el JS falla nada queda invisible. */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; gap: 16px;
    position: absolute; top: 64px; left: 0; right: 0;
    padding: 20px; background: rgba(15,15,15,0.96);
    border: 1px solid var(--border); border-radius: 20px;
  }
  .pillar { grid-template-columns: 1fr; }
  .pillar--reverse { direction: ltr; }
  .pillar__media { min-height: 260px; }
  .thumb-grid { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; gap: 34px; }
  .team__row, .team__row--reverse { grid-template-columns: 1fr 1fr; }
  .team__main { grid-column: 1 / -1; min-height: 300px; }
  .team__row--reverse .team__main { order: -1; }
  .field--row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .compare__head, .compare__row { grid-template-columns: 1.4fr 0.6fr 0.6fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
