/* =========================================================
   LIANCO Spa. — Hoja de estilos
   ========================================================= */

:root {
  --green: #159a34;
  --green-dark: #0d6e25;
  --green-light: #3fcf5a;
  --navy: #0f1c26;
  --ink: #12202b;
  --text: #2a3640;
  --muted: #6b7882;
  --bg: #ffffff;
  --bg-soft: #f2f4f6;
  --border: #c9d1d6;
  --radius: 14px;
  --shadow: 0 6px 22px rgba(15, 28, 38, .10);
  --header-h: 66px;
  --font-title: "Montserrat", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}


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

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size:18.4px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}


/* =========================================================
   CONTENEDOR
   ========================================================= */

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}


/* =========================================================
   SECCIONES
   ========================================================= */

.section {
  padding: 64px 0;
}


/* =========================================================
   TÍTULOS
   ========================================================= */

.section__bar {
  display: block;
  width: 30px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
  margin-bottom: 10px;
}

.section__bar--sm {
  width: 22px;
  height: 3px;
  display: inline-block;
  margin: 0 12px 4px 0;
  vertical-align: middle;
}

.section__title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size:clamp(1.61rem, 2.76vw, 2.0125rem);
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--ink);
}

.section__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.section__head .section__bar {
  margin: 0;
  width: 28px;
}

.section__head--light .section__title {
  color: #fff;
}


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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size:.109.25rem;
  border: 0;
  border-radius: 12px;
  padding: 12px 28px;
  cursor: pointer;
  transition:
    background .2s,
    transform .15s,
    box-shadow .2s;
}

.btn--primary {
  background: var(--green);
  color: #fff;
}

.btn--primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(21,154,52,.3);
}

.btn--block {
  width: 100%;
  padding: 14px;
  letter-spacing: .08em;
  font-size:1.15rem;
}


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

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(6px);
  transition: box-shadow .25s;
}

.header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,.10);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

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

.nav__list {
  display: flex;
  gap: 32px;
}

.nav__link {
  position: relative;
  font-family: var(--font-title);
  font-size:.9.2rem;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
  transition: color .2s;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}

.nav__link:hover,
.nav__link.active {
  color: var(--green);
}

.nav__link:hover::after,
.nav__link.active::after {
  transform: scaleX(1);
}

.nav__cta {
  padding: 11px 32px;
  border-radius: 12px;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 6px 0;
  transition:
    transform .25s,
    opacity .2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


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

.hero {
  position: relative;
  min-height: 304px;
  height: clamp(300px, 36vw, 400px);
  display: flex;
  align-items: flex-start;
 background: url("assets/hero-paniri-wid.jpeg") center center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(10,20,28,.45) 0%,
      rgba(10,20,28,.10) 45%,
      rgba(10,20,28,0) 70%
    );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: clamp(40px, 5vw, 60px);
  padding-left: 12px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-title);
  font-size:.10.35rem;
  font-weight: 400;
  letter-spacing: .1em;
}

.hero__eyebrow span {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,.8);
}

.hero__title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size:clamp(2.99rem, 6.9vw, 4.6rem);
  line-height: 1.1;
  margin-top: 4px;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}

.hero__title span {
  color: var(--green-light);
}

.hero__bar {
  display: block;
  width: 30px;
  height: 4px;
  background: var(--green-light);
  border-radius: 2px;
  margin: 12px 0 10px;
}

.hero__subtitle {
  font-size:1.5525rem;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}


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

.about {
  padding-top: 32px;
}

.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}

.about__text p {
  font-size:.105.8rem;
  margin-top: 12px;
  max-width: 470px;
}

.about__text .section__title {
  margin-bottom: 14px;
}

.about__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}


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

.services {
  background: var(--bg-soft);
  padding: 34px 0 40px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  isolation: isolate;

  transition:
    transform .25s,
    box-shadow .25s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 14px 30px rgba(15,28,38,.16);
}

.card:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.card::after {
  content: "+";
  position: absolute;
  top: 10px;
  right: 10px;

  width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: var(--green);
  color: #fff;

  font-family: var(--font-title);
  font-size:1.495rem;
  font-weight: 600;
  line-height: 1;

  box-shadow:
    0 4px 12px rgba(0,0,0,.25);

  transition:
    transform .3s,
    background .2s;
}

