/* ===== Colores y medidas ===== */
:root {
  --azul: #1e6cb6;
  --rojo: #d93a2f;
  --gris-oscuro: #262e38;
  --negro: #181a1c;
  --casi-negro: #0a0909;
  --blanco: #ffffff;
  --texto: #0a0909;
  --texto-suave: #5f5f5f;
  --header-h: 90px;
  --marino: #0b2d6c;
  --dorado: #c9a24a;
  --dorado-claro: #e8c97a;
  --ancho: 1300px;
  /* Sin imagen por defecto: cada elemento define la suya en el HTML */
  --img: none;
  --bg: none;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-entrada: cubic-bezier(0.33, 1, 0.68, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* Foco de teclado visible */
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .band :focus-visible, .side-menu :focus-visible, .row-block :focus-visible, .gallery :focus-visible { outline-color: var(--blanco); }

.container {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 60px);
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  border-radius: 6px;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-jumbo { padding: 22px 52px; font-size: 18px; }
.btn-small { padding: 12px 24px; font-size: 14px; }
.btn-see-through { color: var(--blanco); border: 2px solid rgba(255,255,255,.75); }
.btn-blue { background: var(--azul); color: var(--blanco); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.btn-red { background: var(--rojo); color: var(--blanco); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.arrow { display: inline-block; transition: transform 200ms var(--ease-out); }

/* ===== Títulos ===== */
.title-blue {
  color: var(--azul);
  font-size: clamp(30px, 3vw, 52px);
  line-height: 1.1;
  font-weight: 500;
}
.title-big {
  color: var(--azul);
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.19;
  font-weight: 500;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

/* Título que sube palabra por palabra (cada palabra con su máscara) */
.split-heading .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-heading .w > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 900ms var(--ease-entrada);
  transition-delay: calc(var(--i) * 70ms);
}
.split-heading.visible .w > span { transform: none; }

/* ===== Encabezado ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--blanco);
  transition: transform 300ms var(--ease-out), box-shadow 200ms ease;
}
.header.scrolled { box-shadow: 0 0 20px rgba(0,0,0,.08); }
.header.hidden { transform: translateY(-100%); }
.header-inner {
  height: 100%;
  padding: 0 clamp(16px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; height: 100%; transform-origin: left center; transition: transform 200ms var(--ease-out); }
.header.scrolled .logo { transform: scale(0.88); }
.logo-img { display: block; width: auto; height: 54px; border-radius: 8px; }
.logo-text {
  display: flex; flex-direction: column;
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: .06em;
  color: var(--marino);
}
.logo-text small { font-family: 'Roboto', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: .5em; color: var(--dorado); margin-top: 6px; }
.nav { display: flex; gap: 38px; height: 100%; }
.nav a {
  position: relative;
  display: flex; align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--texto);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 28px;
  width: 100%; height: 2px;
  background: var(--azul);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms var(--ease-out);
}
.nav a.active { color: var(--azul); }
.nav a.active::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
}
.menu-toggle span { display: block; height: 2px; background: var(--texto); border-radius: 2px; }

/* Menú lateral */
.side-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 85vw);
  height: 100%;
  background: var(--azul);
  z-index: 100;
  padding: 100px 50px;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 250ms var(--ease-out), visibility 0s linear 250ms;
}
.side-menu.open { visibility: visible; transform: none; transition: transform 450ms var(--ease-drawer), visibility 0s; }
.side-menu nav { display: flex; flex-direction: column; gap: 18px; }
.side-menu nav a { color: var(--blanco); font-size: 26px; font-weight: 500; opacity: 0; transform: translateX(16px); transition: opacity 150ms ease, transform 150ms ease; }
.side-menu.open nav a { opacity: 1; transform: none; transition: opacity 300ms ease, transform 400ms var(--ease-out); }
.side-menu.open nav a:nth-child(2) { transition-delay: 50ms; }
.side-menu.open nav a:nth-child(3) { transition-delay: 100ms; }
.side-menu.open nav a:nth-child(4) { transition-delay: 150ms; }
.side-close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: none; border: 0; color: var(--blanco);
  font-size: 40px; cursor: pointer; line-height: 1;
}
.side-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 90;
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease;
}
.side-overlay.open { opacity: 1; pointer-events: auto; }

