:root {
  --petroleo: #163a46;
  --petroleo-profundo: #0f2b34;
  --teal: #2d6f73;
  --teal-claro: #4f8f92;

  --arena: #d8d1c5;
  --arena-clara: #ece7de;

  --blanco-calido: #f7f5f0;
  --blanco: #ffffff;

  --grafito: #252c2f;
  --gris-texto: #667176;
  --gris-claro: #dfe4e5;

  --max-width: 1200px;
  --radius: 22px;

  --shadow-soft: 0 18px 45px rgba(15, 43, 52, 0.08);
  --shadow-card: 0 14px 36px rgba(15, 43, 52, 0.09);
  --shadow-hover: 0 22px 46px rgba(15, 43, 52, 0.16);
}


/* =========================================
   RESET
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--blanco-calido);
  color: var(--grafito);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}


/* =========================================
   TIPOGRAFÍA
========================================= */

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2.15rem, 4.1vw, 3.8rem);
  font-weight: 700;
}

h3 {
  font-size: 1.4rem;
}

p {
  color: var(--gris-texto);
}

.section {
  padding: 110px 0;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-kicker.light {
  color: var(--arena);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 55px;
}

.section-heading h2 {
  max-width: 800px;
}

.section-intro {
  max-width: 460px;
  font-size: 1.02rem;
}


/* =========================================
   HEADER
========================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: rgba(247, 245, 240, 0.92);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(37, 44, 47, 0.06);
}

.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

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

.brand-logo {
  width: 105px;
  height: 105px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.04);
}

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

.main-nav a {
  position: relative;
  color: var(--grafito);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.25s ease;
}

.main-nav a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.25s ease;
}

.main-nav a:not(.nav-contact):hover::after {
  width: 100%;
}

.main-nav a:hover {
  color: var(--teal);
}

.nav-contact {
  padding: 11px 19px;
  border-radius: 999px;
  background: var(--petroleo);
  color: var(--blanco) !important;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.nav-contact:hover {
  background: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 43, 52, 0.14);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 23px;
  height: 2px;
  background: var(--grafito);
}


/* =========================================
   HERO
========================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--petroleo-profundo);
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center;

  opacity: 0;
  transform: scale(1.035);

  transition:
    opacity 1.15s ease,
    transform 7s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      90deg,
      rgba(15, 43, 52, 0.94) 0%,
      rgba(15, 43, 52, 0.82) 37%,
      rgba(15, 43, 52, 0.48) 63%,
      rgba(15, 43, 52, 0.18) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-top: 135px;
  padding-bottom: 90px;
}

.hero-text {
  max-width: 670px;
}

.hero h1 {
  color: var(--blanco);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.hero h1 span {
  color: var(--arena);
}

.hero-description {
  max-width: 620px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.hero-progress {
  position: absolute;
  z-index: 4;
  bottom: 30px;
  left: 4%;
  width: 125px;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}

.hero-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left;
  background: var(--arena);
  animation: heroProgress 5s linear infinite;
}

@keyframes heroProgress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}


/* =========================================
   BOTONES
========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;
  padding: 0 24px;

  border-radius: 999px;

  font-size: 0.95rem;
  font-weight: 700;

  transition:
    transform 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--arena);
  color: var(--petroleo-profundo);
}

.btn-primary:hover {
  background: var(--blanco);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.13);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  color: var(--blanco);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.13);
}


/* =========================================
   IMÁGENES
========================================= */

.real-image,
.service-image,
.project-image,
.gallery-card {
  overflow: hidden;
}

.real-image img,
.service-image img,
.project-image img,
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition:
    transform 0.6s ease,
    filter 0.6s ease;
}

.real-image:hover img,
.service-card:hover img,
.project-card:hover img,
.gallery-card:hover img {
  transform: scale(1.055);
  filter:
    saturate(1.04)
    contrast(1.03);
}


/* =========================================
   QUIÉNES SOMOS
========================================= */

.about-section {
  position: relative;
  background: var(--blanco-calido);
}

.about-section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 1px;
  height: 85px;
  background: var(--arena);
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  height: 620px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.about-content h2 {
  margin-bottom: 28px;
}

.about-content > p {
  max-width: 680px;
  margin-bottom: 17px;
  font-size: 1.02rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.mini-card {
  padding: 22px 18px;
  border-top: 1px solid var(--arena);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.mini-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
}

.mini-number {
  display: block;
  margin-bottom: 16px;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
}

.mini-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  transition: color 0.25s ease;
}

