:root {
  --blue-900: #06264a;
  --blue-800: #083c73;
  --blue-700: #005fae;
  --blue-600: #0074c8;
  --yellow: #fccd02;
  --ink: #122034;
  --muted: #667085;
  --line: #d9e2ec;
  --surface: #ffffff;
  --soft: #f4f8fb;
  --shadow: 0 18px 45px rgba(8, 60, 115, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Roboto", Arial, sans-serif;
  background: #ffffff;
  line-height: 1.6;
}

img,
video,
iframe {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 226, 236, 0.9);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: min(245px, 54vw);
  height: auto;
  display: block;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--blue-900);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.menu-toggle {
  flex-direction: column;
  gap: 5px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--blue-900);
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(0, 95, 174, 0.1);
  color: var(--blue-700);
}

.site-nav .nav-cta {
  background: var(--yellow);
  color: var(--blue-900);
}

.hero {
  position: relative;
  min-height: clamp(560px, 82vh, 760px);
  overflow: hidden;
  color: #fff;
  background: var(--blue-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 38, 74, 0.88), rgba(6, 38, 74, 0.55) 46%, rgba(6, 38, 74, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: clamp(560px, 82vh, 760px);
  margin: 0 auto;
  display: grid;
  align-content: center;
  padding: 84px 0 92px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1,
.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy,
.page-hero p {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: clamp(1rem, 2.4vw, 1.28rem);
  color: rgba(255, 255, 255, 0.9);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue-700);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.button.yellow {
  background: var(--yellow);
  color: var(--blue-900);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.slider-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.slider-dots button {
  width: 38px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.slider-dots button.active {
  background: var(--yellow);
}

.section {
  padding: clamp(58px, 9vw, 104px) 0;
}

.section.soft {
  background: var(--soft);
}

.section.blue {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: #fff;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-title {
  max-width: 760px;
  margin: 0 0 34px;
}

.section-title.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.blue .section-title h2,
.blue .section-title p {
  color: #fff;
}

.section-title p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.lead-panel,
.info-card,
.form-panel,
.map-card,
.video-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lead-panel {
  padding: clamp(24px, 4vw, 42px);
}

.lead-panel p {
  margin: 0;
  font-size: 1.18rem;
}

.info-grid {
  display: grid;
  gap: 16px;
}

.info-card {
  padding: 24px;
}

.info-card h3 {
  margin: 0 0 10px;
  color: var(--blue-800);
  font-size: 1.35rem;
}

.info-card p,
.info-card ul {
  margin: 0;
  color: var(--muted);
}

.values-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  padding-left: 18px;
}

.timeline-shell {
  position: relative;
}

.timeline-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 340px);
  gap: 18px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
}

.timeline-card {
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(18, 32, 52, 0.1);
}

.timeline-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.timeline-body {
  padding: 20px;
}

.year {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(252, 205, 2, 0.23);
  color: var(--blue-900);
  font-weight: 900;
}

.timeline-body p,
.timeline-body ul {
  margin: 0;
  color: var(--muted);
}

.timeline-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--blue-900);
  font-size: 1.35rem;
  cursor: pointer;
}

.brand-marquee {
  display: grid;
  gap: 18px;
  overflow: hidden;
}

.brand-row {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.brand-row.reverse {
  animation-direction: reverse;
  animation-duration: 46s;
}

.brand-tile {
  width: 145px;
  height: 92px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 22px rgba(18, 32, 52, 0.08);
}

.brand-tile img {
  max-height: 58px;
  object-fit: contain;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.coverage-grid,
.contact-grid,
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 28px;
  align-items: stretch;
}

.coverage-map {
  min-height: 360px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.80);
border: 1px solid rgba(255, 255, 255, 1);
  padding: 22px;
}

.coverage-map img {
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.08));
}

.coverage-list {
  display: grid;
  gap: 14px;
}

.coverage-item {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.coverage-item h3,
.coverage-item p {
  margin: 0;
}

.coverage-item p {
  color: rgba(255, 255, 255, 0.78);
}

.page-hero {
  min-height: 390px;
  display: grid;
  align-items: center;
  color: #fff;
  background: linear-gradient(90deg, rgba(6, 38, 74, 0.9), rgba(0, 95, 174, 0.68)), var(--hero-image) center/cover;
}

.page-hero .wrap {
  padding: 76px 0;
}

.form-panel {
  padding: clamp(24px, 4vw, 36px);
}

.form-panel h2 {
  margin: 0 0 18px;
  color: var(--blue-900);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin: 0 0 7px;
  color: var(--blue-900);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(0, 116, 200, 0.18);
  border-color: var(--blue-600);
}

.file-input {
  padding: 10px;
}

.help-text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.work-aside {
  display: grid;
  gap: 16px;
}

.photo-card {
  min-height: 280px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(6, 38, 74, 0), rgba(6, 38, 74, 0.76)), url("../img/OficinaCentralCoarsa2.jpg") center/cover;
  box-shadow: var(--shadow);
}

