:root {
  --bg: #f3f3f4;
  --white: #ffffff;
  --text: #3b1d14;
  --text-soft: #8093af;
  --blue: #a9d2ee;
  --blue-strong: #8ec2e6;
  --yellow: #e5e1a2;
  --brown: #633726;
  --dark: #0f1116;
  --dark-soft: #171b22;
  --stroke: rgba(255,255,255,0.32);
  --shadow: 0 20px 45px rgba(57, 43, 37, 0.08);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --container: min(1180px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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

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

button,
input {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 56px 0;
  position: relative;
}

.section-dark {
  background: linear-gradient(145deg, rgba(6,8,12,0.98), rgba(21,24,31,0.96));
  color: var(--white);
}

/* HERO */
.hero {
  --bg: #f3f3f4;
  --blue: #9ec6e6;
  --blue-soft: #a7c9e3;
  --yellow: #e6de99;
  --brown: #4a2318;
  --text: #4d2a1f;
  --white: #ffffff;

  position: relative;
  min-height: 980px;
  overflow: hidden;
  background: var(--bg);
}

.hero__inner {
  position: relative;
  width: min(100%, 1440px);
  min-height: 980px;
  margin: 0 auto;
  padding: 120px 48px 110px;
}

/* NAV */
.hero-nav {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 20;
  width: min(100%, 1420px);
  transform: translateX(-50%);
  padding: 0 28px;
}

.hero-nav__pill {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto 1fr 1fr;
  align-items: center;
  gap: 8px;
  min-height: 68px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
}

.hero-nav__link,
.hero-nav__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.96);
  transition: all 0.28s ease;
}

.hero-nav__link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-nav__link--active {
  background: var(--yellow);
  color: #fffdf2;
  font-weight: 500;
}

.hero-nav__logo {
  min-width: 90px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.hero-nav__logo:hover {
  background: transparent;
}

.hero-nav__logo-img {
  display: block;
  width: 68px;
  height: auto;
  object-fit: contain;
  filter: none;
  box-shadow: none;
  background: transparent;
}

/* BADGE */
.hero__badge {
  position: absolute;
  top: 168px;
  left: 50%;
  z-index: 8;
  transform: translateX(-50%);
  padding: 13px 28px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--blue);
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
}

/* DOODLES */
.hero__doodle {
  position: absolute;
  z-index: 4;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
}

.hero__doodle--top {
  top: 140px;
  left: calc(50% + 135px);
  width: 78px;
  height: 48px;
}

.hero__doodle--left {
  left: 220px;
  top: 610px;
  width: 86px;
  height: 68px;
}

/* TITLE */
.hero__title-wrap {
  position: absolute;
  top: 230px;
  left: 50%;
  z-index: 3;
  width: 1120px;
  transform: translateX(-50%);
  text-align: center;
}

.hero__title {
  margin: 0;
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.hero__title-line {
  display: block;
}

.hero__title-line--second {
  margin-top: 4px;
}

.hero__title-blue {
  color: var(--blue);
  font-size: clamp(78px, 7vw, 120px);
}

.hero__title-yellow {
  color: var(--yellow);
  font-size: clamp(78px, 7vw, 120px);
  margin-left: 10px;
}

/* LEFT TEXT */
.hero__copy-left {
  position: absolute;
  left: 72px;
  top: 490px;
  z-index: 6;
  width: 320px;
  color: var(--text);
}

.hero__quote {
  display: block;
  margin-bottom: 18px;
  font-size: 54px;
  line-height: 1;
  color: var(--brown);
}

.hero__copy-left p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 500;
}

/* RIGHT TEXT */
.hero__side-label {
  position: absolute;
  right: 82px;
  top: 540px;
  z-index: 6;
  text-align: right;
}

.hero__side-label-main {
  display: block;
  color: var(--blue);
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
}

.hero__side-label-sub {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  opacity: 0.72;
  font-size: 20px;
  font-weight: 400;
}

/* SEMICIRCLE */
.hero__shape {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  width: 860px;
  height: 510px;
  transform: translateX(-50%);
  border-radius: 860px 860px 0 0;
  background: var(--yellow);
}