.mini-card:hover h3 {
  color: var(--teal);
}

.mini-card p {
  font-size: 0.9rem;
}


/* =========================================
   SERVICIOS
========================================= */

.services-section {
  background:
    linear-gradient(
      180deg,
      var(--blanco-calido) 0%,
      #f1efea 100%
    );
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--blanco);
  box-shadow: var(--shadow-card);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.service-image {
  height: 270px;
}

.service-content {
  padding: 28px;
}

.service-number {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
}

.service-content h3 {
  margin-bottom: 13px;
  color: var(--petroleo);
  font-size: 1.45rem;
  transition: color 0.25s ease;
}

.service-card:hover h3 {
  color: var(--teal);
}

.service-content p {
  font-size: 0.96rem;
}


/* =========================================
   BLOQUE INSTITUCIONAL
========================================= */

.statement-section {
  position: relative;
  padding: 125px 0;
  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      var(--petroleo-profundo),
      var(--petroleo)
    );
}

.statement-section::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -180px;

  width: 500px;
  height: 500px;

  border: 1px solid rgba(216, 209, 197, 0.14);
  border-radius: 50%;

  transform: translateY(-50%);
}

.statement-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.statement-inner h2 {
  max-width: 850px;
  color: var(--blanco);

  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.statement-inner:hover h2 {
  transform: translateX(5px);
  color: var(--arena-clara);
}

.statement-inner > p:last-child {
  max-width: 640px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.15rem;
}


/* =========================================
   PROYECTOS DESTACADOS
========================================= */

.projects-section {
  background: var(--blanco-calido);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.project-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--blanco);
  box-shadow: var(--shadow-card);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-hover);
}

.project-featured {
  grid-row: span 2;
  align-self: stretch;

  display: flex;
  flex-direction: column;
}

.project-featured .project-image {
  flex: 1;
  height: auto;
  min-height: 0;
}

.project-featured .project-content {
  flex: 0 0 auto;
}

.project-image {
  height: 275px;
}

.project-content {
  padding: 25px 28px 30px;
}

.project-label {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-content h3 {
  color: var(--petroleo);
  transition: color 0.25s ease;
}

.project-card:hover h3 {
  color: var(--teal);
}

@media (min-width: 1051px) {
  .project-featured {
    height: 100%;
  }

  .project-featured .project-image {
    min-height: 650px;
  }
}


/* =========================================
   GALERÍA
========================================= */

.gallery-section {
  padding: 115px 0 125px;
  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      #f1efea 0%,
      var(--blanco-calido) 100%
    );
}

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.gallery-heading h2 {
  max-width: 780px;
}

.gallery-controls {
  display: flex;
  gap: 10px;
}

.gallery-arrow {
  width: 50px;
  height: 50px;

  border: 1px solid rgba(22, 58, 70, 0.16);
  border-radius: 50%;

  background: transparent;

  color: var(--petroleo);
  font-size: 1.3rem;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.gallery-arrow:hover {
  background: var(--petroleo);
  color: var(--blanco);
  transform: translateY(-2px);
}

.gallery-viewport {
  overflow: hidden;
  width: 100%;
}

.gallery-track {
  display: flex;
  gap: 22px;

  transition:
    transform 0.55s cubic-bezier(.22,.61,.36,1);

  will-change: transform;
}

.gallery-card {
  position: relative;

  flex: 0 0 calc((100% - 44px) / 3);

  height: 350px;

  border-radius: 22px;

  background: var(--petroleo);
  box-shadow: var(--shadow-card);

  cursor: pointer;
}

.gallery-card::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      transparent 42%,
      rgba(15, 43, 52, 0.82) 100%
    );

  pointer-events: none;
}

.gallery-card span {
  position: absolute;
  left: 22px;
  bottom: 20px;

  z-index: 2;

  color: var(--blanco);

  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}


/* =========================================
   VALORES
========================================= */

.values-section {
  background: var(--blanco-calido);
}

.values-header {
  max-width: 780px;
  margin-bottom: 52px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  min-height: 280px;
  padding: 38px 30px;

  border: 1px solid rgba(37, 44, 47, 0.08);
  border-radius: var(--radius);

  background: rgba(255, 255, 255, 0.55);

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-7px);
  background: var(--blanco);
  box-shadow: var(--shadow-hover);
}

.value-number {
  display: block;
  margin-bottom: 70px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
}

