/* ==========================================================
   Eugenio Peña — Estilos globales
   Paleta: azul noche + azul eléctrico #3299FE + cian fluorescente
   (las variables --copper/--gold conservan su nombre por compatibilidad,
   pero ahora son azules)
   ========================================================== */
:root {
  --bg: #060a14;
  --bg-2: #0a1324;
  --bg-3: #0e1a30;
  --card: #0f1a2e;
  --line: rgba(120, 170, 255, 0.12);
  --text: #e9eef8;
  --muted: #9fabc2;
  --gold: #4fd8ff;      /* cian fluorescente: acentos, etiquetas, enlaces */
  --copper: #3299FE;    /* azul principal: botones de llamado a la acción */
  --copper-2: #5cb0ff;  /* azul al pasar el mouse */
  --blue-deep: #0a2a66; /* bloques de azul oscuro */
  --blue-mid: #1153c4;
  --glow: 0 0 24px rgba(50, 153, 254, .45);
  --white: #fff;
  --radius: 14px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --max: 1180px;
  --font-title: "Khand", sans-serif;
  --font-body: "Poppins", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--copper-2); }
h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--white);
  line-height: 1.05;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
h2 { font-size: clamp(2.2rem, 5vw, 3.3rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .6rem; }
p { color: var(--muted); }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
section { padding: 100px 0; position: relative; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .8rem;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px; height: 2px;
  background: var(--copper);
  vertical-align: middle;
  margin-right: 10px;
}
.center { text-align: center; }
.center .eyebrow::before { display: none; }
.lead { font-size: 1.1rem; max-width: 720px; }
.center .lead { margin-inline: auto; }
.alt { background: var(--bg-2); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 14px 30px;
  border-radius: 50px;
  background: var(--copper);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  border: 2px solid var(--copper);
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { background: var(--copper-2); border-color: var(--copper-2); color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(50,153,254, .35); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.08); border-color: var(--white); box-shadow: none; }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, padding .3s;
  padding: 22px 0;
}
.header.scrolled { background: rgba(6,10,20, .95); backdrop-filter: blur(8px); padding: 12px 0; border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: var(--font-title);
  font-size: 1.7rem;
  letter-spacing: 5px;
  color: var(--white);
  text-transform: uppercase;
  font-weight: 500;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 46px; width: auto; transition: height .3s; }
.header.scrolled .logo img { height: 38px; }
.footer .logo img { height: 54px; }
.logo em { font-style: normal; color: var(--copper); }
.nav { display: flex; gap: 2rem; align-items: center; }
.nav a { color: var(--text); font-size: .92rem; font-weight: 400; }
.nav a:hover { color: var(--gold); }
.nav .btn { padding: 10px 22px; font-size: .9rem; }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 1.8rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  background:
    linear-gradient(90deg, rgba(6,10,20,.75) 0%, rgba(6,10,20,.35) 45%, rgba(6,10,20,0) 70%),
    url("../img/p1.jpg") center right / cover no-repeat,
    url("../img/p1.png") center right / cover no-repeat,
    url("../img/p1.jpeg") center right / cover no-repeat,
    radial-gradient(circle at 75% 40%, #0f2a5a 0%, var(--bg) 60%);
  padding-top: 120px;
  position: relative;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.5px;
  margin-bottom: 1.2rem;
  max-width: 640px;
}
.hero h1 em {
  font-style: normal;
  color: var(--copper);
}
.hero p { font-family: "Montserrat", sans-serif; font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 500; line-height: 1.45; max-width: 560px; margin-bottom: 2.2rem; color: #fff; }
.hero p .hl { color: #7cc3ff; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 3rem; margin-top: 4rem; flex-wrap: wrap; }
.stat strong { display: block; font-family: var(--font-title); font-size: 3rem; color: var(--white); line-height: 1; }
.stat span { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }

/* ---------- Quote ---------- */
.quote-band {
  background:
    radial-gradient(circle at 15% 50%, rgba(79,216,255,.18) 0%, transparent 40%),
    radial-gradient(circle at 85% 50%, rgba(50,153,254,.25) 0%, transparent 45%),
    linear-gradient(120deg, var(--blue-deep) 0%, var(--blue-mid) 100%);
  border-top: 1px solid rgba(79,216,255,.3); border-bottom: 1px solid rgba(79,216,255,.3);
  padding: 70px 0;
}
.quote-band blockquote {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: var(--white);
  text-align: center;
  line-height: 1.25;
  max-width: 950px; margin-inline: auto;
}
.quote-band cite { display: block; margin-top: 1rem; font-family: var(--font-body); font-size: 1rem; font-style: normal; color: rgba(255,255,255,.85); }

/* ---------- About ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.photo-frame {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background:
    url("../img/p2.jpg") center top / cover no-repeat,
    url("../img/p2.png") center top / cover no-repeat,
    url("../img/p2.jpeg") center top / cover no-repeat,
    linear-gradient(145deg, #2a3142, #11141b);
  position: relative;
  box-shadow: var(--shadow);
}
.photo-frame::after {
  content: ""; position: absolute; inset: 22px -22px -22px 22px;
  border: 2px solid var(--copper); border-radius: var(--radius); z-index: -1;
}
/* Acerca de mí: dos bloques (trayectoria y reconocimientos), cada uno con dos recuadros */
.badge-group { margin-top: 1.6rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(50,153,254,.05); }
.badge-group-title { font-size: 1.25rem; margin: .1rem 0 .9rem .2rem; color: var(--gold); letter-spacing: 1px; }
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.badge-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; }
.badge-item strong { display: block; color: var(--white); font-family: var(--font-title); font-size: 1.3rem; text-transform: uppercase; }
.badge-item span { font-size: .85rem; color: var(--muted); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  transition: transform .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(79,216,255,.4); }
.card .icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(50,153,254,.14); color: var(--copper-2);
  font-size: 1.6rem; margin-bottom: 1.3rem;
}
.card ul { list-style: none; margin-top: 1rem; }
.card li { padding: .45rem 0 .45rem 1.6rem; position: relative; color: var(--muted); border-bottom: 1px dashed var(--line); font-size: .95rem; }
.card li:last-child { border-bottom: 0; }
.card li::before { content: "✓"; position: absolute; left: 0; color: var(--copper-2); font-weight: 700; }

