:root {
  --navy: #18243c;
  --navy-strong: #0f182d;
  --red: #c02222;
  --gray: #e5e8ee;
  --light: #f7f9fc;
  --text: #10141f;
  --muted: #5c6473;
  --accent: #25d366;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(16, 20, 31, 0.16);
  --shadow-soft: 0 12px 26px rgba(16, 20, 31, 0.12);
  --max-width: 1200px;
  --content-width: 920px;
  font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
}

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

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

main {
  overflow: hidden;
}

section {
  padding: 80px 20px;
  scroll-margin-top: 96px;
}

.section__header {
  max-width: 760px;
  margin: 0 auto 40px auto;
  text-align: center;
}

.section__header--left {
  margin: 0 0 24px 0;
  text-align: left;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Work Sans', system-ui, sans-serif;
  margin: 0 0 12px 0;
  color: var(--navy-strong);
}

h1 { font-size: clamp(32px, 4vw, 48px); }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

.intro h2 {
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

p { margin: 0 0 12px 0; color: var(--muted); }

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 12px;
}

.lead {
  font-size: 18px;
  color: #263149;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(24,36,60,0.06);
}

.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__title span {
  display: block;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: #111111;
  letter-spacing: 0.08em;
}

.nav__title small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav__links { display: flex; align-items: center; gap: 18px; }
.nav__links a { font-weight: 600; color: #111111; }
.nav__links a:hover { color: var(--red); }

.nav__toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--navy-strong); margin: 5px 0; border-radius: 2px; transition: 0.3s ease; }

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4px 20px 36px 20px;
}

.hero__shell {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 28px) 24px;
  border-radius: 0;
  text-align: center;
  background: transparent;
  box-shadow: none;
  border: none;
}

.hero__intro {
  max-width: 860px;
  margin: 0 auto;
  padding-bottom: 22px;
}

.hero__content {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 42px;
  border-top: 1px solid rgba(24, 36, 60, 0.12);
}

.hero__logo {
  width: clamp(170px, 20vw, 250px);
  margin: 0 auto 10px auto;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.hero h1,
.hero .lead,
.hero .eyebrow {
  position: relative;
}

.hero h1 {
  max-width: 760px;
  margin: 0 auto 10px auto;
  color: #111111;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero__slogan {
  display: block;
  max-width: 760px;
  margin: 0 auto 18px auto;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--red);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero .lead {
  max-width: 760px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.42;
  color: #2b3342;
}

.hero__services {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  max-width: 980px;
  margin: 18px auto 24px auto;
  padding: 8px 0 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.hero__services::-webkit-scrollbar {
  display: none;
}

.hero__services span {
  background: transparent;
  color: var(--navy-strong);
  padding: 0 18px 0 0;
  margin-right: 18px;
  border: none;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  position: relative;
}

.hero__services span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  transform: translateY(-50%);
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.hero__badges span {
  background: #f5f7fb;
  color: var(--navy-strong);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid rgba(24,36,60,0.08);
}

.intro, .servicios, .trabajos, .opiniones, .contacto {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  padding-left: max(32px, calc((100vw - var(--content-width)) / 2 + 32px));
  padding-right: max(32px, calc((100vw - var(--content-width)) / 2 + 32px));
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  background: #f3f6fa;
  padding-top: 36px;
  padding-bottom: 18px;
}

.intro__media {
  width: 100%;
  max-width: 330px;
  justify-self: center;
  background: transparent;
}

.intro-carousel {
  position: relative;
}

.intro-carousel__viewport {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #f3f6fa;
}

.intro-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.55s ease;
}

.intro-carousel__slide {
  flex: 0 0 100%;
  background: #f3f6fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.intro-carousel__control {
  position: absolute;
  top: calc(50% - 18px);
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 24, 45, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 20, 31, 0.14);
  cursor: pointer;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  z-index: 2;
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.intro-carousel__control:hover {
  transform: translateY(-50%) scale(1.04);
  background: rgba(15, 24, 45, 0.28);
  box-shadow: 0 14px 28px rgba(16, 20, 31, 0.18);
}

.intro-carousel__control.prev {
  left: 8px;
}

.intro-carousel__control.next {
  right: 8px;
}

.intro-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.intro-carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(24, 36, 60, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.intro-carousel__dot.is-active {
  background: var(--red);
  transform: scale(1.12);
}

.intro__content {
  max-width: 100%;
  margin: 0;
}

.intro__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  justify-content: flex-start;
}

.intro__points span {
  background: #f5f7fb;
  color: var(--navy-strong);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(24,36,60,0.08);
  font-weight: 600;
}

.servicios {
  background: #ffffff;
  padding-top: 20px;
  padding-bottom: 36px;
}

.trabajos {
  background: #e9eef5;
  padding-top: 36px;
  padding-bottom: 36px;
}

.opiniones {
  background: #ffffff;
  padding-top: 36px;
  padding-bottom: 36px;
}

.contacto {
  background: #f3f6fa;
  padding-top: 36px;
  padding-bottom: 36px;
}

.grid {
  display: grid;
  gap: 18px;
}

.cards-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(24,36,60,0.08);
  box-shadow: var(--shadow-soft);
}