.value-card h3 {
  margin-bottom: 13px;
  color: var(--petroleo);
  transition: color 0.25s ease;
}

.value-card:hover h3 {
  color: var(--teal);
}


/* =========================================
   CONTACTO
========================================= */

.contact-section {
  background: var(--blanco);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
  align-items: start;
}

.contact-info {
  position: sticky;
  top: 140px;
}

.contact-info h2 {
  margin-bottom: 22px;
}

.contact-description {
  max-width: 520px;
  margin-bottom: 40px;
  font-size: 1.03rem;
}

.contact-details {
  display: grid;
  gap: 28px;
}

.contact-item {
  padding-top: 20px;
  border-top: 1px solid var(--gris-claro);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.contact-item:hover {
  transform: translateX(5px);
  border-color: var(--teal);
}

.contact-label {
  display: block;
  margin-bottom: 5px;
  color: var(--teal);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-item p,
.contact-item a {
  color: var(--grafito);
  font-weight: 600;
}

.contact-item a:hover {
  color: var(--teal);
}

.contact-form-wrapper {
  padding: 42px;

  border-radius: var(--radius);

  background:
    linear-gradient(
      145deg,
      #f1efea,
      var(--blanco-calido)
    );

  box-shadow: var(--shadow-soft);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-form-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.contact-form {
  display: grid;
  gap: 22px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  color: var(--grafito);
  font-size: 0.86rem;
  font-weight: 700;
}

.form-group input,
.form-group textarea {
  width: 100%;

  padding: 14px 15px;

  border: 1px solid rgba(37, 44, 47, 0.12);
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.72);

  color: var(--grafito);

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);

  background: var(--blanco);

  box-shadow:
    0 0 0 4px rgba(45, 111, 115, 0.09);
}

.form-submit {
  justify-self: start;

  border: 0;

  background: var(--petroleo);

  color: var(--blanco);
}

.form-submit:hover {
  background: var(--teal);
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
  padding: 72px 0 24px;

  background: var(--petroleo-profundo);

  color: var(--blanco);
}

.footer-main {
  display: grid;

  grid-template-columns: 1.5fr 0.7fr 1fr;

  gap: 70px;

  padding-bottom: 55px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  width: 138px;
  height: 138px;

  object-fit: contain;

  padding: 14px;

  border-radius: 20px;

  background: var(--blanco-calido);

  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(22, 58, 70, 0.08);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.footer-logo:hover {
  transform: translateY(-3px) scale(1.03);

  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(22, 58, 70, 0.08);
}

.footer-brand strong {
  display: block;
  margin-bottom: 12px;

  color: var(--blanco);

  font-size: 1.25rem;
}

.footer-brand p {
  max-width: 430px;

  color: rgba(255, 255, 255, 0.66);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-column h3 {
  margin-bottom: 8px;

  color: var(--arena);

  font-size: 0.83rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-column a,
.footer-column p {
  color: rgba(255, 255, 255, 0.68);

  font-size: 0.9rem;
}

.footer-column a {
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.footer-column a:hover {
  color: var(--blanco);

  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding-top: 22px;

  border-top:
    1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.48);

  font-size: 0.78rem;
}

.footer-bottom a {
  color: var(--arena);
}

.footer-bottom a:hover {
  color: var(--blanco);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1050px) {

  .main-nav {
    gap: 17px;
  }

  .main-nav a {
    font-size: 0.84rem;
  }

  .two-column {
    gap: 50px;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

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

  .project-featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .project-featured .project-image {
    height: 420px;
    min-height: 420px;
  }

  .gallery-card {
    flex-basis:
      calc((100% - 22px) / 2);
  }

  .contact-grid {
    gap: 55px;
  }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 820px) {

  html {
    scroll-padding-top: 82px;
  }

  .section {
    padding: 82px 0;
  }

  .header-inner {
    min-height: 82px;
  }

  .brand-logo {
    width: 78px;
    height: 78px;
  }

  .main-nav {
    position: absolute;

    top: 82px;
    left: 0;

    width: 100%;

    display: none;
    flex-direction: column;
    align-items: stretch;

    gap: 0;

    padding: 18px 4% 25px;

    background:
      rgba(247, 245, 240, 0.98);

    border-bottom:
      1px solid rgba(37, 44, 47, 0.08);

    box-shadow:
      0 14px 30px rgba(15, 43, 52, 0.08);
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    padding: 13px 5px;

    font-size: 0.95rem;
  }

  .nav-contact {
    margin-top: 10px;

    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: 94vh;
  }

  .hero-content {
    padding-top: 125px;
    padding-bottom: 80px;
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(15, 43, 52, 0.72) 0%,
        rgba(15, 43, 52, 0.8) 48%,
        rgba(15, 43, 52, 0.92) 100%
      );
  }

  .hero-slide {
    background-position: center;
  }

  .hero-progress {
    left: 5%;
    bottom: 24px;
  }

  .section-heading {
    grid-template-columns: 1fr;

    gap: 22px;

    margin-bottom: 40px;
  }

  .two-column {
    grid-template-columns: 1fr;

    gap: 40px;
  }

  .about-image {
    height: 430px;
  }

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

  .service-image {
    height: 320px;
  }

  .statement-section {
    padding: 95px 0;
  }

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

  .project-featured {
    grid-column: auto;
  }

  .project-featured .project-image,
  .project-image {
    height: 330px;
    min-height: 330px;
  }

  .gallery-section {
    padding: 90px 0;
  }

  .gallery-heading {
    align-items: flex-start;

    flex-direction: column;
  }

  .gallery-controls {
    align-self: flex-end;
  }

  .gallery-card {
    flex-basis: 78%;

    height: 330px;
  }

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

  .value-card {
    min-height: 230px;
  }

  .value-number {
    margin-bottom: 45px;
  }

  .contact-grid {
    grid-template-columns: 1fr;

    gap: 45px;
  }

  .contact-info {
    position: static;
  }

  .contact-form-wrapper {
    padding: 30px 22px;
  }

  .footer-main {
    grid-template-columns: 1fr;

    gap: 40px;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-logo {
    width: 120px;
    height: 120px;
  }

  .footer-bottom {
    align-items: flex-start;

    flex-direction: column;
  }
}


/* =========================================
   MOBILE PEQUEÑO
========================================= */

@media (max-width: 520px) {

  .container {
    width: min(90%, var(--max-width));
  }

  .hero h1 {
    font-size:
      clamp(2.2rem, 11vw, 3.4rem);
  }

  .hero-actions {
    flex-direction: column;

    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .about-image {
    height: 350px;
  }

  .service-image {
    height: 260px;
  }

  .project-featured .project-image,
  .project-image {
    height: 270px;
    min-height: 270px;
  }

  .gallery-card {
    flex-basis: 88%;

    height: 300px;
  }

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


/* =========================================
   MENOS MOVIMIENTO
========================================= */

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

/* =========================================
   ESTADO DEL FORMULARIO
========================================= */

.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-status {
  display: none;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
}

.form-status.is-success {
  display: block;
  background: rgba(45, 111, 115, 0.11);
  color: var(--petroleo);
  border: 1px solid rgba(45, 111, 115, 0.2);
}

.form-status.is-error {
  display: block;
  background: rgba(150, 55, 55, 0.08);
  color: #7a2f2f;
  border: 1px solid rgba(150, 55, 55, 0.16);
}


/* =========================================
   LOGO HISTÓRICO / MARCA DE AGUA
========================================= */

.about-section {
  overflow: hidden;
}

.about-section::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -90px;

  width: min(47vw, 650px);
  aspect-ratio: 1 / 1;

  background-image: url("assets/images/logo-historico-19-junio.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  opacity: 0.055;
  filter: grayscale(1);
  mix-blend-mode: multiply;

  transform: translateY(-46%) rotate(-3deg);

  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.about-section > .container {
  position: relative;
  z-index: 1;
}


/* =========================================
   PARQUE DE LA CIUDAD / ANTES Y DESPUÉS
========================================= */

.project-image-before-after {
  position: relative;
}

.project-image-before-after .project-image-before,
.project-image-before-after .project-image-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-image-before-after .project-image-before {
  opacity: 1;
  z-index: 1;
}

.project-image-before-after .project-image-after {
  opacity: 0;
  z-index: 2;
}

.project-image-before-after .project-hover-hint {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 3;

  padding: 7px 11px;
  border-radius: 999px;

  background: rgba(15, 43, 52, 0.78);
  color: var(--blanco);

  font-size: 0.72rem;
  font-weight: 700;

  opacity: 0;
  transform: translateY(5px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;

  pointer-events: none;
}

@media (hover: hover) {
  .project-card:hover .project-image-before-after .project-image-before {
    opacity: 0;
  }

  .project-card:hover .project-image-before-after .project-image-after {
    opacity: 1;
  }

  .project-card:hover .project-image-before-after .project-hover-hint {
    opacity: 1;
    transform: translateY(0);
  }

  .project-card:hover .project-image-before-after .project-image-after {
    transform: scale(1.055);
  }
}


/* =========================================
   INSTAGRAM FOOTER
========================================= */

.footer-instagram {
  width: 42px;
  height: 42px;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  align-self: flex-start;

  margin-top: 5px;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;

  color: var(--blanco) !important;
  background: rgba(255, 255, 255, 0.05);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.footer-instagram svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-instagram:hover {
  transform: translateY(-3px) !important;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}


/* =========================================
   AJUSTES RESPONSIVE LOGO HISTÓRICO
========================================= */

@media (max-width: 820px) {
  .about-section::after {
    top: 68%;
    right: -95px;
    width: 430px;
    opacity: 0.042;
    transform: translateY(-50%) rotate(-3deg);
  }
}

@media (max-width: 520px) {
  .about-section::after {
    top: 72%;
    right: -120px;
    width: 390px;
    opacity: 0.035;
  }
}
/* =========================================
   LOGO HISTÓRICO / MARCA DE AGUA
   EN TODAS LAS SECCIONES CLARAS
========================================= */

.about-section,
.services-section,
.projects-section,
.gallery-section,
.values-section,
.contact-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}


/* MARCA DE AGUA GENERAL */

.about-section::after,
.services-section::after,
.projects-section::after,
.gallery-section::after,
.values-section::after,
.contact-section::after {
  content: "";
  position: absolute;

  width: min(46vw, 620px);
  aspect-ratio: 1 / 1;

  background-image: url("assets/images/logo-historico-19-junio.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  opacity: 0.045;

  filter: grayscale(1);
  mix-blend-mode: multiply;

  pointer-events: none;
  user-select: none;

  z-index: 0;
}


/* EL CONTENIDO SIEMPRE QUEDA POR ENCIMA */

.about-section > .container,
.services-section > .container,
.projects-section > .container,
.gallery-section > .container,
.values-section > .container,
.contact-section > .container {
  position: relative;
  z-index: 1;
}


/* =========================================
   QUIÉNES SOMOS
   Derecha
========================================= */

.about-section::after {
  top: 50%;
  right: -85px;

  transform:
    translateY(-48%)
    rotate(-3deg);
}


/* =========================================
   SERVICIOS
   Izquierda
========================================= */

.services-section::after {
  top: 55%;
  left: -120px;

  opacity: 0.038;

  transform:
    translateY(-50%)
    rotate(4deg);
}


/* =========================================
   TRABAJOS DESTACADOS
   Derecha
========================================= */

.projects-section::after {
  top: 48%;
  right: -105px;

  opacity: 0.042;

  transform:
    translateY(-50%)
    rotate(-4deg);
}


/* =========================================
   GALERÍA
   Izquierda
========================================= */

.gallery-section::after {
  top: 52%;
  left: -130px;

  opacity: 0.032;

  transform:
    translateY(-50%)
    rotate(3deg);
}


/* =========================================
   VALORES
   Derecha
========================================= */

.values-section::after {
  top: 50%;
  right: -110px;

  opacity: 0.04;

  transform:
    translateY(-50%)
    rotate(-2deg);
}


/* =========================================
   CONTACTO
   Izquierda
========================================= */

.contact-section::after {
  top: 54%;
  left: -115px;

  opacity: 0.035;

  transform:
    translateY(-50%)
    rotate(4deg);
}


/* =========================================
   TABLET / CELULAR
========================================= */

@media (max-width: 820px) {

  .about-section::after,
  .services-section::after,
  .projects-section::after,
  .gallery-section::after,
  .values-section::after,
  .contact-section::after {
    width: 430px;

    opacity: 0.03;
  }


  /* Derecha */

  .about-section::after,
  .projects-section::after,
  .values-section::after {
    right: -150px;
    left: auto;
  }


  /* Izquierda */

  .services-section::after,
  .gallery-section::after,
  .contact-section::after {
    left: -150px;
    right: auto;
  }

}


/* =========================================
   CELULAR PEQUEÑO
========================================= */

@media (max-width: 520px) {

  .about-section::after,
  .services-section::after,
  .projects-section::after,
  .gallery-section::after,
  .values-section::after,
  .contact-section::after {
    width: 360px;

    opacity: 0.025;
  }

}