.step { text-align: center; padding: 2rem 1.2rem; }
.step .num {
  font-family: var(--font-title); font-size: 3.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--copper);
  margin-bottom: .6rem;
}
/* Foto de fondo en cada paso + capa negra para que resalte el texto */
.step { position: relative; overflow: hidden; min-height: 300px; display: flex; flex-direction: column; justify-content: center; }
.step-img { position: absolute; inset: 0; z-index: 0; }
.step-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.step-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.8) 100%); transition: background .4s; }
.step:hover .step-img img { transform: scale(1.08); }
.step:hover .step-img::after { background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.75) 100%); }
.step > :not(.step-img) { position: relative; z-index: 1; }
.step:has(.step-img) p { color: #dfe6f2; }
.step h4 { font-size: 1.35rem; margin-bottom: .5rem; }
.step p { font-size: .9rem; }

/* Imagen a la izquierda y textos a la derecha, misma altura */
.pnl-box { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: stretch; }
.pnl-media { position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(150deg, #13284d 0%, #0a1324 100%); }
.pnl-media.empty { display: none; }
.pnl-text { display: flex; flex-direction: column; justify-content: center; }
.pnl-pillars { display: grid; gap: .8rem; margin-top: 1.8rem; }
.pillar { display: flex; gap: 1rem; padding: 1.2rem; background: var(--card); border-radius: 12px; border-left: 3px solid var(--copper); }
.pillar strong { color: var(--white); font-family: var(--font-title); font-size: 1.3rem; text-transform: uppercase; display: block; }
.pillar p { font-size: .92rem; }

/* ---------- Testimonios ---------- */
.testimonial { position: relative; }
.testimonial::before { content: "“"; position: absolute; top: 0; right: 24px; font-size: 6rem; font-family: Georgia, serif; color: rgba(50,153,254,.25); line-height: 1; }
.testimonial p { font-style: italic; color: #c9ccd4; margin-bottom: 1.4rem; }
.person { display: flex; align-items: center; gap: .9rem; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--copper), var(--gold)); display: grid; place-items: center; font-weight: 600; color: var(--white); }
.person strong { display: block; color: var(--white); font-size: .95rem; }
.person span { font-size: .8rem; color: var(--muted); }

/* ---------- Imágenes de secciones ---------- */
.pnl-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Redes sociales en la sección de contacto */
.contact-social { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); text-align: center; }
.contact-social strong { display: block; color: var(--white); font-weight: 500; margin-bottom: .8rem; }
.contact-social .social { justify-content: center; }

/* Al ir al formulario, que no quede tapado por el menú fijo */
#formulario { scroll-margin-top: 100px; }

/* Contacto
   Computador: título y datos a la izquierda, formulario a la derecha (como antes).
   Celular: título, formulario y después datos y redes. */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 4rem; row-gap: 0; align-items: start;
  grid-template-areas: "head form" "info form";
}
.contact-head { grid-area: head; }
.contact-layout .contact-form { grid-area: form; }
.contact-info { grid-area: info; }
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; grid-template-areas: "head" "form" "info"; row-gap: 2.5rem; }
  .contact-head { text-align: center; }
  .contact-head .eyebrow::before { display: none; }
  .contact-info .contact-list { margin-top: 0; }
}
.card-img { margin: -2.2rem -1.8rem 1.5rem; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(145deg, #2a3142, #11141b); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.05); }
.avatar { position: relative; overflow: hidden; flex: 0 0 48px; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Clientes (21 logos) ---------- */
.clients { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.5rem; }
.client {
  background: #fff; border-radius: 12px;
  width: calc((100% - 6rem) / 7); height: 110px; padding: 14px;   /* todas las cajas miden lo mismo */
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.client img { width: 100%; height: 100%; object-fit: contain; }
.client:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.countries { display: flex; justify-content: center; gap: 2rem; margin-top: 1.5rem; flex-wrap: wrap; color: var(--gold); font-size: .9rem; letter-spacing: 2px; text-transform: uppercase; }

/* ---------- Contenedor de foto (prensa y mi trabajo) ---------- */
.photo {
  position: relative; display: block; padding: 0; border: 0; cursor: zoom-in;
  border-radius: 12px; overflow: hidden;
  background: linear-gradient(150deg, #13284d 0%, #0a1324 100%);
}
.photo:not(.loaded)::before {   /* marcador mientras no hay foto */
  content: "📷"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 1.8rem; opacity: .25;
}
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.photo:hover img { transform: scale(1.06); }

/* ---------- Bloque azul profundo ---------- */
.deep { background: radial-gradient(circle at 80% 0%, rgba(50,153,254,.18) 0%, transparent 50%), linear-gradient(180deg, #08142b 0%, var(--bg) 100%); }

/* ---------- Entrevistas (videos) ---------- */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.video-card h3 { font-size: 1.6rem; margin-top: 1.1rem; }
.video {
  position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden;
  background: linear-gradient(150deg, #13284d 0%, #0a1324 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.video .poster img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .5s; }
.video .poster:hover img { opacity: 1; transform: scale(1.03); }
.video .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; background: var(--copper);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: transform .2s, background .2s;
}
.video .play::after { content: ""; border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
.video .poster:hover .play { transform: translate(-50%, -50%) scale(1.1); background: var(--copper-2); }
.video .empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .9rem; padding: 1rem; }

/* ---------- Prensa: fotos flotando ---------- */
.float-gallery { position: relative; aspect-ratio: 1180 / 720; }
.float-gallery .photo {
  position: absolute; border: 6px solid #fff; border-radius: 6px;
  box-shadow: 0 25px 50px rgba(0,0,0,.55);
  transform: rotate(var(--r));
  animation: floaty var(--dur, 7s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transition: box-shadow .3s;
}
.float-gallery .photo:hover { animation-play-state: paused; transform: rotate(0deg) scale(1.08); z-index: 10; box-shadow: 0 35px 70px rgba(0,0,0,.7); }
@keyframes floaty {
  0%, 100% { transform: rotate(var(--r)) translateY(0); }
  50%      { transform: rotate(calc(var(--r) + 2deg)) translateY(-16px); }
}
.fg-1 { left: 0;   top: 8%;  width: 24%; aspect-ratio: 4/5; --r: -9deg; --dur: 7s; }
.fg-2 { left: 24%; top: 0;   width: 22%; aspect-ratio: 1;   --r: 6deg;  --dur: 8s;   --delay: -2s; z-index: 2; }
.fg-3 { left: 47%; top: 10%; width: 27%; aspect-ratio: 4/3; --r: -4deg; --dur: 6.5s; --delay: -4s; }
.fg-4 { left: 77%; top: 0;   width: 21%; aspect-ratio: 3/4; --r: 10deg; --dur: 7.5s; --delay: -1s; }
.fg-5 { left: 9%;  top: 56%; width: 25%; aspect-ratio: 4/3; --r: 7deg;  --dur: 8.5s; --delay: -3s; z-index: 3; }
.fg-6 { left: 36%; top: 50%; width: 22%; aspect-ratio: 1;   --r: -8deg; --dur: 7s;   --delay: -5s; z-index: 4; }
.fg-7 { left: 61%; top: 57%; width: 28%; aspect-ratio: 4/3; --r: 5deg;  --dur: 6s;   --delay: -2.5s; z-index: 2; }

/* ---------- Mi trabajo: pestañas por país ---------- */
.country-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: .7rem; margin-bottom: 2.5rem; }
.country-tabs button {
  padding: 12px 28px; border-radius: 50px; border: 1.5px solid rgba(50,153,254,.4);
  background: transparent; color: var(--text); font-family: var(--font-body); font-size: .95rem; font-weight: 500;
  cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.country-tabs button:hover { border-color: var(--copper); color: #fff; }
.country-tabs button.active { background: var(--copper); border-color: var(--copper); color: #fff; }
.country-panel { display: none; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.country-panel.active { display: grid; animation: panelIn .45s ease; }
#mexico { grid-template-columns: repeat(4, 1fr); }
.country-panel .photo { aspect-ratio: 4/3; border: 1px solid var(--line); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Visor de fotos */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.92); display: none; place-items: center; padding: 20px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lightbox button:hover { background: var(--copper); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- CTA band ---------- */
.cta-band {
  background: radial-gradient(circle at 90% 50%, rgba(50,153,254,.25) 0%, transparent 45%), linear-gradient(120deg, #0a2350 0%, var(--bg) 100%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 80px 0;
}
.cta-band .container { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 1.6rem; }
.cta-band p { max-width: 560px; margin-inline: auto; }

/* ---------- Contacto ---------- */
.contact-list { list-style: none; display: grid; gap: 1.2rem; margin-top: 2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .icon { flex: 0 0 46px; height: 46px; border-radius: 50%; background: rgba(50,153,254,.14); display: grid; place-items: center; color: var(--copper-2); }
.contact-list strong { display: block; color: var(--white); font-weight: 500; }
form.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .85rem; color: var(--muted); }
.field input, .field textarea, .field select {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 15px; color: var(--white); font-family: var(--font-body); font-size: .95rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--copper); }
.field textarea { min-height: 120px; resize: vertical; }

/* ---------- Footer ---------- */
.footer { background: #040812; padding: 60px 0 30px; border-top: 1px solid var(--line); }
/* Mensaje del formulario de contacto */
.contact-form { position: relative; }
.form-status { font-size: .9rem; padding: 10px 14px; border-radius: 10px; }
.form-status.ok { background: rgba(39,174,96,.15); color: #6fe3a0; }
.form-status.error { background: rgba(235,87,87,.15); color: #ff9b9b; }

/* Barra final de derechos reservados */
.copyright { background: #040812; border-top: 1px solid var(--line); padding: 22px 0; font-size: .85rem; color: var(--muted); }
.copyright .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.copyright a { color: var(--muted); }
.copyright a:hover { color: var(--gold); }
@media (max-width: 600px) { .copyright .container { flex-direction: column; text-align: center; } }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.social { display: flex; gap: .7rem; }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); }
.social a:hover { background: var(--copper); border-color: var(--copper); color: var(--white); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }

.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 10px 25px rgba(0,0,0,.4); transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  #mexico { grid-template-columns: repeat(2, 1fr); }
  .client { width: calc((100% - 3rem) / 4); }
}
@media (max-width: 860px) {
  section { padding: 70px 0; }
  .video-grid { grid-template-columns: 1fr; }
  .float-gallery { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; padding: 10px 6px; }
  .float-gallery .photo { position: relative; left: auto; top: auto; width: auto; aspect-ratio: 1; border-width: 4px; }
  .float-gallery .fg-7 { grid-column: 1 / -1; aspect-ratio: 16/9; width: 70%; justify-self: center; }
  .grid-2, .pnl-box { grid-template-columns: 1fr; gap: 2.5rem; }
  .pnl-media { min-height: 0; aspect-ratio: 4/3; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: 1fr 1fr; }
  /* Menú móvil: panel lateral a pantalla completa + botón ☰ / ✕ siempre visible */
  .header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; position: relative; z-index: 210; font-size: 1.7rem; line-height: 1; }
  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(300px, 82vw); z-index: 200;
    background: #0a1324; flex-direction: column; align-items: flex-start;
    padding: 100px 30px 30px; gap: 1.5rem; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s;
    border-left: 1px solid var(--line); box-shadow: -20px 0 50px rgba(0,0,0,.5);
  }
  .nav.open { transform: none; }
  .nav a { font-size: 1.05rem; }
  .nav .btn { margin-top: .5rem; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav-backdrop.show { opacity: 1; pointer-events: auto; }
  .photo-frame::after { inset: 14px -10px -14px 10px; }
  .hero { background-position: center, 74% top, 74% top, 74% top, center; }
  /* Cifras de la portada centradas en 3 columnas */
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: center; margin-top: 3rem; }
  .stat strong { font-size: 2.6rem; }
  .stat span { font-size: .7rem; letter-spacing: 1px; display: block; margin-top: .3rem; }
}
@media (max-width: 520px) {
  .grid-5, .badges { grid-template-columns: 1fr; }
  .country-panel { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .country-tabs button { padding: 10px 18px; font-size: .88rem; }
  .logo img, .header.scrolled .logo img { height: 24px; }
  .footer .logo img { height: 30px; }
  .clients { gap: .6rem; }
  .client { width: calc((100% - 1.2rem) / 3); height: 80px; padding: 8px; }
}
