/* ==========================================================
   BrightWave — estilos globales
   ========================================================== */
:root {
  --blue: #1fb0ea;
  --pink: #ea4fc5;
  --navy: #000887;
  --ink: #141414;
  --dark: #121212;
  --dark-2: #1e1f21;
  --text: #2a2a2a;
  --muted: #5c5c5c;
  --field: #969899;
  --light: #f1f2f6;
  --white: #fff;

  --font-head: "Epilogue", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --font-logo: "Oswald", "Arial Narrow", sans-serif;

  --header-h: 72px;
  --wrap: 1200px;
  --gutter: clamp(16px, 5vw, 84px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.c-blue { color: var(--blue); }
.c-pink { color: var(--pink); }
.center { text-align: center; }

/* ---------- Idiomas: se muestra solo el bloque del idioma activo ---------- */
html[lang="en"] [data-lang="es"],
html[lang="es"] [data-lang="en"] { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--dark);
  color: var(--white);
}
.site-header .bar {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 2vw, 24px);
}
.logo {
  font-family: var(--font-logo); font-weight: 700;
  font-size: 28px; letter-spacing: .2px;
  color: var(--white); text-decoration: none;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--white); text-decoration: none; font-size: 15px;
  padding: 4px 0; border-bottom: 2px solid transparent;
  transition: color .2s;
}
.nav a:hover { color: var(--blue); }
.nav a.active { color: var(--blue); border-bottom-color: var(--blue); }

.lang { position: relative; margin-left: 24px; }
.lang-btn {
  display: flex; align-items: center; gap: 10px;
  background: none; border: 0; color: var(--white); cursor: pointer; padding: 6px 4px;
  font: inherit;
}
.lang-btn .flag { width: 18px; height: 12px; border-radius: 1px; }
.lang-btn .caret { font-size: 10px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--white); color: var(--ink);
  border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  list-style: none; margin: 0; padding: 6px 0; min-width: 150px;
  display: none;
}
.lang.open .lang-menu { display: block; }
.lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: 0; padding: 8px 14px; cursor: pointer; font: inherit; color: inherit;
}
.lang-menu button:hover { background: var(--light); }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 30px; height: 2px; background: var(--white); margin: 7px 0; transition: transform .25s, opacity .25s; }
.site-header.menu-open .burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.site-header.menu-open .burger span:nth-child(2) { opacity: 0; }
.site-header.menu-open .burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--dark); padding: 8px 24px 24px;
    transform: translateY(-120%); transition: transform .3s ease;
    z-index: -1;
  }
  .site-header.menu-open .nav { transform: none; }
  .nav a { font-size: 20px; padding: 12px 0; width: 100%; border-bottom: 1px solid #2a2a2a; }
  .nav a.active { border-bottom-color: #2a2a2a; }
  .lang { margin: 16px 0 0; }
  .lang-menu { left: 0; right: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(78vh, 680px);
  display: flex; align-items: center;
  background: var(--navy) center / cover no-repeat;
  color: var(--white);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  color: var(--white);
  font-size: clamp(54px, 10vw, 150px);
  font-weight: 800; letter-spacing: -2px; line-height: .98;
}
.hero p.lead { font-size: clamp(16px, 1.6vw, 21px); max-width: 520px; margin-top: 28px; }
.hero--home { background-image: url(../assets/img/hero-home.webp); min-height: min(88vh, 820px); }
.hero--home::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,0) 60%);
}
.hero--home p.lead { font-family: "Roboto", var(--font-body); font-size: clamp(17px, 1.7vw, 22px); }
.hero--about { background-image: url(../assets/img/hero-about.webp); background-position: right center; }
.hero--about h1 { font-size: clamp(52px, 9vw, 132px); }

@media (max-width: 700px) {
  .hero { min-height: 520px; align-items: flex-end; padding-bottom: 64px; }
  .hero--home { min-height: 600px; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(36px, 4.5vw, 64px) 0; }
.section--dark { background: var(--dark-2); color: var(--white); }
.section--black { background: var(--dark); color: var(--white); }
.section--dark h2, .section--dark h3,
.section--black h2, .section--black h3 { color: var(--white); }

.title-xl { font-size: clamp(40px, 6.4vw, 86px); font-weight: 800; letter-spacing: -1px; }
.title-lg { font-size: clamp(36px, 5vw, 64px); font-weight: 800; letter-spacing: -.5px; }
.intro { max-width: 560px; margin: 20px auto 0; font-size: 15.5px; }

/* ---------- Logos de marcas ---------- */
.brands h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; margin: 40px 0 28px; }
.logo-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px 48px; align-items: center; justify-items: center;
  max-width: 1080px; margin: 40px auto 0;
}
.logo-grid img { max-height: 104px; max-width: 220px; width: auto; object-fit: contain; }
.logo-grid img.sm { max-width: 200px; }
.logo-grid img.xs { max-height: 34px; }
@media (max-width: 700px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .logo-grid img { max-width: 150px; max-height: 80px; }
}

