/* Fish Services — landing
   Paleta tomada del logo + las fotos de microscopio */
:root {
  --indigo: #3a4ba0;      /* azul del logo */
  --indigo-deep: #2b3a85;
  --ink: #0e1a33;         /* azul tinta frío para texto */
  --gill: #9ca0a6;        /* gris del wordmark "SERVICES" */
  --ice: #f2f6f8;         /* fondo */
  --roe: #e58a2e;         /* naranja ova, solo detalles */
  --line: #d5dde3;

  --display: "Archivo", system-ui, sans-serif;
  --body: "Source Serif 4", Georgia, serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ice);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--indigo); }
:focus-visible { outline: 3px solid var(--roe); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-stretch: 125%;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem var(--gutter);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand { display: block; transition: opacity .3s ease, transform .3s ease; }
.brand img { width: 150px; height: auto; }
.topbar.brand-hidden .brand { opacity: 0; transform: translateY(-6px); visibility: hidden; }
.topbar nav { display: flex; gap: clamp(.75rem, 2vw, 1.75rem); align-items: center; }
.topbar nav a {
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  color: var(--ink); text-decoration: none;
}
.topbar nav a:hover { color: var(--indigo); }
.topbar .nav-cta {
  background: var(--indigo); color: #fff; padding: .5rem 1rem; border-radius: 999px;
}
.topbar .nav-cta:hover { background: var(--indigo-deep); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(3rem, 8vw, 6.5rem) var(--gutter) clamp(3rem, 7vw, 5rem);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { margin: 0; }
/* El logo trae fondo blanco opaco: multiply lo funde con el fondo hielo */
.hero-logo {
  width: clamp(260px, 34vw, 440px); height: auto;
  mix-blend-mode: multiply;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem) -2.5%;
}
.tagline {
  display: block;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  max-width: 15ch;
}
.lead { font-size: 1.3rem; max-width: 34ch; margin: 1.5rem 0 2rem; color: #2c3a55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  display: inline-block; padding: .85rem 1.4rem; border-radius: 999px;
  background: var(--indigo); color: #fff; text-decoration: none;
  border: 2px solid var(--indigo);
}
.btn:hover { background: var(--indigo-deep); border-color: var(--indigo-deep); }
.btn-ghost { background: transparent; color: var(--indigo); }
.btn-ghost:hover { background: var(--indigo); color: #fff; }

/* El lente: la ova en un ocular de microscopio */
.lens { margin: 0; position: relative; justify-self: center; width: min(100%, 520px); }
.lens img {
  width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 45%;
  border-radius: 50%;
  border: 14px solid var(--ink);
  box-shadow: 0 0 0 2px var(--gill), 0 30px 60px -30px rgba(14, 26, 51, .55);
  transform: scale(1.04);
  animation: focus 1.6s cubic-bezier(.2, .7, .2, 1) .15s both;
}
.lens::after { /* retícula del ocular */
  content: ""; position: absolute; inset: 14px; border-radius: 50%; pointer-events: none;
  background:
    linear-gradient(var(--roe), var(--roe)) center / 1px 22px no-repeat,
    linear-gradient(var(--roe), var(--roe)) center / 22px 1px no-repeat;
  opacity: .8;
}
.lens figcaption {
  font-size: .9rem; color: #55617a; text-align: center; margin-top: 1rem; font-style: italic;
}
@keyframes focus {
  from { filter: blur(14px) saturate(.4); transform: scale(1.12); }
  to   { filter: blur(0) saturate(1);      transform: scale(1.04); }
}

/* ---------- Quiénes somos ---------- */
.about {
  background: var(--ink); color: #dfe6ee;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.about > * { max-width: 640px; }
.about .since { justify-self: end; margin: 0; text-align: right; color: var(--gill);
  font-family: var(--display); font-size: 1.1rem; }
.about .since span {
  display: block;
  font-size: clamp(5rem, 13vw, 10rem); font-weight: 900; font-stretch: 125%;
  line-height: .85; color: var(--indigo); letter-spacing: -.03em;
  -webkit-text-stroke: 2px #6f80d6; color: transparent;
}
.about h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1.25rem; }
.about p { margin: 0 0 1rem; max-width: 60ch; }
.areas { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.areas li {
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  border: 1px solid #3b4a6b; border-radius: 999px; padding: .35rem .9rem; color: #fff;
}

/* ---------- Servicios ---------- */
.services { max-width: var(--wrap); margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) var(--gutter) 2rem; }
.section-title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }

.group {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2.5rem;
  padding: 3rem 0; border-top: 2px solid var(--ink);
  margin-top: 3rem;
}
.group + .group { margin-top: 0; }
.group-title {
  font-size: 1.35rem; font-weight: 700; font-stretch: 110%; line-height: 1.2;
  color: var(--indigo);
  position: sticky; top: 104px; align-self: start;
}

.service {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem;
  align-items: center;
  padding: 0 0 2.75rem;
}
.service + .service { padding-top: 2.75rem; border-top: 1px solid var(--line); }
.service:last-child { padding-bottom: 0; }
.service h4 { font-size: 1.4rem; font-weight: 700; font-stretch: 105%; line-height: 1.2; margin-bottom: .6rem; }
.service p { margin: 0; color: #33415e; max-width: 42ch; }

.service-media img {
  border-radius: 6px; width: 100%; object-fit: cover; max-height: 420px;
  background: #dfe6ec;
}
.service-media img.round {
  border-radius: 50%; aspect-ratio: 1; max-width: 300px; margin-inline: auto;
  border: 8px solid var(--ink);
}
.service-media img.small { max-width: 220px; }
.service-media img.landscape { max-height: none; aspect-ratio: 813 / 451; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; align-items: center; }
.duo.wide-first { grid-template-columns: 1.6fr 1fr; }
.duo img, .trio img { aspect-ratio: 3 / 4; }
.duo.wide-first img:first-child { aspect-ratio: 2 / 1; }
.duo img.round { aspect-ratio: 1; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }

/* ---------- Especies ---------- */
.species { max-width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--gutter); }
.species-list {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: flex; flex-wrap: wrap; gap: .4rem 0;
  font-family: var(--display); font-weight: 600; font-stretch: 112%;
  font-size: clamp(1.4rem, 3.2vw, 2.4rem); line-height: 1.25; color: var(--ink);
}
.species-list li::after { content: "/"; color: var(--roe); font-weight: 400; margin: 0 .55em; }
.species-list li:last-child::after { content: none; }

/* ---------- Clientes ---------- */
.clients {
  background: #fff; border-block: 1px solid var(--line);
  padding: clamp(3.5rem, 7vw, 5rem) var(--gutter);
}
.clients > * { max-width: var(--wrap); margin-inline: auto; }
.clients-list {
  list-style: none; padding: 0; margin-top: 2.25rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.clients-list li {
  min-height: 128px; padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
/* Todos los logos en un mismo tono: vienen en colores distintos y varios son blancos */
.clients-list img {
  height: var(--h, 36px); width: auto; max-width: min(170px, 100%);
  object-fit: contain;
  filter: brightness(0); opacity: .7;
}
.clients-list .no-logo {
  font-family: var(--display); font-weight: 700; font-stretch: 112%;
  font-size: 1.05rem; line-height: 1.2; color: rgba(0, 0, 0, .7);
}

/* ---------- Contacto ---------- */
.contact {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: end;
}
.contact h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; max-width: 16ch; }
.contact-card { border-left: 4px solid var(--roe); padding-left: 1.5rem; }
.contact-name { margin: 0; font-size: 1.25rem; }
.contact-org { margin: 0 0 .5rem; font-family: var(--display); font-weight: 700; color: var(--indigo); }
.contact-mail {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.35rem);
  word-break: break-all;
}

/* ---------- Footer ---------- */
.footer {
  background: #fff; color: #4b5568; border-top: 1px solid var(--line);
  padding: 2rem max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  font-size: .95rem;
}
.footer img { width: 204px; height: auto; }
.footer a { color: var(--indigo); }
.footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .group { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .group-title { position: static; }
  .clients-list { grid-template-columns: repeat(2, 1fr); }
  .clients-list li { min-height: 104px; }
  .clients-list img { height: calc(var(--h, 36px) * .82); }
}
@media (max-width: 760px) {
  .topbar nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .tagline { font-size: clamp(1.7rem, 7.4vw, 2.3rem); font-stretch: 112%; }
  .hero-logo { width: min(78%, 300px); }
  .lens { width: min(62%, 280px); order: 1; margin-top: 1rem; }
  .section-title, .contact h2 { font-stretch: 112%; }
  .about { grid-template-columns: 1fr; }
  .about .since { justify-self: start; text-align: left; }
  .service { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .trio { grid-template-columns: 1fr 1fr; }
  .trio img:last-child { grid-column: span 2; aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lens img { animation: none; }
  .brand { transition: none; }
}
