:root {
  --navy: #143850;
  --teal-dark: #1b4b66;
  --teal: #4f9c9a;
  --teal-light: #7fb3ae;
  --blue-gray: #a9c2c7;
  --blue-gray-light: #eaf2f4;
  --text-dark: #16324a;
  --text-muted: #4c6274;
  --white: #ffffff;
  --border-radius: 10px;
  --max-width: 1140px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.5;
}

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

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

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

.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;
}

/* Títulos de sección */
.section-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0 0 12px;
}

.section-title::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  background: var(--teal-light);
  margin: 12px auto 0;
}

.section-intro {
  max-width: 58ch;
  margin: 0 auto 38px;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid #eef1f2;
}

.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 140px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark);
  padding-bottom: 6px;
  margin-bottom: -6px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--teal-dark);
  border-bottom-color: var(--teal-dark);
}

.header-right {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  margin-top: -4px;
}

.lang-dropdown {
  position: relative;
  margin-bottom: -1px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--text-muted);
  transition: color 0.2s;
}

.lang-toggle:hover,
.lang-toggle[aria-expanded="true"] {
  color: var(--teal-dark);
}

.lang-toggle svg {
  display: block;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid #eef1f2;
  border-radius: 6px;
  min-width: 120px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 100;
}

.lang-menu[hidden] {
  display: none;
}

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: background 0.15s, color 0.15s;
}

.lang-option:first-child {
  border-radius: 6px 6px 0 0;
}

.lang-option:last-child {
  border-radius: 0 0 6px 6px;
}

.lang-option:hover {
  background: #f2f7f8;
  color: var(--teal-dark);
}

.lang-option[aria-current="true"] {
  background: #eaf3f3;
  color: var(--teal-dark);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--teal-dark);
  border-radius: 2px;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 3px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}

.btn-primary {
  background: var(--teal-light);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 26px;
}

.btn-arrow svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.btn-arrow:hover svg {
  transform: translateX(3px);
}

/* Hero */
.hero {
  background: var(--teal-dark);
  color: var(--white);
}

/* Proporciones del mockup (864px de ancho): la columna de texto ocupa
   41% y la imagen 59%; el hero completo mide 864x438, es decir 1.97:1.
   El grid se limita al ancho del contenedor para que la imagen no se
   estire en pantallas anchas; el fondo teal sí cubre todo el ancho. */
.hero-grid {
  display: grid;
  grid-template-columns: 41fr 59fr;
  align-items: stretch;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-text {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 3.25rem 2.5rem 2.75rem 1.5rem;
  min-width: 0;
}

.hero-text-inner {
  width: 100%;
  max-width: 27rem;
}

.hero-text h1 {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  max-width: 11ch;
}

.hero-text p {
  font-size: 0.79rem;
  line-height: 1.62;
  color: #d6e4e7;
  margin: 0 0 0.95rem;
  max-width: 42ch;
}

.hero-text .btn {
  margin-top: 1rem;
  font-size: 0.7rem;
  padding: 0.8rem 1.4rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0;
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bdd2d6;
}

.hero-tags li:not(:last-child)::after {
  content: "•";
  margin: 0 0.75rem;
  color: var(--teal-light);
}

/* La imagen llena la columna sin fijar la altura de la sección:
   se recorta lo necesario según el alto que dicte el texto. */
.hero-image {
  position: relative;
  overflow: hidden;
}

.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sección: tu socio para entrar al mercado */
.partner {
  padding: 46px 0 48px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.pillar {
  text-align: center;
  padding: 0 26px;
}

.pillar:not(:last-child) {
  border-right: 1px solid #e2eaec;
}

.pillar-icon,
.why-icon,
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue-gray-light);
  color: var(--teal-dark);
  margin-bottom: 15px;
}

.pillar-icon svg,
.why-icon svg,
.step-icon svg {
  width: 25px;
  height: 25px;
}

.pillar h3,
.why-card h3,
.step h3 {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0 0 11px;
}