/* ===== 1. Hero: pantalla completa, foto con paralaje y degradado ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2vw) 0 calc(7vw + 120px);
  overflow: hidden;
  color: var(--blanco);
  background: var(--azul);
}
.hero-bg {
  position: absolute;
  inset: -10% 0 auto 0;
  height: 120%;
  background: var(--img) left top / cover no-repeat;
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(30,108,182,.94) 0%, rgba(51,51,51,.71) 100%);
  opacity: .95;
}
.hero-content { position: relative; z-index: 2; }
.hero-content > * { max-width: 66.6%; }
.hero h1 {
  font-size: clamp(44px, 5.6vw, 92px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -.01em;
}
.hero-row {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 30px;
  align-items: start;
  margin-top: 20px;
  max-width: 100%;
}
.hero-sub {
  font-size: 20px;
  line-height: 36px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  max-width: 760px;
}
.hero-cta { padding-top: 30px; }
.hero-waves {
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%;
  height: clamp(120px, 24vw, 350px);
  z-index: 1;
  fill: var(--blanco);
}

/* ===== 2. Sobre nosotros ===== */
.about { padding: 5vw 2vw 7vw; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.about-media {
  position: relative;
  padding-top: 80px;
  background: var(--img) center / cover no-repeat;
}
.about-text { padding-left: 7vw; padding-right: 2vw; }
.about-text h2 { font-size: max(32px, 3vw); line-height: 1.1; margin-bottom: 30px; }
.about-text p { font-size: max(16px, 1.1vw); line-height: 1.8; color: var(--texto-suave); margin-bottom: 18px; }
.about-text .btn { margin-top: 12px; }

/* Caja de video con botón play */
.video-box {
  position: relative;
  aspect-ratio: 3 / 2;
  background-color: var(--marino);
  background-image: var(--img), radial-gradient(circle at 70% 30%, rgba(201,162,74,.22), transparent 55%), linear-gradient(135deg, #0b2d6c 0%, #1e6cb6 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.about .video-box { aspect-ratio: 16 / 9; }
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  width: 90px; height: 90px;
  margin: -45px 0 0 -45px;
  border: 0;
  border-radius: 50%;
  background: var(--blanco);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  transition: transform 200ms var(--ease-out);
}
.play-btn::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.8);
  animation: pulso 2.4s var(--ease-out) infinite;
}
.play-btn span {
  width: 0; height: 0;
  margin-left: 5px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--azul);
}
.play-btn:active { transform: scale(0.95); }
@keyframes pulso {
  from { transform: scale(1); opacity: .9; }
  to { transform: scale(1.5); opacity: 0; }
}

/* ===== Carruseles ===== */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; }
.markets .carousel-viewport { overflow: visible; }
.carousel-track {
  display: flex;
  gap: var(--gap, 30px);
  transition: transform 600ms var(--ease-out);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.carousel-track > * {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap, 30px)) / var(--cols));
  transition: transform 300ms var(--ease-out);
}
.carousel-track.dragging { transition: none; cursor: grabbing; }
.carousel-track.dragging > * { transform: scale(0.95); }

.carousel-arrow {
  position: absolute;
  top: calc(50% - 30px);
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 0;
  background: var(--blanco);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: transform 160ms var(--ease-out), opacity 200ms ease, background-color 200ms ease;
}
.carousel-arrow svg { width: 22px; height: 22px; fill: none; stroke: var(--texto); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke 200ms ease; }
.carousel-arrow.prev { left: clamp(16px, 3vw, 40px); }
.carousel-arrow.next { right: clamp(16px, 3vw, 40px); }
.carousel-arrow:active { transform: scale(0.94); }
.carousel-arrow[disabled] { opacity: 0; pointer-events: none; }