/* IMAGE */
.hero__image {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 7;
  width: 970px;
  transform: translateX(-50%);
}

.hero__image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* BUTTONS */
/* CONTENEDOR GLASS */
.glass-actions {
  position: absolute;
  left: 50%;
  bottom: 78px;
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 0;
  transform: translateX(-50%);
  padding: 10px;
  border-radius: 999px;
  overflow: hidden;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.08)
  );

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

  border: 1px solid rgba(255, 255, 255, 0.28);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 30px rgba(109, 71, 56, 0.16);
}

/* BOTONES */
.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 240px;
  height: 98px;
  padding: 0 38px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 500;
  color: #ffffff;
  transition: transform 0.25s ease, filter 0.25s ease, background 0.25s ease;
}

.hero__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

/* BOTÓN IZQUIERDO */
.hero__btn--primary {
  border-radius: 999px 0 0 999px;
  background: rgba(147, 190, 225, 0.88);
  color: #ffffff;
}

/* BOTÓN DERECHO */
.hero__btn--secondary {
  border-radius: 0 999px 999px 0;
  
  color: #ffffff;
}

/* ÍCONO */
.hero__btn-icon {
  font-size: 24px;
  line-height: 1;
}

/* SECTION TITLES */
.section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-top.centered {
  justify-content: center;
}

.section-top h2,
.about-copy h2,
.footer-top h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  line-height: 1;
}

.section-top h2 span,
.about-copy h2 span {
  color: var(--blue-strong);
}

.section-top p {
  max-width: 440px;
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: 1.08rem;
  line-height: 1.6;
}

/* SERVICES */
.services {
  margin-top: 0;
  padding-top: 74px;
  border-radius: 40px;
  overflow: clip;
  background-image: linear-gradient(rgba(8, 9, 13, 0.72), rgba(8, 9, 13, 0.76)), url("Servicios.png");
  background-size: cover;
  background-position: center;
}

.services-slider,
.portfolio-slider {
  position: relative;
}

.slider-window {
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 22px;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: white;
  font-size: 1.8rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  backdrop-filter: blur(10px);
}

.slider-arrow:hover {
  background: rgba(255,255,255,.18);
}

.slider-arrow.prev {
  left: -10px;
}

.slider-arrow.next {
  right: -10px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: .25s ease;
}

.slider-dots button.active {
  width: 46px;
  background: var(--blue-strong);
}

.service-card {
  min-width: calc((100% - 44px) / 3);
  background: rgba(255,255,255,.08);
  border: 1px solid var(--stroke);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(14px);
}

.service-head {
  min-height: 88px;
  padding: 24px 28px 18px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.25);
}

.service-head h3 {
  margin: 0;
  font-size: 1.95rem;
  font-weight: 600;
}

.service-image {
  padding: 28px;
  position: relative;
}

.service-image img {
  width: 100%;
  aspect-ratio: 1 / 1.07;
  border-radius: 22px;
  object-fit: cover;
}

.card-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 0;
  background: var(--yellow);
  color: white;
  font-size: 3rem;
  display: grid;
  place-items: center;
}

.service-hover {
  position: absolute;
  inset: auto 18px 18px 18px;
  background: rgba(255,255,255,.95);
  color: var(--text);
  padding: 22px;
  border-radius: 22px;
  transform: translateY(120%);
  opacity: 0;
  transition: .35s ease;
}

.service-card:hover .service-hover,
.service-card:focus-within .service-hover {
  transform: translateY(0);
  opacity: 1;
}

.service-card:hover .service-image img {
  transform: scale(1.03);
}

.service-image img,
.project-card img {
  transition: transform .4s ease;
}

/* EXPERIENCE */
.experience .timeline {
  position: relative;
  padding: 8px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  width: 2px;
  border-left: 3px dashed rgba(99,55,38,.6);
}

.timeline-row {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: center;
  gap: 24px;
  margin: 12px 0;
}

.timeline-side h3,
.timeline-side h4 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.timeline-side span,
.timeline-side p {
  color: var(--text-soft);
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.6;
}