.card:hover::after,
.card:focus-visible::after {
  transform:
    rotate(90deg)
    scale(1.1);

  background:
    var(--green-dark);
}

.card__img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  object-position: center center;

  transition:
    transform .5s;
}

.card:hover .card__img {
  transform: scale(1.05);
}

.card__body {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 14px 16px;

  min-height: 82px;
}

.card__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--green);
}

.card__body h3 {
  font-family: var(--font-title);
  font-size:.8200rem;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--ink);
}


/* =========================================================
   EXPERIENCIA
   ========================================================= */

.experience {
  position: relative;
  padding: 30px 0 28px;

  background:
    url("assets/portada%202.png")
    center / cover no-repeat,
    var(--navy);

  color: #fff;
}

.experience__overlay {
  position: absolute;
  inset: 0;
  background:
    rgba(8, 24, 20, .55);
}

.experience__inner {
  position: relative;
  z-index: 1;
}

.experience__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 6px;
}

.exp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  padding: 4px 12px;

  text-align: center;

  font-family: var(--font-title);
  font-size:.9.2rem;
  font-weight: 500;

  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.25;

  border-left:
    1px solid rgba(255,255,255,.25);
}

.exp:first-child {
  border-left: 0;
}

.exp__icon {
  width: 54px;
  height: 54px;
  object-fit: contain;

  transition:
    transform .25s;
}

.exp:hover .exp__icon {
  transform: scale(1.12);
}


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

.contact {
  padding: 40px 0 56px;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 44px;
  align-items: center;
}

.contact__info {
  padding-right: 30px;
  border-right:
    1px dashed var(--border);
}

.contact__title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size:clamp(2.3rem, 4.6vw, 2.875rem);
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
}

.contact__lead {
  font-size:1.38rem;
  margin: 6px 0 22px;
  max-width: 320px;
  line-height: 1.3;
  color: var(--text);
}

.contact__list {
  display: grid;
  gap: 16px;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size:.109.25rem;
}

.contact__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.contact__list a:hover {
  color: var(--green);
}


/* =========================================================
   FORMULARIO
   ========================================================= */

.form {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);

  padding: 22px 26px 26px;

  display: grid;
  gap: 12px;
}

.form__title {
  font-family: var(--font-title);
  font-size:.10.35rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field input,
.field textarea {
  width: 100%;

  font-family: var(--font-body);
  font-size:.10.35rem;
  color: var(--ink);

  background: #fff;

  border:
    1px solid var(--border);

  border-radius: 12px;

  padding: 11px 16px;

  outline: none;
  resize: vertical;

  transition:
    border-color .2s,
    box-shadow .2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--green);

  box-shadow:
    0 0 0 3px rgba(21,154,52,.15);
}

.field.invalid input,
.field.invalid textarea {
  border-color: #d64545;
}

.field__error {
  color: #d64545;
  font-size:.86.25rem;
  min-height: 0;
  padding-left: 6px;
}

.form__status {
  font-size:.101.2rem;
  text-align: center;
  min-height: 1.2em;
}

.form__status.ok {
  color: var(--green-dark);
}

.form__status.error {
  color: #d64545;
}


/* =========================================================
   MODAL DE SERVICIOS
   ========================================================= */

.modal {
  position: fixed;
  inset: 0;

  z-index: 200;

  display: grid;
  place-items: center;

  padding: 20px;

  visibility: hidden;
  opacity: 0;

  transition:
    opacity .3s,
    visibility 0s linear .3s;
}

.modal.open {
  visibility: visible;
  opacity: 1;

  transition:
    opacity .3s;
}


/* ---------- Fondo ---------- */

.modal__backdrop {
  position: absolute;
  inset: 0;

  background:
    rgba(10, 20, 28, .72);

  backdrop-filter:
    blur(4px);
}


/* ---------- Panel ---------- */

.modal__panel {
  position: relative;

  width: min(980px, 100%);
  max-height:
    calc(100vh - 40px);
  max-height:
    calc(100dvh - 40px);

  overflow-y: auto;

  display: grid;

  grid-template-columns:
    1.1fr 1fr;

  background: #fff;

  border-radius: 18px;

  box-shadow:
    0 30px 80px rgba(0,0,0,.45);

  transform:
    translateY(24px)
    scale(.97);

  transition:
    transform .35s cubic-bezier(.2,.8,.2,1);
}