/* Puntos estilo "material": el activo lleva un anillo */
.carousel-dots { display: flex; justify-content: center; gap: 4px; margin-top: 40px; }
.carousel-dots button {
  position: relative;
  width: 24px; height: 24px;
  border: 0; background: none; cursor: pointer;
}
.carousel-dots button::before {
  content: "";
  position: absolute; inset: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,.25);
  transition: background-color 200ms ease, transform 200ms var(--ease-out);
}
.carousel-dots button::after {
  content: "";
  position: absolute; inset: 2px;
  border-radius: 50%;
  border: 2px solid var(--azul);
  transform: scale(0.4);
  opacity: 0;
  transition: transform 250ms var(--ease-out), opacity 200ms ease;
}
.carousel-dots button.active::before { background: var(--azul); }
.carousel-dots button.active::after { transform: none; opacity: 1; }
.gallery .carousel-dots button::before { background: rgba(255,255,255,.3); }
.gallery .carousel-dots button.active::before { background: var(--blanco); }
.gallery .carousel-dots button::after { border-color: var(--blanco); }

/* ===== CEO ===== */
.leader { position: relative; padding: 7vw 0; background: #f4f6fa; overflow: hidden; }
.leader::before {
  content: "商";
  position: absolute;
  right: -2vw; top: 50%;
  transform: translateY(-50%);
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(260px, 34vw, 520px);
  line-height: 1;
  color: var(--marino);
  opacity: .05;
  pointer-events: none;
}
.leader-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 7vw;
  align-items: center;
}
.leader-photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 554 / 562;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(11,45,108,.22), 0 8px 20px rgba(0,0,0,.08);
}
.leader-photo { position: relative; isolation: isolate; }
.leader-photo::after {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 2px solid var(--dorado);
  border-radius: 20px;
  z-index: -1;
}
.leader-text h2 { margin-bottom: 26px; }
.leader-text { position: relative; }
.leader-name { font-family: 'Cinzel', 'Times New Roman', serif; font-size: clamp(26px, 2.4vw, 38px); font-weight: 700; line-height: 1.2; color: var(--marino); letter-spacing: .02em; }
.leader-role {
  margin: 14px 0 26px;
  padding-top: 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dorado);
  border-top: 2px solid var(--dorado);
  width: fit-content;
}
.leader-role span { margin: 0 6px; }
.leader-bio { font-size: max(17px, 1.15vw); line-height: 1.8; color: var(--texto-suave); max-width: 560px; }

/* ===== 3. Mercados ===== */
.markets { padding: 7vw 0 6vw; overflow: hidden; }
.markets .title-blue { margin-bottom: 50px; }
.markets .carousel { padding: 0 clamp(16px, 4vw, 60px); --gap: 30px; }
.fancy-box {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  color: var(--blanco);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
  border-radius: 6px;
}
.fancy-box.align-left { justify-content: flex-start; text-align: left; }
.fancy-box::before {
  content: "";
  position: absolute; inset: 0;
  background-color: var(--marino);
  background-image: var(--img), radial-gradient(circle at 75% 25%, rgba(201,162,74,.28), transparent 55%), linear-gradient(160deg, #1e6cb6 0%, #0b2d6c 70%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 700ms var(--ease-out);
}
.fancy-box::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.05) 55%);
  transition: background-color 300ms ease;
}
.fancy-inner { position: relative; z-index: 2; padding: 40px; max-width: 100%; }
.fancy-inner h3 { font-size: 26px; line-height: 1.2; font-weight: 500; transition: transform 350ms var(--ease-out); }
/* La descripción aparece al pasar el mouse (en celular queda siempre visible) */
.hover-desc {
  color: rgba(255,255,255,.9);
  max-height: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 250ms ease, transform 350ms var(--ease-out), max-height 350ms var(--ease-out);
}
@media (hover: none) {
  .hover-desc { max-height: 120px; opacity: 1; transform: none; margin-top: 8px; }
}

/* ===== Sector energía: fotos con su contexto ===== */
.sector { padding: 2vw 0 7vw; }
.sector-head {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 30px 7vw;
  align-items: end;
  margin-bottom: 44px;
}
.sector-kanji { font-family: 'Noto Serif JP', serif; font-size: 18px; letter-spacing: .3em; color: var(--dorado); margin-bottom: 10px; }
.sector-intro { font-size: max(16px, 1.1vw); line-height: 1.8; color: var(--texto-suave); max-width: 640px; }
.sector figure { margin: 0; }
.sector img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 24px 48px rgba(11,45,108,.16);
}
.sector-wide img { aspect-ratio: 1920 / 559; object-fit: cover; }
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.sector-grid img { aspect-ratio: 4 / 3; object-fit: cover; }
.sector figcaption {
  margin-top: 16px;
  padding-left: 14px;
  border-left: 3px solid var(--dorado);
  font-size: 15px;
  line-height: 1.6;
  color: var(--texto-suave);
}
.sector figcaption strong {
  display: block;
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: 17px;
  letter-spacing: .03em;
  color: var(--marino);
  margin-bottom: 2px;
}