.map-card {
  overflow: hidden;
  min-height: 430px;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
  display: block;
}

.visit-copy {
  padding: 28px;
  background: var(--soft);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.visit-copy h2,
.visit-copy p {
  margin: 0;
}

.visit-copy p {
  margin-top: 12px;
  color: var(--muted);
}

.video-panel {
  overflow: hidden;
}

.video-panel video {
  width: 100%;
  display: block;
  background: var(--blue-900);
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(320px, 1.35fr);
  gap: 28px;
  align-items: center;
}

.footer {
  background: var(--blue-900);
  color: #fff;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(260px, 1.3fr);
  gap: 32px;
}

.footer img {
  max-width: 190px;
  height: auto;
}

.footer h2 {
  margin: 0 0 14px;
}

.footer p {
  margin: 6px 0;
  color: rgba(255, 255, 255, 0.78);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.socials a {
  min-width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0 11px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.copyright {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

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

  .site-nav {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 14px;
  }

  .about-grid,
  .coverage-grid,
  .contact-grid,
  .work-grid,
  .news-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(6, 38, 74, 0.78), rgba(6, 38, 74, 0.72));
  }
}

@media (max-width: 640px) {
  .nav-shell,
  .wrap {
    width: min(100% - 24px, 1180px);
  }

  .hero,
  .hero-content {
    min-height: 620px;
  }

  .actions,
  .form-grid,
  .values-list {
    grid-template-columns: 1fr;
  }

  .actions .button {
    width: 100%;
  }

  .form-grid {
    display: grid;
  }

  .brand-tile {
    width: 124px;
    height: 82px;
  }
}

/* Ocultar los radio buttons */
.recognitions-select input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Contenedor de la galería */
.recognitions-gallery {
    width: 100%;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Tarjetas */
.recognition-card {
    flex: 1;
    min-width: 80px;
    max-width: 120px;
    height: 380px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #f5f8fb;
    border: 1px solid var(--line);
    border-radius: var(--radius);

    cursor: pointer;
    overflow: hidden;

    opacity: .65;

    transition:
        flex .45s ease,
        max-width .45s ease,
        opacity .35s ease,
        box-shadow .35s ease,
        background-color .35s ease;
}

/* Imágenes */
.recognition-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform .35s ease;
}

/* Tarjeta seleccionada */
#img1:checked ~ .recognitions-gallery .card-img1,
#img2:checked ~ .recognitions-gallery .card-img2,
#img3:checked ~ .recognitions-gallery .card-img3,
#img4:checked ~ .recognitions-gallery .card-img4 {
    flex: 5;
    max-width: 560px;
    opacity: 1;
    background: #fff;
    box-shadow: 0 18px 45px rgba(8, 60, 115, .18);
}

/* Ligero zoom únicamente en la imagen */
#img1:checked ~ .recognitions-gallery .card-img1 img,
#img2:checked ~ .recognitions-gallery .card-img2 img,
#img3:checked ~ .recognitions-gallery .card-img3 img,
#img4:checked ~ .recognitions-gallery .card-img4 img {
    transform: scale(1.03);
}

/* Hover escritorio */
@media (min-width: 769px) {

    .recognition-card:hover {
        opacity: .9;
    }

}

/* Tablets */
@media (max-width: 992px) {

    .recognitions-gallery {
        min-height: 380px;
        padding: 20px;
        gap: 12px;
    }

    .recognition-card {
        max-width: 90px;
        height: 300px;
    }

    #img1:checked ~ .recognitions-gallery .card-img1,
    #img2:checked ~ .recognitions-gallery .card-img2,
    #img3:checked ~ .recognitions-gallery .card-img3,
    #img4:checked ~ .recognitions-gallery .card-img4 {
        flex: 4;
        max-width: 400px;
    }

}

/* Celulares */
@media (max-width: 768px) {

    .recognitions-gallery {
        flex-direction: column;
        min-height: auto;
        padding: 18px;
        gap: 14px;
    }

    .recognition-card {
        width: 100%;
        max-width: 100%;
        flex: none;
        height: 120px;
        opacity: .8;
    }

    #img1:checked ~ .recognitions-gallery .card-img1,
    #img2:checked ~ .recognitions-gallery .card-img2,
    #img3:checked ~ .recognitions-gallery .card-img3,
    #img4:checked ~ .recognitions-gallery .card-img4 {
        width: 100%;
        max-width: 100%;
        height: 320px;
    }

}

/* Celulares pequeños */
@media (max-width: 480px) {

    .recognition-card {
        height: 90px;
    }

    #img1:checked ~ .recognitions-gallery .card-img1,
    #img2:checked ~ .recognitions-gallery .card-img2,
    #img3:checked ~ .recognitions-gallery .card-img3,
    #img4:checked ~ .recognitions-gallery .card-img4 {
        height: 250px;
    }

}



@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