.pillar p,
.why-card p,
.step p {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

/* Sección: por qué trabajar con nosotros */
.why {
  background: var(--blue-gray-light);
  padding: 42px 0 46px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.why-intro h2 {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0 0 12px;
}

.why-intro h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  background: var(--teal-light);
  margin-top: 12px;
}

.why-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin: 0 0 10px;
}

.why-intro p:last-child {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.why-card {
  text-align: center;
  padding: 0 14px;
}

.why-card:not(:last-child) {
  border-right: 1px solid #d5e3e6;
}

/* Sección: proceso paso a paso */
.process {
  padding: 44px 0 44px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Los círculos se apilan en columna: número arriba, ícono debajo. */
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  width: 33px;
  height: 33px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--teal-dark);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

/* El círculo del ícono es notablemente mayor que el del número
   (46px vs 25px en el mockup). */
.step .step-icon {
  display: flex;
  width: 61px;
  height: 61px;
  flex-shrink: 0;
  margin-bottom: 14px;
}

.step .step-icon svg {
  width: 29px;
  height: 29px;
}

/* Línea punteada que une los pasos */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 16.5px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  border-top: 1px dashed var(--blue-gray);
  z-index: 1;
}

/* Sección: categorías */
.categories {
  padding: 34px 0 44px;
  border-top: 1px solid #e2eaec;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  cursor: pointer;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.category-card:not(:last-child) {
  border-right: 1px solid #e2eaec;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card:focus-visible {
  outline: 2px solid var(--teal-dark);
  outline-offset: 4px;
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-dark);
  margin-bottom: 12px;
}

.category-icon svg {
  width: 30px;
  height: 30px;
}

.category-card h3 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin: 0 0 14px;
}

/* Contenedor del brillo que recorre la imagen.
   align-self: stretch evita que el flex padre (align-items: center)
   lo encoja al ancho intrínseco de la foto y deje espacio a un lado. */
.category-media {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  width: 100%;
  align-self: stretch;
  line-height: 0;
  box-shadow: 0 3px 10px rgba(20, 56, 80, 0.1);
  transition: box-shadow 0.3s ease;
}

.category-card:hover .category-media {
  box-shadow: 0 10px 22px rgba(20, 56, 80, 0.18);
}

/* Sin aspect-ratio ni object-fit: la altura la define la proporción
   nativa del archivo, así la foto se ve completa y sin recorte.
   display: block elimina el hueco inferior del baseline de línea. */
.category-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.45s ease;
}

.category-card:hover img {
  transform: scale(1.07);
}

.category-media::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-18deg);
}

.category-card:hover .category-media::after {
  animation: brillo 0.85s ease;
}

.category-card.destello .category-media::after {
  animation: brillo 0.7s ease;
}

@keyframes brillo {
  from {
    left: -75%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  to {
    left: 125%;
    opacity: 0;
  }
}

.category-card.destello .category-media {
  animation: pulso 0.45s ease;
}

@keyframes pulso {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(0.97);
  }
  100% {
    transform: scale(1);
  }
}

/* Sección: buscamos productos */
.looking {
  background: var(--blue-gray-light);
  padding: 46px 0 50px;
}

.looking-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1fr;
  gap: 34px;
  align-items: center;
}

.looking-text h2,
.looking-cta h2 {
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0 0 12px;
}

.looking-text h2::after,
.looking-cta h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  background: var(--teal-light);
  margin-top: 12px;
}

.looking-text p,
.looking-cta p {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 20px;
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 22px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 11px;
  height: 6.5px;
  border-left: 1.8px solid var(--teal);
  border-bottom: 1.8px solid var(--teal);
  transform: rotate(-45deg);
}

/* Al 90%: menos ampliación por píxel de origen, se ve más nítida. */
.looking-image img {
  width: 90%;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(20, 56, 80, 0.14);
}

/* Sección: contacto */
.contact {
  padding: 56px 0 60px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 22px;
  max-width: 860px;
  margin: 0 auto;
}

.form-field-name {
  grid-column: 1;
  grid-row: 1;
}

.form-field-email {
  grid-column: 1;
  grid-row: 2;
}

.form-field-company {
  grid-column: 1;
  grid-row: 3;
}