/* ===== 4. Franja azul ===== */
.band { background: var(--azul); color: var(--blanco); padding: 70px 0; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.band h3 { font-size: clamp(22px, 2vw, 30px); line-height: 1.4; font-weight: 500; max-width: 820px; }
.band-link { font-size: 20px; font-weight: 500; white-space: nowrap; display: inline-flex; gap: 10px; }

/* ===== 5. Valores ===== */
.values { padding: 2px 0 10vw; }
.values .title-big { margin-top: 6vw; }
.cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.card {
  background: var(--azul);
  color: var(--blanco);
  text-align: center;
  padding: 3vw 2.4vw;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,.12), 0 8px 20px rgba(0,0,0,.08);
  transition: background-color 300ms ease, transform 250ms var(--ease-out);
}
.card-icon { width: 50px; height: 50px; fill: var(--blanco); margin: 0 auto 18px; }
.card h3 { font-size: 22px; font-weight: 500; margin-bottom: 10px; line-height: 1.3; }
.card p { color: rgba(255,255,255,.85); }

/* ===== 6. Galería ===== */
.gallery { background: var(--negro); padding: 6vw 0; overflow: hidden; }
.gallery .title-big { margin-bottom: 60px; }
.gallery-carousel { padding: 20px clamp(16px, 4vw, 60px) 0; --gap: 30px; }
/* El visor se agranda 28 px por lado (menos que el espacio entre fotos) para que la sombra no se corte */
.gallery-carousel .carousel-viewport { padding: 20px 28px 110px; margin: -20px -28px -90px; }
.gallery-cell {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background-color: var(--marino);
  background-image: var(--img), radial-gradient(circle at 70% 30%, rgba(201,162,74,.22), transparent 55%), linear-gradient(135deg, #0b2d6c 0%, #1e6cb6 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 45px 40px -12px rgba(0,0,0,.6), 0 12px 18px -6px rgba(0,0,0,.35);
}

/* ===== 7. Bloques alternados ===== */
.row-block {
  position: relative;
  padding: 10vw 0;
  background: var(--casi-negro) var(--bg) left top / cover no-repeat;
  color: var(--blanco);
}
.row-block::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gris-oscuro);
  opacity: .95;
}
.row-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2vw;
  align-items: stretch;
}
.row-media { display: flex; flex-direction: column; }
.row-grid .video-box { flex: 1; min-height: 320px; aspect-ratio: auto; }
/* Descripción del servicio debajo de cada video */
.video-desc {
  padding: 18px 22px 20px;
  background: rgba(11,45,108,.9);
  border-left: 4px solid var(--dorado);
}
.video-desc h4 { font-family: 'Cinzel', 'Times New Roman', serif; font-size: 20px; font-weight: 700; letter-spacing: .04em; color: var(--dorado-claro); line-height: 1.2; }
.video-desc p { margin-top: 6px; color: rgba(255,255,255,.88); font-size: 15px; line-height: 1.6; }
/* Espacio de video que todavía espera su video: insignia de la marca al centro */
.video-pendiente { display: grid; place-items: center; }
.video-pendiente::after {
  content: "";
  width: 96px; height: 81px;
  background: url('img/logo-emblema.png') center / contain no-repeat;
  border-radius: 10px;
  opacity: .85;
}
.row-text {
  background: var(--azul);
  padding: 6%;
  display: flex;
  align-items: center;
}
.row-text h3 { font-size: 26px; line-height: 36px; font-weight: 400; }