/* ---------- Qué hacemos ---------- */
.skills {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 44px 72px; max-width: 980px; margin: 48px auto 0;
}
.skill { text-align: center; max-width: 360px; justify-self: center; }
.skill img { height: 100px; width: auto; margin: 0 auto 10px; }
.skill h3 { font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.skill p { font-size: 15px; }
.cta { text-align: center; margin-top: 32px; }
.cta h3 { font-size: 24px; font-weight: 700; margin-bottom: 20px; }
@media (max-width: 700px) { .skills { grid-template-columns: 1fr; gap: 56px; } }

.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--blue); color: var(--white);
  font: 500 15px/1 var(--font-body);
  padding: 14px 36px; border-radius: 999px; text-decoration: none;
  transition: transform .15s, filter .2s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--pink { background: var(--pink); }

/* ---------- Equipo ---------- */
.team { background: var(--light); }
.team-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px; max-width: 640px; margin: 44px auto 0;
}
.member { text-align: center; }
.member .photo {
  width: 170px; height: 160px; margin: 0 auto 14px;
  object-fit: cover;
  border-radius: 46% 54% 58% 42% / 48% 38% 62% 52%;
  transition: border-radius .6s ease;
}
.member:nth-child(2n) .photo { border-radius: 58% 42% 50% 50% / 44% 56% 44% 56%; }
.member:nth-child(3n) .photo { border-radius: 40% 60% 54% 46% / 62% 40% 60% 38%; }
.member:hover .photo { border-radius: 50%; }
.member h4 { font-size: 19px; font-weight: 700; }
.member span { font-size: 14px; }
@media (max-width: 700px) { .team-grid { grid-template-columns: repeat(2, 1fr); } .member .photo { width: 140px; height: 132px; } }