.timeline-center {
  display: grid;
  place-items: center;
}

.timeline-center span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-strong);
  border: 4px solid white;
  box-shadow: 0 0 0 2px rgba(55,55,55,.7);
}

.timeline-center.accent span {
  background: var(--yellow);
}

/* ABOUT */
.about {
  padding-top: 72px;
}

.about-grid {
  background: rgba(255,255,255,.28);
  border-radius: 36px;
  padding: 34px;
  display: grid;
  grid-template-columns: .95fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.photo-card {
  background: linear-gradient(145deg, rgba(169,210,238,.18), rgba(255,255,255,.6));
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 4;
  object-fit: cover;
  object-position: center 20%;
}

.about-copy p {
  color: var(--text-soft);
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 560px;
}

/* BUTTONS */
.btn {
  min-height: 62px;
  padding: 16px 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
}

.btn-primary {
  background: var(--blue-strong);
  color: white;
}

.btn-outline {
  border: 1.5px solid rgba(43,38,35,.35);
  color: var(--text);
  background: transparent;
}

/* PORTFOLIO */
.portfolio .section-top {
  align-items: center;
}

.project-card {
  min-width: calc((100% - 22px) / 2);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  aspect-ratio: 1.4/1;
  object-fit: cover;
}

.project-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.65));
  border-radius: 22px;
  padding: 34px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 58%;
}

.project-overlay h3 {
  margin: 4px 0 0;
  color: white;
  font-size: 2.05rem;
}

.project-category {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  letter-spacing: .04em;
}

.project-card .card-arrow {
  width: 72px;
  height: 72px;
  right: 12px;
  bottom: 12px;
  font-size: 2.4rem;
  opacity: 0;
  transform: translateY(18px);
  transition: .3s ease;
}

.project-card:hover .card-arrow,
.project-card.active-card .card-arrow {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover img,
.project-card.active-card img {
  transform: scale(1.04);
}

.portfolio-meta {
  text-align: center;
  margin-top: 30px;
}

.meta-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.meta-tags span {
  background: rgba(255,255,255,.86);
  border-radius: 999px;
  padding: 12px 22px;
}

.meta-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.meta-copy h3 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0;
}

.mini-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--blue-strong);
  color: white;
  font-size: 1.8rem;
}

.portfolio-meta p {
  max-width: 760px;
  margin: 16px auto 0;
  color: var(--brown);
  line-height: 1.7;
}

/* FOOTER */
.footer {
  margin-top: 54px;
  padding-top: 46px;
  border-top-left-radius: 34px;
  border-top-right-radius: 34px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(150, 186, 224, .35);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr .8fr 1fr;
  gap: 34px;
  padding: 36px 0 22px;
}

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

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: transparent;
  color: white;
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
}

.brand-mark img {
  width: 56px;
  height: auto;
  object-fit: contain;
  display: block;
}

.footer-brand .brand-mark {
  background: transparent;
  color: var(--blue-strong);
}

.footer-grid p,
.footer-grid li,
.footer-grid a {
  color: rgba(255,255,255,.84);
}

.footer-grid h4 {
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--blue-strong);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.redes {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.redes a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  transition: transform .25s ease, background .25s ease;
}

.redes a:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.15);
}

.redes img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.footer-form {
  display: grid;
  grid-template-columns: 1fr 64px;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.94);
}

.footer-form input {
  border: 0;
  outline: 0;
  padding: 16px 18px;
  min-width: 0;
}

.footer-form button {
  border: 0;
  background: var(--blue-strong);
  color: white;
  font-size: 1.4rem;
}

.footer-bottom {
  padding: 18px 0 32px;
  border-top: 1px solid rgba(150,186,224,.22);
  color: rgba(255,255,255,.75);
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1280px) {
  .hero {
    min-height: 920px;
  }

  .hero__inner {
    min-height: 920px;
  }

  .hero__title-wrap {
    width: 900px;
  }

  .hero__copy-left {
    left: 34px;
    width: 280px;
    top: 640px;
  }

  .hero__side-label {
    right: 34px;
    top: 645px;
  }

  .hero__shape {
    width: 720px;
    height: 450px;
    border-radius: 720px 720px 0 0;
  }

  .hero__image {
    width: 580px;
  }
}