.form-field-message {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.form-actions {
  grid-column: 2;
  grid-row: 4;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.form-field-message textarea {
  flex: 1;
  min-height: 70px;
}

.form-field input,
.form-field textarea {
  border: 1px solid #d9e4e7;
  border-radius: 5px;
  padding: 13px 15px;
  font-family: var(--font);
  font-size: 0.92rem;
  background: var(--white);
  color: var(--text-dark);
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #8fa5ad;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: transparent;
}

.form-field.invalid input,
.form-field.invalid textarea {
  outline: 2px solid #d9534f;
  border-color: transparent;
}

.field-error {
  min-height: 19px;
  font-size: 0.8rem;
  color: #a3312c;
  margin-top: 4px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.form-success {
  color: #14532d;
  font-weight: 600;
  margin: 0;
  font-size: 0.85rem;
}

.form-error {
  color: #a3312c;
  font-weight: 600;
  margin: 0;
  font-size: 0.85rem;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Footer */
.site-footer {
  background: var(--teal-dark);
  color: #cfe0e3;
  padding: 34px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr auto;
  gap: 32px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer-brand img {
  height: 56px;
  width: auto;
  flex-shrink: 0;
}

.footer-brand p {
  font-size: 0.78rem;
  line-height: 1.6;
  margin: 4px 0 0;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 16px;
  align-content: start;
}

.footer-nav a {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cfe0e3;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.8rem;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--blue-gray);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-social {
  display: none;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #cfe0e3;
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-text {
    justify-content: flex-start;
    padding: 2.5rem 1.5rem 2.25rem;
  }

  .hero-text-inner {
    max-width: 100%;
  }

  /* Apilado: la imagen vuelve al flujo con proporción propia */
  .hero-image {
    aspect-ratio: 3 / 2;
  }

  .hero-image img {
    position: static;
    height: 100%;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-intro {
    grid-column: 1 / -1;
  }

  .why-card:nth-child(3) {
    border-right: none;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 18px;
  }

  .step:not(:last-child)::before {
    display: none;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 0;
  }

  .category-card:nth-child(3) {
    border-right: none;
  }

  .looking-grid {
    grid-template-columns: 1fr 1fr;
  }

  .looking-image {
    grid-row: 1 / span 2;
    grid-column: 2;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .header-right {
    gap: 14px;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid #eef1f2;
  }

  .main-nav.open {
    max-height: 320px;
  }

  .main-nav a {
    padding: 14px 24px;
    margin-bottom: 0;
    border-bottom: 1px solid #f2f5f6;
  }

  .logo img {
    height: 72px;
  }
}

@media (max-width: 720px) {
  .pillars,
  .why-grid,
  .steps,
  .categories-grid,
  .looking-grid,
  .contact-form,
  .checklist,
  .footer-grid,
  .footer-nav {
    grid-template-columns: 1fr;
  }

  .pillar,
  .why-card,
  .category-card {
    border-right: none !important;
    padding: 0;
  }

  .pillars,
  .categories-grid,
  .steps {
    gap: 34px;
  }

  .why-grid,
  .looking-grid {
    gap: 26px;
  }

  .looking-image {
    grid-row: auto;
    grid-column: 1;
    max-width: 320px;
  }

  /* El formulario vuelve al flujo natural en una columna */
  .form-field-name,
  .form-field-email,
  .form-field-company,
  .form-field-message,
  .form-actions {
    grid-column: 1;
    grid-row: auto;
  }

  .form-field-name { order: 1; }
  .form-field-email { order: 2; }
  .form-field-company { order: 3; }
  .form-field-message { order: 4; }
  .form-actions { order: 5; }

  .form-field-message textarea {
    min-height: 120px;
  }

  .form-actions {
    justify-content: flex-start;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .footer-brand {
    flex-direction: column;
  }
}

/* Respeta a quienes prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .category-card,
  .category-card img,
  .category-media,
  .category-media::after,
  .btn-arrow svg {
    transition: none;
    animation: none !important;
  }

  .category-card:hover,
  .category-card:hover img,
  .btn-arrow:hover svg {
    transform: none;
      }
}