/* ---------- Contacto (bloque común) ---------- */
/* Compacto: cabe entero en una pantalla de portátil sin desplazar */
.contact { background: var(--dark); color: var(--white); padding: clamp(36px, 4.5vw, 64px) 0; }
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact h1, .contact h2 { color: var(--white); font-size: clamp(34px, 3.6vw, 48px); font-weight: 800; }
.contact .intro-c { max-width: 360px; margin: 18px 0 20px; font-size: 15px; color: #cfd0d4; }
.contact-mail a { color: var(--white); text-decoration: none; border-bottom: 1px solid currentColor; }
.contact-mail a:hover { color: var(--blue); }
.contact.pink .contact-mail a:hover { color: var(--pink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: 14px; margin-bottom: 4px; }
.form input, .form textarea {
  width: 100%; border: 0; border-radius: 0; outline: none;
  background: var(--field); color: var(--ink);
  font: 13px var(--font-body); padding: 11px 14px; margin-bottom: 14px;
}
.form input::placeholder, .form textarea::placeholder { color: #6d6f70; }
.form input:focus, .form textarea:focus { box-shadow: inset 0 0 0 2px var(--blue); background: #a9abac; }
.contact.pink .form input:focus, .contact.pink .form textarea:focus { box-shadow: inset 0 0 0 2px var(--pink); }
.form textarea { height: 96px; resize: vertical; }
.form .btn { padding: 12px 38px; margin-top: 4px; }
.form-msg { font-size: 14px; margin: 10px 0 0; min-height: 1.4em; }
@media (max-width: 860px) {
  .contact { padding: 40px 0; }
  .contact-inner { grid-template-columns: 1fr; gap: 24px; }
  .contact .intro-c { margin: 14px 0 14px; }
  .form-row { gap: 12px; }
  .form textarea { height: 84px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--white); padding: 48px 0 40px; }
.site-footer .row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 26px 56px; align-items: end;
  padding: 0 clamp(16px, 1vw, 20px);
}
.site-footer .logo { line-height: 1; }
.site-footer h5 { font: 700 19px var(--font-head); color: var(--blue); margin: 0 0 8px; }
.site-footer p { margin: 0; font-size: 14px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.site-footer .copy { grid-column: 1 / -1; font-size: 12px; color: #8a8a8a; margin-top: 24px; }
.site-footer .row > div:nth-child(3) { padding-right: clamp(0px, 14vw, 200px); }
@media (max-width: 700px) {
  .site-footer .row { grid-template-columns: 1fr 1fr; }
  .site-footer .row > :first-child { grid-column: 1 / -1; }
  .site-footer .row > div:nth-child(3) { padding-right: 0; }
}

/* ---------- Servicios ---------- */
.service { padding: clamp(36px, 4.5vw, 64px) 0; }
.service .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 96px); align-items: center; }
.service h2 { font-size: clamp(42px, 5vw, 66px); font-weight: 800; margin-bottom: 24px; }
.service p { max-width: 420px; font-size: 15px; }
.service .media img { width: 100%; aspect-ratio: 41 / 34; object-fit: cover; border-radius: 26px; }
.service--dark { background: var(--dark); color: var(--white); }
.service--dark h2 { color: var(--white); }
.service--dark .media img { border-radius: 0; aspect-ratio: 10 / 7; }
@media (max-width: 760px) {
  .service .grid { grid-template-columns: 1fr; }
  .service .media { order: 2; }
  .service h2 { margin-bottom: 24px; }
}

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 48px; margin-top: 48px; }
@media (max-width: 700px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { text-decoration: none; color: inherit; display: block; }
.post-card .thumb { overflow: hidden; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s ease; }
.post-card:hover img { transform: scale(1.04); }
.post-card h3 { font-size: 21px; font-weight: 700; margin: 16px 0 12px; line-height: 1.25; }
.post-card:hover h3 { color: var(--blue); }
.post-card p { font-size: 14.5px; color: #3c3c3c; line-height: 1.5; }
.post-card time { font-size: 14px; }

/* ---------- Artículo ---------- */
.article { padding: 40px 0 64px; }
.article header { max-width: 900px; margin: 0 auto; text-align: center; padding: 0 16px; }
.article h1 { font-size: clamp(28px, 3.4vw, 34px); font-weight: 600; line-height: 1.2; }
.article header p { color: var(--muted); font-size: 15px; margin: 14px 0 12px; line-height: 1.45; }
.article .meta { color: var(--muted); font-size: 15px; }
.article .body { max-width: 712px; margin: 40px auto 0; padding: 0 16px; font-size: 15.5px; }
.article .body img { width: 100%; margin: 32px 0; }
.article .body h2 { font-size: 25px; font-weight: 600; margin: 44px 0 22px; }
.article .body ul { padding-left: 34px; margin: 26px 0 36px; }
.article .body li { margin-bottom: 0; }
.article .body strong { color: var(--ink); }
.article .back { display: inline-block; margin-top: 40px; color: var(--blue); text-decoration: none; font-weight: 500; }

/* ---------- Contactos ---------- */
.location { background: var(--light); }
.loc-intro { font-size: 17px; margin: 18px 0 0; }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.loc-card { background: var(--white); border-radius: 22px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,8,135,.08); }
.loc-card h3 { font-size: 22px; font-weight: 700; padding: 22px 26px; }
.loc-card iframe { display: block; width: 100%; height: 320px; border: 0; filter: grayscale(.3); }
@media (max-width: 760px) { .loc-grid { grid-template-columns: 1fr; } .loc-card iframe { height: 260px; } }

/* ---------- About ---------- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.about-split .visual { position: relative; }
.about-split .visual .statue { width: 82%; margin: 0 auto; }
.about-split .visual .mock { position: absolute; width: 46%; filter: drop-shadow(0 18px 30px rgba(0,8,135,.25)); }
.about-split .visual .mock.a { left: -4%; bottom: 8%; }
.about-split .visual .mock.b { right: -4%; top: 6%; }
.kicker { font: 600 14px var(--font-body); letter-spacing: 3px; text-transform: uppercase; color: var(--pink); margin-bottom: 14px; display: block; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 44px; }
.role { background: var(--white); border-radius: 22px; padding: 36px 30px; box-shadow: 0 10px 40px rgba(0,8,135,.08); }
.role img { height: 72px; width: auto; margin-bottom: 20px; }
.role h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.role p { font-size: 15px; margin: 0; }
.why { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.why .lead-txt { font-size: 17px; margin-top: 28px; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 36px; }
.why-item img { height: 64px; width: auto; margin-bottom: 14px; }
.why-item h4 { color: var(--white); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.why-item p { font-size: 14.5px; color: #cfd0d4; margin: 0; }
@media (max-width: 860px) {
  .about-split, .why { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .why-list { grid-template-columns: 1fr; } }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Compromiso ---------- */
.photo-round { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 26px; }
.ally { background: var(--light); }
.ally-card {
  background: var(--white); border-radius: 26px; padding: clamp(32px, 5vw, 64px);
  box-shadow: 0 10px 40px rgba(0,8,135,.08);
  display: flex; align-items: center; justify-content: center; min-height: 280px;
}
.ally-card img { width: 100%; max-width: 420px; height: auto; }
.cta-band { padding: clamp(36px, 4.5vw, 64px) 0 8px; }

/* ---------- Proyectos destacados (Inicio) ---------- */
.projects { background: var(--light); }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 44px; }
.project { background: var(--dark-2); border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; }
.project-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project:hover .project-media img { transform: scale(1.04); }
.project-media--logo { background: var(--white); display: flex; align-items: center; justify-content: center; padding: 12% 14%; }
.project-media--logo img { height: auto; object-fit: contain; }
.project-body { padding: 28px 32px 34px; }
.project-body h3 { color: var(--white); font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; margin: 16px 0 12px; }
.project-body p { color: #cfd0d4; font-size: 15.5px; margin: 0; }
.project-body p strong { color: var(--white); }
.chip {
  display: inline-block; font: 600 12px var(--font-body); letter-spacing: 2px; text-transform: uppercase;
  color: var(--blue); border: 1px solid currentColor; border-radius: 999px; padding: 5px 12px;
}
.chip--pink { color: var(--pink); }
.project-link { display: inline-block; margin-top: 18px; color: var(--blue); font-weight: 500; text-decoration: none; }
.project-link:hover { text-decoration: underline; }
@media (max-width: 760px) { .project-grid { grid-template-columns: 1fr; } }

/* ---------- IA (Inicio) ---------- */
.ai-band { background: var(--navy) linear-gradient(135deg, #000887 0%, #0b1aa8 55%, #2a0f8f 100%); color: var(--white); }
.ai-band h2, .ai-band .kicker { color: var(--white); }
.ai-band .kicker { color: var(--pink); }
.ai-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.ai-lead { font-size: 17px; margin: 24px 0 26px; color: #dfe2ff; }
.ai-points { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 12px; }
.ai-points li { position: relative; padding-left: 30px; font-weight: 500; }
.ai-points li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--pink); box-shadow: 0 0 0 4px rgba(234,79,197,.25);
}
.ai-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 26px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
@media (max-width: 860px) { .ai-grid { grid-template-columns: 1fr; } }
.service--ai { background: var(--navy) linear-gradient(135deg, #000887 0%, #0b1aa8 55%, #2a0f8f 100%); }
.service--ai p { color: #dfe2ff; }
.service--ai .media img { border-radius: 26px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }

/* ---------- Blog: etiquetas, listas numeradas y fuentes ---------- */
.post-card .chip { margin-top: 16px; }
.post-card .chip + h3 { margin-top: 12px; }
.article .body ol { padding-left: 34px; margin: 26px 0 36px; }
.article .body ol li { margin-bottom: 8px; }
.article .body a { color: var(--blue); }
.article .sources { font-size: 13.5px; color: var(--muted); border-top: 1px solid #e3e4ea; padding-top: 18px; margin-top: 40px; }

/* ---------- Páginas sin portada ---------- */
.section--first { padding-top: clamp(36px, 4.5vw, 64px); }
.section--first .post-grid { margin-top: 44px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Logo BRIGHT WAVE ---------- */
/* Las letras ocupan ~48% de la altura de la imagen; el resto es el brillo de los bloques */
.brand { display: inline-flex; align-items: center; line-height: 0; text-decoration: none; }
.brand-img { display: block; height: 36px; width: auto; }
.brand--lg .brand-img { height: clamp(48px, 5.6vw, 72px); max-width: 100%; }
@media (max-width: 420px) { .site-header .brand-img { height: 30px; } }