@media (max-width: 1100px) {
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .timeline-row {
    grid-template-columns: 1fr 90px 1fr;
  }

  .service-card {
    min-width: calc((100% - 22px) / 2);
  }
}

@media (max-width: 1024px) {
  .hero {
    min-height: auto;
  }

  .hero-nav {
    position: relative;
    top: 18px;
  }

  .hero-nav__pill {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 14px;
    border-radius: 30px;
  }

  .hero-nav__logo {
    grid-column: 1 / -1;
    order: -1;
    margin-bottom: 4px;
  }

  .hero__inner {
    min-height: auto;
    padding: 120px 20px 60px;
  }

  .hero__badge,
  .hero__title-wrap,
  .hero__copy-left,
  .hero__side-label,
  .hero__shape,
  .hero__image,
  .hero__actions,
  .hero__doodle {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
  }

  .hero__badge {
    display: table;
    margin: 0 auto 18px;
    font-size: 16px;
    padding: 10px 20px;
  }

  .hero__title-wrap {
    width: 100%;
    margin: 0 auto;
  }

  .hero__title {
    text-align: center;
  }

  .hero__copy-left {
    width: 100%;
    max-width: 580px;
    margin: 32px auto 0;
    text-align: center;
  }

  .hero__quote {
    margin-bottom: 6px;
    font-size: 34px;
  }

  .hero__side-label {
    margin-top: 18px;
    text-align: center;
  }

  .hero__side-label-main {
    font-size: 28px;
  }

  .hero__side-label-sub {
    font-size: 16px;
  }

  .hero__shape {
    width: min(100%, 560px);
    height: 290px;
    margin: 40px auto 0;
    border-radius: 560px 560px 0 0;
  }

  .hero__image {
    width: min(100%, 430px);
    margin: -245px auto 0;
  }

  .hero__actions {
    display: flex;
    justify-content: center;
    margin: 10px auto 0;
    flex-wrap: wrap;
    overflow: visible;
  }

  .hero__btn {
    min-width: 180px;
    height: 64px;
    font-size: 18px;
  }

  .hero__doodle--top,
  .hero__doodle--left {
    display: none;
  }

  .services {
    padding-top: 56px;
  }
}

@media (max-width: 860px) {
  .section-top,
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline::before {
    left: 16px;
    transform: none;
  }

  .timeline-row {
    grid-template-columns: 32px 1fr;
    gap: 16px;
    align-items: start;
  }

  .timeline-side.left,
  .timeline-side.right {
    grid-column: 2;
  }

  .timeline-center {
    grid-row: 1 / span 2;
    grid-column: 1;
    padding-top: 12px;
  }

  .service-card,
  .project-card {
    min-width: 100%;
  }

  .slider-arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 28px, 1180px);
  }

  .section {
    padding: 42px 0;
  }

  .hero-nav {
    padding: 0 14px;
  }

  .hero-nav__pill {
    grid-template-columns: 1fr 1fr;
  }

  .hero-nav__link {
    font-size: 14px;
  }

  .hero-nav__logo-img {
    width: 56px;
  }

  .hero__title-blue,
  .hero__title-yellow {
    font-size: clamp(44px, 10vw, 64px);
  }

  .hero__copy-left p {
    font-size: 15px;
  }

  .hero__shape {
    height: 220px;
    margin-top: 34px;
  }

  .hero__image {
    margin-top: -185px;
  }

  .hero__actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero__btn {
    width: 100%;
    max-width: 320px;
    border-radius: 999px !important;
  }

  .card-arrow {
    width: 74px;
    height: 74px;
    font-size: 2.3rem;
  }

  .service-head h3 {
    font-size: 1.6rem;
  }

  .project-overlay h3 {
    font-size: 1.6rem;
  }

  .about-grid {
    padding: 18px;
    border-radius: 26px;
  }

  .footer-grid {
    gap: 22px;
  }
}