:root {
  --bg: #f6f2ec;
  --surface: #ffffff;
  --surface-soft: #fff7ef;
  --text: #111111;
  --text-soft: #616161;
  --line: rgba(17, 17, 17, 0.08);
  --accent: #f97316;
  --accent-strong: #d84f0f;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --dark: #101010;
  --shadow: 0 24px 60px rgba(17, 17, 17, 0.12);
  --shadow-soft: 0 18px 42px rgba(17, 17, 17, 0.08);
  --radius: 1.75rem;
  --radius-lg: 2.25rem;
  --bs-body-font-family: "Sora", "Segoe UI", sans-serif;
  --bs-body-color: var(--text);
  --bs-body-bg: var(--bg);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.15), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(17, 17, 17, 0.08), transparent 22%),
    linear-gradient(180deg, #fff9f2 0%, #f6f2ec 45%, #f8f5f0 100%);
  color: var(--text);
}

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

a {
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1055;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--dark);
  color: var(--surface);
}

.skip-link:focus {
  top: 1rem;
}

.section-space {
  padding: 6.5rem 0;
}

.eyebrow {
  margin-bottom: 0.9rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 2.75rem;
}

.section-heading h2,
.hero h1,
.contact-panel h2 {
  margin: 0 0 1rem;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.section-heading h2,
.contact-panel h2 {
  font-size: clamp(2.5rem, 4vw, 4.4rem);
}

.section-heading p,
.service-card p,
.pricing-card p,
.process-card p,
.form-note,
.hero-card .text-muted {
  color: var(--text-soft) !important;
}

.site-header {
  background: rgba(246, 242, 236, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  z-index: 1030;
}

.site-header.is-scrolled {
  background: rgba(246, 242, 236, 0.94);
  border-color: rgba(17, 17, 17, 0.06);
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.06);
}

.navbar {
  --bs-navbar-padding-y: 0;
}

.navbar-brand {
  margin-right: 0;
  white-space: normal;
}

.brand {
  max-width: min(100%, 20rem);
  min-width: 0;
  color: var(--text);
}

.brand__logo {
  width: 76px;
  height: 76px;
  border-radius: 1.35rem;
  object-fit: cover;
  background: #fff6df;
  box-shadow: var(--shadow-soft);
}

.brand__copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.brand__eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.brand__title {
  display: block;
  max-width: 14rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.navbar-nav .nav-link {
  position: relative;
  padding: 0.6rem 0.95rem !important;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.33rem;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 1rem;
  background: rgba(16, 16, 16, 0.06);
}

.nav-toggle span {
  width: 1.4rem;
  height: 2px;
  margin: 0 auto;
  background: var(--dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.header-cta {
  min-width: 0;
  align-items: center;
}

.phone-pill,
.btn-pill {
  min-height: 3.35rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  background: rgba(16, 16, 16, 0.06);
  white-space: nowrap;
}

.btn-accent {
  color: var(--surface);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  border: 0;
  box-shadow: 0 14px 34px rgba(249, 115, 22, 0.28);
}

.btn-accent:hover,
.btn-accent:focus-visible {
  color: var(--surface);
  background: linear-gradient(135deg, #ff861e 0%, #e85e10 100%);
}

.btn-dark-soft {
  color: var(--surface);
  background: var(--dark);
  border: 0;
  box-shadow: 0 14px 30px rgba(16, 16, 16, 0.18);
}

.btn-dark-soft:hover,
.btn-dark-soft:focus-visible {
  color: var(--surface);
  background: #1a1a1a;
}

.btn-outline-light-soft {
  color: var(--surface);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(14px);
}

.btn-outline-light-soft:hover,
.btn-outline-light-soft:focus-visible {
  color: var(--surface);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
}

.btn-outline-dark-soft {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(16, 16, 16, 0.16);
}

.btn-outline-dark-soft:hover,
.btn-outline-dark-soft:focus-visible {
  color: var(--text);
  background: rgba(16, 16, 16, 0.05);
  border-color: rgba(16, 16, 16, 0.24);
}

.btn {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.hero {
  padding-top: 5rem;
  padding-bottom: 2.5rem;
}

.hero-shell {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(16, 16, 16, 0.84) 0%, rgba(16, 16, 16, 0.52) 48%, rgba(16, 16, 16, 0.16) 100%),
    url("../img/fachada_casa.jpg") center center / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
    linear-gradient(130deg, rgba(249, 115, 22, 0.08), transparent 32%);
  pointer-events: none;
}

.hero-shell::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(34vw, 22rem);
  height: min(34vw, 22rem);
  background: radial-gradient(circle, rgba(249, 115, 22, 0.4), transparent 68%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--surface);
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.7rem, 7vw, 7rem);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-lead {
  max-width: 40rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-points {
  max-width: 46rem;
}

.hero-point {
  height: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-card,
.impact-card,
.service-card,
.pricing-card,
.process-card,
.contact-panel,
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  position: relative;
  z-index: 1;
  max-width: 23rem;
  padding: 1.9rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 249, 243, 0.88);
  backdrop-filter: blur(14px);
}

.display-amount {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 0.92;
}

.hero-meta {
  display: grid;
  gap: 0.9rem;
}

.hero-meta__item,
.contact-detail {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--surface);
}

.hero-meta__item span,
.contact-detail span {
  color: var(--text-soft);
}

.impact-strip {
  padding-top: 0;
}

.impact-card {
  height: 100%;
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.86);
}

.impact-card__value {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 3.2rem;
  color: var(--accent-strong);
  line-height: 0.9;
}

.service-card,
.pricing-card,
.process-card,
.form-card {
  background: rgba(255, 255, 255, 0.88);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.service-card .card-body,
.pricing-card .card-body,
.process-card .card-body {
  padding: 1.75rem;
}

.service-card::before,
.pricing-card::before,
.process-card::before,
.form-card::before {
  content: "";
  display: block;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.service-index,
.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1rem;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.service-card:hover,
.pricing-card:hover,
.process-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.14);
  box-shadow: 0 24px 44px rgba(17, 17, 17, 0.1);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-strong);
  font-weight: 700;
}

.service-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.service-link:hover::after,
.service-link:focus-visible::after {
  transform: translateX(0.3rem);
}

.projects {
  color: var(--surface);
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.96), rgba(17, 17, 17, 1)),
    url("../img/obra_publica(mejorar imagen).jpg") center center / cover no-repeat;
}