.modal.open .modal__panel {
  transform: none;
}


/* ---------- Botón cerrar ---------- */

.modal__close {
  position: absolute;

  top: 12px;
  right: 14px;

  z-index: 5;

  width: 38px;
  height: 38px;

  border: 0;
  border-radius: 50%;

  background:
    rgba(255,255,255,.94);

  color: var(--ink);

  font-size:1.955rem;
  line-height: 1;

  cursor: pointer;

  box-shadow:
    0 2px 10px rgba(0,0,0,.2);

  transition:
    background .2s,
    color .2s,
    transform .25s;
}

.modal__close:hover {
  background: var(--green);
  color: #fff;
  transform: rotate(90deg);
}

.modal__close:focus-visible {
  outline:
    3px solid var(--green-light);

  outline-offset:
    2px;
}


/* =========================================================
   GALERÍA DEL MODAL
   ========================================================= */

.modal__gallery {
  background: var(--navy);

  padding: 16px;

  display: flex;
  flex-direction: column;

  gap: 12px;
}

.modal__main {
  margin: 0;

  flex: 1;

  min-height: 260px;

  border-radius: 12px;

  overflow: hidden;

  background: #000;
}

.modal__main img {
  width: 100%;
  height: 100%;

  max-height: 460px;

  object-fit: cover;

  transition:
    opacity .25s;
}

.modal__main img.fade {
  opacity: 0;
}


/* =========================================================
   MINIATURAS
   ========================================================= */

.modal__thumbs {
  display: flex;

  gap: 8px;

  overflow-x: auto;

  padding-bottom: 2px;
}

.modal__thumbs:empty {
  display: none;
}

.modal__thumb {
  flex:
    0 0 72px;

  height: 54px;

  padding: 0;

  border:
    2px solid transparent;

  border-radius: 8px;

  overflow: hidden;

  background: none;

  cursor: pointer;

  opacity: .6;

  transition:
    opacity .2s,
    border-color .2s;
}

.modal__thumb img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.modal__thumb:hover {
  opacity: 1;
}

.modal__thumb.active {
  opacity: 1;

  border-color:
    var(--green-light);
}

.modal__thumb:focus-visible {
  outline:
    2px solid var(--green-light);

  outline-offset:
    2px;
}


/* =========================================================
   INFORMACIÓN DEL MODAL
   ========================================================= */

.modal__info {
  padding: 36px 32px 30px;

  display: flex;
  flex-direction: column;
}

.modal__title {
  font-family: var(--font-title);

  font-weight: 800;

  font-size:1.495rem;

  line-height: 1.25;

  text-transform: uppercase;

  color: var(--ink);

  margin-bottom: 10px;
}

.modal__intro {
  font-size:.109.25rem;

  color: var(--text);

  margin-bottom: 18px;
}

.modal__list {
  display: grid;

  gap: 9px;

  margin-bottom: 24px;
}

.modal__list li {
  position: relative;

  padding-left: 24px;

  font-size:.106.95rem;
}

.modal__list li::before {
  content: "";

  position: absolute;

  left: 0;
  top: .5em;

  width: 10px;
  height: 10px;

  border-radius: 50%;

  background:
    var(--green);

  box-shadow:
    0 0 0 3px
    rgba(21,154,52,.18);
}

.modal__cta {
  margin-top: auto;
  align-self: flex-start;
}



/* =========================================================
   TARJETAS DE EXPERIENCIA CLICABLES
   ========================================================= */

.exp[data-experience] {
  cursor: pointer;
}

.exp[data-experience]:focus-visible {
  outline: 2px solid var(--green-light);
  outline-offset: 4px;
  border-radius: 6px;
}


/* =========================================================
   MODAL — NUESTRA EXPERIENCIA (solo texto, sin imágenes)
   ========================================================= */

.experience-modal {
  position: fixed;
  inset: 0;

  z-index: 200;

  display: grid;
  place-items: center;

  padding: 20px;

  visibility: hidden;
  opacity: 0;

  transition:
    opacity .3s,
    visibility 0s linear .3s;
}