/* ===== 8. Cierre ===== */
.closing { padding: 6vw 0; text-align: center; }
.closing-logo {
  display: block;
  width: min(420px, 100%);
  height: auto;
  margin: 0 auto 40px;
  border-radius: 6px;
  box-shadow: 0 30px 60px rgba(11,45,108,.25);
}
.closing h3 {
  color: var(--azul);
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.3;
  font-weight: 500;
  max-width: 700px;
  margin: 0 auto;
}
.closing p { margin: 20px auto 0; max-width: 700px; color: var(--texto-suave); font-size: 18px; }
.closing .btn { margin-top: 30px; }

/* ===== Pie ===== */
.footer { background: var(--marino); color: rgba(255,255,255,.7); padding: 0 0 30px; font-size: 14px; }
.footer-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px 60px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 40px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(201,162,74,.35);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { height: 60px; width: auto; border-radius: 8px; }
.footer-brand span { display: flex; flex-direction: column; font-family: 'Cinzel', serif; font-weight: 700; font-size: 24px; letter-spacing: .06em; color: var(--blanco); line-height: 1; }
.footer-brand small { font-family: 'Roboto', sans-serif; font-size: 12px; letter-spacing: .5em; color: var(--dorado); margin-top: 6px; }
.footer-motto { color: rgba(255,255,255,.8); font-size: 16px; max-width: 420px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-nav a { color: var(--blanco); font-weight: 500; transition: color 200ms ease; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 30px; }
.credits { font-size: 12px; color: rgba(255,255,255,.5); }

/* ===== Flotantes ===== */
.to-top {
  position: fixed;
  right: 30px; bottom: 105px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(0,0,0,.25);
  display: grid; place-items: center;
  z-index: 40;
  opacity: 0; pointer-events: none;
  transform: translateY(8px) scale(0.95);
  transition: opacity 200ms ease, transform 200ms var(--ease-out), background-color 200ms ease;
}
.to-top svg { width: 22px; height: 22px; fill: none; stroke: var(--blanco); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:active { transform: scale(0.95); }
.whatsapp {
  position: fixed;
  right: 30px; bottom: 30px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgb(45,183,66);
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  z-index: 40;
  transition: transform 200ms var(--ease-out);
}
.whatsapp svg { width: 32px; height: 32px; fill: var(--blanco); }
.whatsapp:active { transform: scale(0.95); }

/* ===== Ventana de video ===== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 200;
  display: grid; place-items: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 150ms ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; transition: opacity 250ms ease; }
.lightbox-frame { width: min(1000px, 100%); aspect-ratio: 16 / 9; background: #000; transform: scale(0.96); transition: transform 150ms ease; }
.lightbox.open .lightbox-frame { transform: none; transition: transform 300ms var(--ease-out); }
.lightbox-frame video { width: 100%; height: 100%; }
.lightbox-msg { color: #fff; display: grid; place-items: center; height: 100%; padding: 20px; text-align: center; }
.lightbox-close { position: absolute; top: 20px; right: 30px; width: 44px; height: 44px; background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; }

/* ===== Detalles de marca ===== */
.hero-kanji {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(16px, 1.4vw, 22px);
  letter-spacing: .35em;
  color: var(--dorado-claro);
  margin-bottom: 18px;
}
.hero-kanji span { margin: 0 .2em; opacity: .7; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 64px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(232,201,122,.4);
  max-width: 100%;
}
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dd { font-family: 'Cinzel', serif; font-size: clamp(36px, 3.4vw, 54px); font-weight: 700; color: var(--dorado-claro); line-height: 1; font-variant-numeric: tabular-nums; }
.hero-stats dt { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.8); margin-top: 8px; }

.kanji-badge {
  position: absolute;
  top: 22px; left: 22px;
  z-index: 2;
  padding: 8px 12px;
  border: 1px solid rgba(232,201,122,.7);
  border-radius: 4px;
  background: rgba(11,45,108,.55);
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: .1em;
  color: var(--dorado-claro);
}
.fancy-box.align-left .kanji-badge { left: auto; right: 22px; }
/* Botón play dentro de una tarjeta de mercado */
.card-play { z-index: 3; top: 42%; width: 76px; height: 76px; margin: -38px 0 0 -38px; }

/* Logo como marca de agua en cada video */
.video-logo {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 2;
  width: auto; height: 46px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
  pointer-events: none;
}
.lightbox-frame { position: relative; }
.lightbox-frame .video-logo { top: 16px; left: 16px; height: 54px; opacity: .92; }

/* ===== Hover solo con mouse ===== */
@media (hover: hover) and (pointer: fine) {
  .btn-see-through:hover { background: var(--rojo); border-color: var(--rojo); }
  .btn-blue:hover, .btn-red:hover { box-shadow: 0 12px 26px rgba(0,0,0,.2); }
  .btn:hover .arrow, .band-link:hover .arrow { transform: translateX(4px); }
  .nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .side-menu nav a:hover { opacity: .7; }
  .play-btn:hover { transform: scale(1.06); }
  .fancy-box:hover::before { transform: scale(1.06); }
  .fancy-box:hover .hover-desc { max-height: 120px; opacity: 1; transform: none; margin-top: 8px; }
  .card:hover { background: var(--rojo); }
  .carousel-arrow:hover { background: var(--azul); }
  .carousel-arrow:hover svg { stroke: var(--blanco); }
  .to-top:hover { background: var(--azul); }
  .whatsapp:hover { transform: scale(1.05); }
  .footer-nav a:hover { color: var(--dorado-claro); }
}

/* ===== Animaciones de entrada (como las columnas del original) ===== */
.anim { opacity: 0; transition: opacity 750ms var(--ease-entrada), transform 750ms var(--ease-entrada); transition-delay: var(--delay, 0ms); }
.anim[data-anim="up"] { transform: translateY(50px); }
.anim[data-anim="left"] { transform: translateX(-60px); }
.anim[data-anim="right"] { transform: translateX(60px); }
.flip { opacity: 0; transform: perspective(1200px) rotateX(-30deg) translateY(40px); transform-origin: top center; transition: opacity 900ms var(--ease-entrada), transform 1100ms var(--ease-entrada); transition-delay: var(--delay, 0ms); }
.anim.visible, .flip.visible { opacity: 1; transform: none; }

/* Sin JavaScript todo queda visible */
.no-js .anim, .no-js .flip { opacity: 1; transform: none; }
.no-js .split-heading .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-property: opacity, background-color, color, border-color !important; }
  .anim, .flip, .split-heading .w > span { transform: none !important; }
  .hero-bg { transform: none !important; }
}