.card--service {
  min-height: 180px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.card--service__list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.card--service__list li {
  margin-bottom: 4px;
}

.card--quote p { font-style: italic; color: #2f3646; }
.card--quote h4 { margin-bottom: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  background: var(--red);
  color: white;
  border-radius: 12px;
  font-weight: 700;
  border: 2px solid var(--red);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--ghost {
  background: transparent;
  color: var(--navy-strong);
  border-color: rgba(24,36,60,0.2);
  box-shadow: none;
}
.btn--ghost:hover { color: var(--red); border-color: var(--red); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
  align-items: stretch;
}

.project-card {
  background: #ffffff;
  border-radius: 0;
  border: 1px solid rgba(24,36,60,0.08);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
}

.project-card__hero {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f6fa;
  padding: 10px;
}

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

.project-card__body {
  padding: 16px 16px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-card__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f4f9;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card__body h3 {
  font-size: 22px;
  line-height: 1.12;
  margin-bottom: 6px;
  min-height: 2.5em;
}

.project-card__body p {
  margin-bottom: 0;
}

.project-card__details {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.project-card__details li {
  margin-bottom: 4px;
}

.project-card__thumbs {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px 16px;
}

.project-card__thumbs--3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.project-card__thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 0;
  display: block;
  background: #f4f6fa;
}

.opiniones .card { background: #f7f9fc; }

.testimonial-carousel {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 56px 36px 56px;
}

.testimonial-carousel__viewport {
  overflow: hidden;
}

.testimonial-carousel__track {
  display: flex;
  transition: transform 0.55s ease;
}

.testimonial-card {
  flex: 0 0 100%;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 34px 30px;
  border-radius: 0;
}

.testimonial-card p {
  font-size: 22px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.testimonial-card h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.testimonial-card small {
  color: var(--muted);
  font-size: 14px;
}

.testimonial-carousel__control {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: var(--navy-strong);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.testimonial-carousel__control.prev {
  left: 0;
}

.testimonial-carousel__control.next {
  right: 0;
}

.testimonial-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.testimonial-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(24,36,60,0.18);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.testimonial-carousel__dot.is-active {
  background: var(--red);
  transform: scale(1.15);
}

.contacto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: start;
}

.contacto__data div { margin-bottom: 8px; color: #2f3646; }

.contacto__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  align-items: center;
  justify-content: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(24,36,60,0.12);
  background: rgba(255,255,255,0.94);
  color: #10141f;
  box-shadow: 0 10px 22px rgba(16,20,31,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-btn__icon {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}

.social-btn--whatsapp svg {
  width: 23px;
  height: 23px;
}

.social-btn--facebook svg {
  width: 18px;
  height: 28px;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(16,20,31,0.12);
}

.social-btn:hover .social-btn__icon {
  transform: scale(1.04);
}

.social-btn--whatsapp {
  color: #157347;
}

.social-btn--whatsapp .social-btn__icon {
  background: rgba(37,211,102,0.14);
}

.social-btn--whatsapp:hover {
  border-color: rgba(37,211,102,0.3);
  background: rgba(244,252,247,0.98);
}

.social-btn--facebook {
  color: #1b4f9c;
}

.social-btn--facebook .social-btn__icon {
  background: rgba(24,119,242,0.12);
}

.social-btn--facebook:hover {
  border-color: rgba(27,79,156,0.28);
  background: rgba(235,242,252,0.95);
}

.social-btn--instagram {
  color: #b33266;
}

.social-btn--instagram .social-btn__icon {
  background: linear-gradient(135deg, rgba(253,218,88,0.2), rgba(214,41,118,0.18), rgba(79,91,213,0.16));
}

.social-btn--instagram svg {
  width: 24px;
  height: 24px;
}

.social-btn--instagram:hover {
  border-color: rgba(179,50,102,0.24);
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,235,241,0.96));
}

.form {
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(24,36,60,0.08);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
}

.form input, .form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d7dce5;
  font-size: 15px;
  font-family: inherit;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form input:focus, .form textarea:focus {
  border-color: var(--red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(192,34,34,0.12);
}

.form__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.form__hint { color: var(--muted); font-size: 14px; }

.wa-floating {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
}

.site-footer {
  background: #111111;
  color: rgba(255, 255, 255, 0.82);
  padding: 34px 20px 28px 20px;
}

.site-footer__inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.site-footer__brand {
  margin: 0 0 8px 0;
  color: #ffffff;
  font-family: 'Space Grotesk', 'Work Sans', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-footer__text {
  margin: 0 0 8px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.site-footer__copy {
  margin: 14px 0 0 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  .nav { position: sticky; }
  .nav__links { position: absolute; inset: 64px 16px auto 16px; background: white; border-radius: 12px; padding: 16px; flex-direction: column; align-items: flex-start; gap: 12px; box-shadow: var(--shadow-soft); transform: scale(0.98); opacity: 0; pointer-events: none; transition: 0.2s ease; }
  .nav__links.show { opacity: 1; transform: scale(1); pointer-events: all; }
  .nav__toggle { display: inline-flex; flex-direction: column; }
  section { padding: 64px 16px; }
  .hero { padding-top: 4px; }
  .hero__intro {
    padding-bottom: 18px;
  }
  .hero__content {
    padding-top: 28px;
  }
  .intro {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 20px;
  }
  .intro__media {
    max-width: 320px;
  }
  .intro-carousel__control {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
  .servicios,
  .trabajos,
  .opiniones,
  .contacto {
    padding: 28px 20px;
  }
  .testimonial-carousel {
    padding: 0 0 30px 0;
  }
  .testimonial-carousel__control {
    display: none;
  }
  .testimonial-card {
    min-height: 210px;
    padding: 28px 20px;
  }
  .testimonial-card p {
    font-size: 18px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .hero__logo { width: min(300px, 72vw); }
  .hero__services {
    justify-content: flex-start;
    margin: 16px auto 20px auto;
    padding: 6px 0 10px 0;
  }
  .hero__slogan {
    font-size: 16px;
    line-height: 1.35;
  }
  .hero__services span {
    font-size: 14px;
    padding-right: 14px;
    margin-right: 14px;
  }
  .contacto {
    gap: 6px;
  }
  .contacto__socials {
    justify-content: center;
    margin-top: 12px;
    margin-bottom: 4px;
  }
  .social-btn {
    width: 52px;
    height: 52px;
  }
  .form {
    margin-top: 0;
  }
  .wa-floating {
    right: 14px;
    bottom: 14px;
  }
  .hero h1 {
    font-size: clamp(34px, 8vw, 48px);
    line-height: 1.08;
  }
  .hero .lead {
    font-size: 18px;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.4s ease, transform 0.4s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