.experience-modal.open {
  visibility: visible;
  opacity: 1;

  transition:
    opacity .3s;
}

.experience-modal__backdrop {
  position: absolute;
  inset: 0;

  background: rgba(10, 20, 28, .72);

  backdrop-filter: blur(4px);
}

.experience-modal__panel {
  position: relative;

  width: min(560px, 100%);

  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);

  overflow-y: auto;

  background: #fff;

  border-radius: 18px;

  box-shadow: 0 30px 80px rgba(0,0,0,.45);

  transform: translateY(24px) scale(.97);

  transition:
    transform .35s cubic-bezier(.2,.8,.2,1);
}

.experience-modal.open .experience-modal__panel {
  transform: none;
}

.experience-modal__close {
  position: absolute;

  top: 12px;
  right: 14px;

  z-index: 5;

  width: 38px;
  height: 38px;

  border: 0;
  border-radius: 50%;

  background: rgba(255,255,255,.94);

  color: var(--ink);

  font-size:1.955rem;
  line-height: 1;

  cursor: pointer;

  box-shadow: 0 2px 10px rgba(0,0,0,.2);

  transition:
    background .2s,
    color .2s,
    transform .25s;
}

.experience-modal__close:hover {
  background: var(--green);
  color: #fff;
  transform: rotate(90deg);
}

.experience-modal__close:focus-visible {
  outline: 3px solid var(--green-light);
  outline-offset: 2px;
}

.experience-modal__content {
  padding: 40px 38px 32px;
}

.experience-modal__bar {
  display: block;

  width: 30px;
  height: 4px;

  background: var(--green);

  border-radius: 2px;

  margin-bottom: 10px;
}

.experience-modal__kicker {
  font-family: var(--font-title);
  font-size:.82.8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;

  color: var(--green);

  margin-bottom: 8px;
}

.experience-modal__title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size:clamp(1.84rem, 5.175vw, 2.415rem);
  line-height: 1.15;
  text-transform: uppercase;

  color: var(--ink);

  margin-bottom: 14px;
}

.experience-modal__intro {
  font-size:.112.7rem;

  color: var(--text);

  margin-bottom: 18px;
}

.experience-modal__list {
  display: grid;

  gap: 9px;
}

.experience-modal__list li {
  position: relative;

  padding-left: 24px;

  font-size:.106.95rem;
}

.experience-modal__list li::before {
  content: "";

  position: absolute;

  left: 0;
  top: .5em;

  width: 10px;
  height: 10px;

  border-radius: 50%;

  background: var(--green);

  box-shadow: 0 0 0 3px rgba(21,154,52,.18);
}

.experience-modal__divider {
  height: 1px;

  background: #e3e8eb;

  margin-top: 24px;
}

.experience-modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  margin-top: 22px;
  padding: 12px 28px;

  font-family: var(--font-title);
  font-weight: 600;
  font-size:.109.25rem;

  color: #fff;
  background: var(--green);

  border-radius: 12px;

  transition:
    background .2s,
    transform .15s,
    box-shadow .2s;
}

.experience-modal__cta:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(21,154,52,.3);
}

/* =========================================================
   BLOQUE FINAL
   ========================================================= */

.closing {
    background: #2d3236;
    color: #ffffff;
    padding: 90px 0;
}

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