.projects .section-heading p,
.projects .section-heading h2,
.projects .eyebrow {
  color: var(--surface) !important;
}

.projects .section-heading p {
  opacity: 0.76;
}

.project-trigger {
  padding: 0;
  border: 0;
  background: transparent;
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.24);
  background: #111;
}

.project-card__image {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project-card__overlay {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(17, 17, 17, 0.88) 70%);
}

.project-card__overlay strong {
  font-size: 1.15rem;
}

.project-card__overlay span {
  color: rgba(255, 255, 255, 0.72);
}

.project-trigger:hover .project-card__image,
.project-trigger:focus-visible .project-card__image {
  transform: scale(1.06);
}

.pricing-card--featured {
  transform: translateY(-0.4rem);
  background: linear-gradient(180deg, rgba(255, 240, 224, 0.98), rgba(255, 255, 255, 0.98));
  border-color: rgba(249, 115, 22, 0.18);
}

.contact-panel {
  overflow: hidden;
  border: 0;
  background:
    linear-gradient(180deg, rgba(16, 16, 16, 0.96), rgba(16, 16, 16, 0.92)),
    url("../img/fachada_casa.jpg") center center / cover no-repeat;
  color: var(--surface);
}

.contact-panel .eyebrow,
.contact-panel h2,
.contact-copy {
  color: var(--surface) !important;
}

.contact-copy {
  opacity: 0.78;
}

.contact-phone {
  display: inline-block;
  margin: 0.3rem 0 1.6rem;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: clamp(3rem, 5vw, 4.7rem);
  line-height: 0.92;
  color: var(--surface);
}

.contact-detail {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.contact-detail span {
  color: rgba(255, 255, 255, 0.72);
}

.form-card .card-body {
  padding: 0;
}

.form-control,
.form-select {
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 1rem;
  background: #fffdfa;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(249, 115, 22, 0.65);
  box-shadow: 0 0 0 0.25rem rgba(249, 115, 22, 0.12);
}

.form-control {
  resize: vertical;
}

.site-footer {
  padding: 1.8rem 0 6.5rem;
}

.site-footer .container {
  padding-top: 1.7rem;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.footer-phone {
  font-weight: 700;
  color: var(--text);
}

.floating-whatsapp {
  position: fixed;
  right: 1.2rem;
  bottom: 1.5rem;
  z-index: 1035;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.1rem;
  min-height: 3.6rem;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: #25d366;
  color: #062d14;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(37, 211, 102, 0.28);
}

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1rem;
  z-index: 1034;
}

.mobile-cta__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 1.5rem;
  background: rgba(16, 16, 16, 0.94);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.mobile-cta__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  border-radius: 1rem;
  font-weight: 700;
}

.mobile-cta__link--dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--surface);
}

.mobile-cta__link--accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: var(--surface);
}

.mobile-cta__link--whatsapp {
  background: #25d366;
  color: #062d14;
}

.project-modal .modal-content {
  border: 0;
  border-radius: 1.8rem;
  background: #111;
  color: var(--surface);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

.project-modal__image {
  width: 100%;
  max-height: 70vh;
  margin-bottom: 1.25rem;
  border-radius: 1.2rem;
  object-fit: cover;
}

.project-modal__text {
  color: rgba(255, 255, 255, 0.78);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 992px) {
  .navbar > .container {
    display: grid;
    grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
  }

  .navbar-expand-lg .navbar-collapse {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
  }

  .navbar-nav {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .navbar-nav .nav-link {
    padding: 0.55rem 0.72rem !important;
  }

  .header-cta {
    justify-self: end;
    display: flex !important;
    justify-content: flex-end;
    gap: 0.75rem !important;
  }

  .phone-pill {
    min-height: 3.2rem;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
  }

  .btn-pill {
    padding-inline: 1.2rem;
  }
}

@media (max-width: 1180px) and (min-width: 992px) {
  .phone-pill {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .section-space {
    padding: 5rem 0;
  }

  .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-card {
    max-width: none;
    margin: 0 1.25rem 1.25rem;
  }

  .floating-whatsapp {
    bottom: 5.8rem;
  }
}

@media (max-width: 767.98px) {
  .brand__logo {
    width: 3.9rem;
    height: 3.9rem;
    border-radius: 1.15rem;
  }

  .brand__title {
    max-width: 12.5rem;
    font-size: 0.98rem;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 15vw, 5.2rem);
  }

  .hero-shell {
    border-radius: 2rem;
  }

  .hero-content {
    padding-bottom: 1.5rem !important;
  }

  .project-card__image {
    height: 17rem;
  }

  .pricing-card--featured {
    transform: none;
  }

  .floating-whatsapp {
    display: none;
  }

  .site-footer {
    padding-bottom: 7rem;
  }
}

@media (max-width: 575.98px) {
  .floating-whatsapp {
    right: 1rem;
    min-width: 8.3rem;
  }

  .contact-phone {
    font-size: 2.9rem;
  }
}
