:root {
  --color-primary: #0f1729;
  --color-primary-soft: #1f293f;
  --color-accent: #f65d00;
  --color-blue: #0b4ea2;
  --color-cyan: #16a6d9;
  --color-gray: #f3f4f6;
  --color-border: rgba(15, 23, 41, 0.12);
  --color-text: #172033;
  --color-muted: #5d6678;
  --color-white: #ffffff;
  --shadow-soft: 0 18px 50px rgba(15, 23, 41, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 8px 28px rgba(15, 23, 41, 0.08);
}

.site-header.is-scrolled {
  box-shadow: 0 14px 34px rgba(15, 23, 41, 0.12);
}

.header-inner {
  min-height: 116px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1;
}

.logo img {
  width: auto;
  height: 82px;
  max-width: 390px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-primary);
  font-size: 0.94rem;
  font-weight: 800;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--color-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 800;
}

.language-link:hover,
.language-link:focus {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  margin-left: auto;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 24px;
  background: var(--color-primary);
  margin: 5px auto;
  border-radius: 10px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 46px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(246, 93, 0, 0.24);
}

.btn--primary:hover {
  background: #df5200;
}

.btn--secondary {
  background: #ffffff;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.btn--dark {
  background: var(--color-primary);
  color: #ffffff;
}

.btn--small {
  min-height: 42px;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(15, 23, 41, .90), rgba(31, 41, 63, .76)),
    url("/assets/img/bypica/hero-operaciones.webp") center/cover;
  color: #ffffff;
}

.hero-grid {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .65fr);
  align-items: center;
  gap: 4rem;
  padding: 6rem 0;
}

.hero h1 {
  margin: 0;
  max-width: 830px;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: .95;
  letter-spacing: -0.08em;
}

.hero-lead {
  max-width: 720px;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}

.hero-card {
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-card h2,
.hero-card h3 {
  margin-top: 0;
  color: #ffffff;
}

.hero-card__label {
  margin: 0 0 1rem;
  color: #ffffff;
  font-weight: 900;
}

/* Sections */

.section {
  padding: 6rem 0;
}

.section--light {
  background: #f6f7f9;
}

.section--dark {
  background:
    radial-gradient(circle at top right, rgba(246, 93, 0, .18), transparent 32%),
    var(--color-primary);
  color: #ffffff;
}

.section--dark p,
.section--dark li {
  color: rgba(255, 255, 255, .78);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 2.6rem;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section h2 {
  margin: 0;
  color: var(--color-primary);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section--dark h2 {
  color: #ffffff;
}

.section-heading p,
.split p {
  color: var(--color-muted);
  font-size: 1.02rem;
}

.section--dark .section-heading p,
.section--dark .split p {
  color: rgba(255, 255, 255, .76);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 4rem;
  align-items: start;
}

/* Cards */

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid--four {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 10px 28px rgba(15, 23, 41, .05);
}

.card h3 {
  margin: .4rem 0 .7rem;
  color: var(--color-primary);
  font-size: 1.2rem;
  line-height: 1.15;
}

.card p {
  color: var(--color-muted);
  margin: 0;
}

.card a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 900;
}

.card-number {
  color: var(--color-accent);
  font-weight: 900;
  font-size: .78rem;
}

/* Lists */

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.15rem;
  margin: .55rem 0;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Image placeholders */

.image-placeholder {
  min-height: 360px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(15, 23, 41, .25);
  background:
    linear-gradient(135deg, rgba(15, 23, 41, .08), rgba(246, 93, 0, .08)),
    #f0f2f5;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  color: var(--color-muted);
  font-weight: 800;
}

.image-placeholder span {
  display: block;
  max-width: 360px;
}

/* Real image cards */

.image-card {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-gray);
  box-shadow: 0 10px 28px rgba(15, 23, 41, .08);
}

.image-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.image-card__caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: .85rem 1rem;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 800;
  background: rgba(15, 23, 41, .78);
  backdrop-filter: blur(8px);
}

.image-card--wide {
  min-height: 420px;
}

.image-card--wide img {
  min-height: 420px;
}

.image-card--square {
  aspect-ratio: 1 / 1;
  min-height: auto;
}

.image-card--square img {
  height: 100%;
  min-height: auto;
}

.image-card--vertical {
  aspect-ratio: 4 / 5;
  min-height: auto;
}

.image-card--vertical img {
  height: 100%;
  min-height: auto;
}

/* Stats */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #13213a;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat {
  padding: 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--color-accent);
  font-size: 2.2rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: .45rem;
  color: rgba(255, 255, 255, .82);
  font-size: .9rem;
  font-weight: 700;
}

/* CTA */

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  background:
    radial-gradient(circle at left top, rgba(246, 93, 0, .25), transparent 28%),
    var(--color-primary);
  color: #ffffff;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.cta-panel h2 {
  color: #ffffff;
}

.cta-panel p {
  color: rgba(255, 255, 255, .78);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

/* Footer */

.site-footer {
  background: #070b13;
  color: #ffffff;
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  gap: 2rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border-radius: 18px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.2rem;
  min-width: 340px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .16);
}

.footer-logo img {
  width: auto;
  height: 72px;
  max-width: 330px;
  object-fit: contain;
}

.site-footer p {
  color: rgba(255, 255, 255, .68);
}

.site-footer h3 {
  margin: 0 0 1rem;
  font-size: .95rem;
}

.site-footer a {
  display: block;
  color: rgba(255, 255, 255, .68);
  text-decoration: none;
  margin: .4rem 0;
  font-size: .92rem;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer-bottom div {
  display: flex;
  gap: 1rem;
}

/* Back to top */

.back-to-top {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 120;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(246, 93, 0, .35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease, background .22s ease;
}

.back-to-top:hover,
.back-to-top:focus {
  background: #df5200;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 1320px) {
  .header-inner {
    min-height: 108px;
    gap: 1.4rem;
  }

  .logo img {
    height: 74px;
    max-width: 350px;
  }

  .site-nav {
    gap: .85rem;
  }

  .site-nav a {
    font-size: .86rem;
  }

  .btn--small {
    padding-inline: .9rem;
  }
}

@media (max-width: 1180px) {
  .header-inner {
    min-height: 100px;
  }

  .logo img {
    height: 66px;
    max-width: 310px;
  }

  .site-nav {
    gap: .72rem;
  }

  .site-nav a {
    font-size: .8rem;
  }

  .card-grid--four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1040px) {
  .header-inner {
    min-height: 86px;
  }

  .logo img {
    height: 58px;
    max-width: 270px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #ffffff;
    padding: 1rem;
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: .85rem 0;
    font-size: .95rem;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-grid,
  .split,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding: 5rem 0;
  }

  .card-grid--three,
  .card-grid--four,
  .stats-row,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-logo {
    min-width: 300px;
  }

  .footer-logo img {
    height: 62px;
    max-width: 290px;
  }
}

@media (max-width: 720px) {
  .header-actions .btn {
    display: none;
  }

  .header-inner {
    min-height: 78px;
  }

  .logo img {
    height: 48px;
    max-width: 220px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .card-grid--three,
  .card-grid--four,
  .stats-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }

  .cta-panel {
    padding: 2rem;
  }

  .footer-logo {
    min-width: auto;
    width: 100%;
    justify-content: flex-start;
  }

  .footer-logo img {
    height: 54px;
    max-width: 250px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 420px) {
  .logo img {
    height: 42px;
    max-width: 190px;
  }

  .footer-logo img {
    height: 46px;
    max-width: 220px;
  }
}