.closing__title {
    margin: 0;
    max-width: 700px;
    font-family: var(--font-title);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.closing__text {
    max-width: 620px;
    margin: 30px 0 0;
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.7;
    color: #ffffff;
}

@media (max-width: 700px) {
    .closing {
        padding: 65px 0;
    }

    .closing__inner {
        width: min(100% - 40px, 1180px);
    }

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

    .closing__text {
        font-size: 1.05rem;
    }
}

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

.footer {
  background: var(--navy);

  color: #d9e1e6;

  padding: 22px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer__logo {
  padding-right: 28px;

  border-right:
    1px solid rgba(255,255,255,.2);
}

.footer__logo {
  width: 92px;
  height: 56px;

  padding: 0;

  background: #fff;

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

  overflow: hidden;
}

.footer__logo a {
  width: 100%;
  height: 100%;

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

.footer__logo img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  /* Logo original, sin invertir colores */
  filter: none;
}

.footer__nav {
  display: flex;
  align-items: center;

  font-size:.89.7rem;
}

.footer__nav a {
  padding: 0 18px;

  border-left:
    1px solid rgba(255,255,255,.35);

  line-height: 1;

  transition:
    color .2s;
}

.footer__nav a:first-child {
  border-left: 0;
  padding-left: 0;
}

.footer__nav a:hover {
  color: var(--green-light);
}

.footer__line {
  flex: 1;

  height: 1px;

  background:
    rgba(255,255,255,.2);
}

.footer__loc {
  font-size:.89.7rem;
  white-space: nowrap;
}

.footer__legal {
  margin-top: 20px;

  padding-top: 16px;

  border-top:
    1px solid rgba(255,255,255,.15);

  font-size:.9.2rem;

  color: #aab6bd;
}

.footer__legal a {
  color: var(--green-light);
  font-weight: 600;
}

.footer__legal a:hover {
  text-decoration: underline;
}


/* =========================================================
   ANIMACIÓN DE ENTRADA
   ========================================================= */

.reveal {
  opacity: 0;

  transform:
    translateY(22px);

  transition:
    opacity .6s ease,
    transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 980px) {

  .nav {
    gap: 28px;
  }

  .nav__list {
    gap: 20px;
  }

  .services__grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .footer__inner {
    flex-wrap: wrap;
  }

  .footer__line {
    display: none;
  }

}


/* =========================================================
   RESPONSIVE — MODAL
   ========================================================= */

@media (max-width: 820px) {

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

    max-height:
      calc(100vh - 30px);
  }

  .modal__main {
    min-height: 200px;
  }

  .modal__main img {
    max-height: 300px;
  }

  .modal__info {
    padding:
      26px 22px 24px;
  }

  .modal__cta {
    margin-top: 8px;
  }

}


/* =========================================================
   RESPONSIVE — MENÚ MÓVIL
   ========================================================= */

@media (max-width: 820px) {

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;

    top: var(--header-h);
    left: 0;
    right: 0;

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

    gap: 16px;

    background: #fff;

    padding:
      20px 24px 24px;

    box-shadow:
      0 12px 20px rgba(0,0,0,.12);

    transform:
      translateY(-12px);

    opacity: 0;

    pointer-events: none;

    transition:
      opacity .25s,
      transform .25s;
  }

  .nav.open {
    opacity: 1;

    transform: none;

    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    gap: 6px;
  }

  .nav__link {
    display: inline-block;
    font-size:.109.25rem;
  }

  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__info {
    border-right: 0;

    padding-right: 0;

    border-bottom:
      1px dashed var(--border);

    padding-bottom: 28px;
  }

  .experience__list {
    grid-template-columns:
      repeat(2, 1fr);

    row-gap: 24px;
  }

  .exp:nth-child(3) {
    border-left: 0;
  }

}


/* =========================================================
   RESPONSIVE — CELULAR
   ========================================================= */

@media (max-width: 520px) {

  .container {
    width:
      min(1120px, 100% - 32px);
  }

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

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

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__logo {
    border-right: 0;
    padding-right: 0;
  }

  .footer__nav {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .modal {
    padding: 12px;
  }

  .modal__panel {
    border-radius: 14px;
  }

  .modal__gallery {
    padding: 12px;
  }

  .modal__main {
    min-height: 190px;
  }

  .modal__main img {
    max-height: 260px;
  }

  .modal__info {
    padding:
      24px 18px 20px;
  }

  .modal__title {
    font-size:1.265rem;
  }

  .modal__intro {
    font-size:.10.35rem;
  }

  .modal__list li {
    font-size:.101.2rem;
  }

  .modal__cta {
    width: 100%;
  }

  .closing {
    padding:
      55px 20px;
  }

  .closing__title {
    font-size:2.3rem;
  }

  .closing__text {
    font-size:1.15rem;
  }

  .experience-modal {
    padding: 12px;
  }

  .experience-modal__panel {
    border-radius: 14px;
  }

  .experience-modal__content {
    padding: 36px 22px 24px;
  }

  .experience-modal__cta {
    width: 100%;
  }

}