/* ===== Tablet ===== */
@media (max-width: 1000px) {
  :root { --header-h: 75px; }
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .hero-content > * { max-width: 100%; }
  .hero-row { grid-template-columns: 1fr; gap: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media { order: 2; }
  .about-text { padding: 0 2vw; }
  .cards { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .leader-grid { grid-template-columns: 1fr; gap: 40px; }
  .sector-head { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: 1fr; max-width: 560px; }
  .leader-photo { max-width: 420px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .card { padding: 40px 30px; }
  .row-grid { grid-template-columns: 1fr; gap: 0; }
  .row-grid > .row-media { order: -1; }
  .row-grid .video-box { flex: none; aspect-ratio: 3 / 2; min-height: 0; }
}

/* ===== Celular ===== */
@media (max-width: 640px) {
  .hero { padding-bottom: 150px; }
  .hero-sub { font-size: 17px; line-height: 1.7; }
  .btn-jumbo { padding: 18px 38px; font-size: 16px; }
  .fancy-box { min-height: 380px; }
  .fancy-inner { padding: 28px; }
  .carousel-arrow { width: 46px; height: 46px; }
  .band-inner { flex-direction: column; align-items: flex-start; }
  .row-text { padding: 36px 26px; }
  .row-text h3 { font-size: 20px; line-height: 30px; }
  .play-btn { width: 70px; height: 70px; margin: -35px 0 0 -35px; }
  .closing-logo { width: 100%; max-width: 340px; }
  .logo-img { height: 44px; }
  .logo-text { font-size: 18px; }
  .hero-stats { gap: 20px 36px; margin-top: 40px; }
  .leader-photo::after { inset: 14px -12px -14px 12px; }
  .video-logo { height: 36px; top: 12px; left: 12px; }
  .to-top { right: 20px; bottom: 90px; }
  .whatsapp { right: 20px; bottom: 20px; }
}
