/* ═══════════════════════════════════════════
   Angularis — Design System
   ═══════════════════════════════════════════ */

:root {
  --brand: #ed8a50;
  --brand-deep: #d4733f;
  --brand-soft: rgba(237, 138, 80, 0.12);
  --ink: #1c1917;
  --ink-muted: #57534e;
  --ink-faint: #a8a29e;
  --surface: #f3f1ee;
  --surface-raised: #faf9f7;
  --surface-deep: #e8e4df;
  --line: rgba(28, 25, 23, 0.1);
  --line-strong: rgba(28, 25, 23, 0.18);
  --white: #ffffff;
  --footer: #181614;

  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;

  --nav-h: 5rem;
  --page-gutter: 1.25rem;
  --page-max: 1480px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 4px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.container-site {
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
  margin-inline: auto;
}

.container-narrow {
  width: min(760px, calc(100% - (var(--page-gutter) * 2)));
  margin-inline: auto;
}

@media (min-width: 768px) {
  :root {
    --page-gutter: 2rem;
  }
}

@media (min-width: 1200px) {
  :root {
    --page-gutter: 2.5rem;
  }
}

/* ─── Buttons ─── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    color 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
  text-decoration: none !important;
}

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

.btn-brand {
  background: var(--brand);
  color: var(--white) !important;
  border-color: var(--brand);
}

.btn-brand:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: var(--white) !important;
  box-shadow: 0 10px 28px rgba(237, 138, 80, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white) !important;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white) !important;
}

.btn-outline {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--ink);
  color: var(--ink) !important;
}

.btn-outline-light {
  background: transparent;
  color: var(--white) !important;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white) !important;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Override Bootstrap primary */
.btn-primary {
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
  color: var(--white) !important;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-deep) !important;
  border-color: var(--brand-deep) !important;
}

.btn-outline-primary {
  color: var(--brand) !important;
  border-color: var(--brand) !important;
}

.btn-outline-primary:hover {
  background: var(--brand) !important;
  color: var(--white) !important;
}

.text-primary {
  color: var(--brand) !important;
}

/* ─── Navbar ─── */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1040;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
  background: transparent;
}

.site-nav.is-scrolled {
  background: rgba(58, 53, 48, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
  margin-inline: auto;
}

.nav-logo {
  display: block;
  line-height: 0;
}

.nav-logo img {
  height: 72px;
  width: auto;
  transition: opacity 0.3s ease;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  transition: background 0.3s ease, transform 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.3s ease, background 0.3s ease;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-links .nav-cta {
  margin-left: 0.35rem;
  background: var(--brand);
  color: var(--white) !important;
  font-weight: 600;
}

.nav-links .nav-cta:hover {
  background: var(--brand-deep);
  color: var(--white) !important;
}

.nav-links .nav-work {
  margin-left: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white) !important;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
}

.nav-links .nav-work:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white) !important;
}

@media (max-width: 991px) {
  .nav-toggle {
    display: flex;
  }

  .nav-logo img {
    height: 64px;
  }

  .site-nav {
    background: rgba(58, 53, 48, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(58, 53, 48, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius);
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-links .nav-cta {
    margin: 0.5rem 0 0;
    text-align: center;
    justify-content: center;
  }

  .nav-links .nav-work {
    margin: 0.5rem 0 0;
    text-align: center;
    justify-content: center;
  }
}

/* ─── Hero ─── */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 82% 12%, rgba(237, 138, 80, 0.22), transparent 55%),
    radial-gradient(ellipse 45% 40% at 8% 85%, rgba(237, 138, 80, 0.08), transparent 55%),
    linear-gradient(160deg, #2c2724 0%, #1a1715 46%, #100e0c 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 75% 20%, rgba(0, 0, 0, 0.6), transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 75% 20%, rgba(0, 0, 0, 0.6), transparent 75%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 120%, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(40rem, calc(100% - (var(--page-gutter) * 2)));
  margin-left: max(var(--page-gutter), calc((100% - var(--page-max)) / 2));
  margin-right: auto;
  padding: calc(var(--nav-h) + 2rem) 0 3.25rem;
}

@media (min-width: 768px) {
  .hero-content {
    padding: calc(var(--nav-h) + 2.5rem) 0 4rem;
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 1.15rem;
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.85s var(--ease) 0.15s forwards;
}

.hero-kicker::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--brand);
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5.8vw, 4.35rem);
  letter-spacing: -0.035em;
  line-height: 1.03;
  max-width: 13ch;
  margin: 0 0 1.25rem;
  color: var(--white);
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp 0.9s var(--ease) 0.3s forwards;
}

.hero-headline span {
  position: relative;
  color: var(--brand);
  font-style: italic;
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 38ch;
  margin: 0 0 2rem;
  font-weight: 400;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.9s var(--ease) 0.45s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(16px);
  animation: revealUp 0.9s var(--ease) 0.6s forwards;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  list-style: none;
  margin: 3rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 34rem;
  opacity: 0;
  transform: translateY(16px);
  animation: revealUp 0.9s var(--ease) 0.75s forwards;
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.1;
}

.hero-stats span {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 640px) {
  .hero-stats {
    gap: 1.5rem 2rem;
    margin-top: 2.25rem;
  }

  .hero-stats strong {
    font-size: 1.35rem;
  }
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-scroll {
  position: absolute;
  right: max(var(--page-gutter), calc((100% - var(--page-max)) / 2));
  bottom: 2rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0;
  animation: revealUp 0.8s var(--ease) 1s forwards;
}

.hero-scroll-line {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand);
  transform: translateX(-100%);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding-bottom: 4rem;
  }

  .hero-scroll {
    right: auto;
    left: 1rem;
    bottom: 1.25rem;
  }
}

/* ─── Sections common ─── */

.section {
  padding: clamp(2.75rem, 5.5vw, 4.5rem) 0;
  position: relative;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.55rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  margin: 0 0 0.65rem;
  max-width: 16ch;
}

.section-intro {
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 42ch;
  margin: 0;
}

.section-head {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ─── Services (editorial, no cards) ─── */

.services {
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(237, 138, 80, 0.08), transparent),
    var(--surface-raised);
}

.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 1rem 1.25rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease;
}

.service-item:hover {
  background: linear-gradient(90deg, var(--brand-soft), transparent);
}

.service-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand);
  letter-spacing: 0.04em;
}

.service-body h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0 0 0.4rem;
}

.service-body p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 48ch;
}

.service-icon {
  color: var(--ink-faint);
  font-size: 1.35rem;
  transition: color 0.3s ease, transform 0.35s var(--ease);
}

.service-item:hover .service-icon {
  color: var(--brand);
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .service-item {
    grid-template-columns: 2.5rem 1fr;
    gap: 0.75rem 1rem;
  }

  .service-icon {
    display: none;
  }
}

/* ─── Projects ─── */

.projects {
  background: var(--surface);
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-featured {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0;
  height: 480px;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
  text-align: left;
  width: 100%;
  font: inherit;
  align-items: stretch;
}

.project-featured:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.project-gallery {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.project-gallery .carousel,
.project-gallery .carousel-inner,
.project-gallery .carousel-item {
  height: 100%;
}

.project-gallery .carousel-item {
  position: relative;
}

.project-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1s var(--ease);
}

.project-featured:hover .project-gallery img {
  transform: scale(1.04);
}

.project-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background:
    linear-gradient(160deg, #221f1c 0%, #181614 100%);
}

.project-meta .section-label {
  margin-bottom: 1.25rem;
}

.project-meta h3 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: var(--white);
  margin: 0 0 0.75rem;
}

.project-meta p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 1.5rem;
  max-width: 32ch;
}

.project-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.project-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 700;
}

.project-stat span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.95rem;
}

.project-cta i {
  transition: transform 0.35s var(--ease);
}

.project-featured:hover .project-cta i {
  transform: translateX(6px);
}

@media (max-width: 900px) {
  .project-featured {
    grid-template-columns: 1fr;
    grid-template-rows: 260px auto;
    height: auto;
  }

  .project-gallery {
    height: 260px;
  }

  .project-meta {
    height: auto;
  }
}

/* ─── Precotización ─── */

.quote {
  background: var(--surface-deep);
  position: relative;
  overflow: hidden;
}

.quote::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 138, 80, 0.18), transparent 70%);
  top: -120px;
  right: -80px;
  pointer-events: none;
}

.quote-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  max-width: 1260px;
  margin-inline: auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(28, 25, 23, 0.15);
}

.quote-intro {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 4vw, 4rem);
  color: var(--white);
  background:
    linear-gradient(150deg, rgba(24, 22, 20, 0.96), rgba(28, 25, 23, 0.88)),
    url("../img/projects/project_2/image5.jpg") center / cover;
}

.quote-intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -80px -100px auto;
  width: 260px;
  aspect-ratio: 1;
  border: 1px solid rgba(237, 138, 80, 0.35);
  border-radius: 50%;
}

.quote-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.quote-eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
}

.quote-intro h2 {
  margin: 1.5rem 0 1.25rem;
  color: var(--white);
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  line-height: 1.02;
}

.quote-intro h2 span {
  color: var(--brand);
}

.quote-intro > div > p {
  max-width: 39ch;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.98rem;
  line-height: 1.75;
}

.quote-steps {
  display: grid;
  gap: 0;
  margin: 3rem 0;
  padding: 0;
  list-style: none;
}

.quote-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding: 0 0 1.7rem;
}

.quote-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: 2.6rem;
  bottom: 0.2rem;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.quote-steps li > span {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(237, 138, 80, 0.5);
  border-radius: 50%;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 0.72rem;
}

.quote-steps strong,
.quote-steps small {
  display: block;
}

.quote-steps strong {
  color: var(--white);
  font-size: 0.92rem;
  margin: 0.05rem 0 0.2rem;
}

.quote-steps small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
}

.quote-assurance {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  line-height: 1.5;
}

.quote-assurance i {
  color: var(--brand);
  font-size: 1rem;
}

.quote-assurance strong {
  display: block;
  color: rgba(255, 255, 255, 0.85);
}

.quote-panel {
  position: relative;
  background: var(--surface-raised);
  padding: clamp(2rem, 4vw, 4rem);
}

.quote-form-head {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.quote-form-count {
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quote-form-head h3 {
  margin: 0.55rem 0 0.6rem;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.quote-form-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.86rem;
}

.quote-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.quote-field {
  min-width: 0;
}

.quote-field-wide {
  grid-column: 1 / -1;
}

.quote-section-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 2.25rem 0 1rem;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-section-label span {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: 0.66rem;
}

.quote-panel .form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.quote-panel .form-control,
.quote-panel .form-select {
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(28, 25, 23, 0.14);
  background-color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.quote-panel .form-control:focus,
.quote-panel .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
  outline: none;
}

.quote-panel .form-control::placeholder {
  color: var(--ink-faint);
}

.quote-panel textarea.form-control {
  min-height: 7rem;
  resize: vertical;
}

.quote-panel .form-check {
  margin: 0;
  padding: 0;
}

.quote-panel .form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

.quote-panel .form-check-label {
  display: flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink-muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.quote-panel .form-check-input {
  position: absolute;
  opacity: 0;
}

.quote-panel .form-check-input:checked + .form-check-label {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 600;
}

.spaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.quote-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.quote-submit p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.75rem;
}

.quote-submit p i {
  margin-right: 0.35rem;
  color: var(--brand-deep);
}

.quote-submit .btn {
  min-width: 260px;
}

.quote-submit .btn i {
  transition: transform 0.3s var(--ease);
}

.quote-submit .btn:hover i {
  transform: translateX(4px);
}

@media (max-width: 960px) {
  .quote-shell {
    grid-template-columns: 1fr;
  }

  .quote-intro {
    min-height: auto;
  }

  .quote-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .quote-steps li {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .quote-steps li::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .quote-shell {
    border-radius: 12px;
  }

  .quote-intro,
  .quote-panel {
    padding: 1.5rem;
  }

  .quote-intro h2 {
    font-size: 2.35rem;
  }

  .quote-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
  }

  .quote-steps li {
    grid-template-columns: 2.5rem 1fr;
  }

  .quote-fields-grid {
    grid-template-columns: 1fr;
  }

  .quote-field-wide {
    grid-column: auto;
  }

  .quote-submit {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .quote-submit .btn {
    width: 100%;
    min-width: 0;
  }
}

/* ─── WhatsApp float ─── */

.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1030;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: var(--white) !important;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  transition: transform 0.35s var(--ease), background 0.3s ease;
  text-decoration: none !important;
}

.whatsapp-float:hover {
  background: #1ebe57;
  transform: translateY(-3px);
  color: var(--white) !important;
}

.whatsapp-float i {
  font-size: 1.35rem;
}

.whatsapp-text {
  display: none;
}

@media (min-width: 768px) {
  .whatsapp-text {
    display: inline;
  }
}

/* ─── Footer ─── */

.site-footer {
  background: var(--footer);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 64px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  margin: 0;
  max-width: 32ch;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--white);
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}

.contact-info {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.925rem;
}

.contact-info i {
  color: var(--brand);
  width: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.contact-info a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.25s ease;
}

.contact-info a:hover {
  color: var(--brand);
}

.social-links {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--white);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
  color: var(--white);
}

.footer-bottom {
  padding-top: 1.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand img {
    margin-inline: auto;
  }

  .footer-brand p {
    margin-inline: auto;
  }

  .contact-info li {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* ─── Modals ─── */

.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0.5rem 0.75rem 1rem;
  font-family: var(--font-body);
}

.modal-content .modal-title,
.modal-content h3,
.modal-content h5,
.modal-content h6 {
  font-family: var(--font-display);
}

.btn-close {
  background-color: var(--surface);
  padding: 10px;
  border-radius: 50%;
  opacity: 1;
}

.modal-logo {
  height: auto;
  width: 120px;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

.contact-form .form-control,
.contratista-form .form-control,
.contratista-form .form-select {
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
}

.contact-form .form-control:focus,
.contratista-form .form-control:focus,
.contratista-form .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.direct-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.direct-contact .btn {
  border-radius: var(--radius);
}

.contact-schedule {
  color: var(--ink-muted);
  font-size: 0.875rem;
}

#modalExito .fa-check-circle {
  color: var(--brand) !important;
}

/* ─── Project modal ─── */

.project-modal-dialog {
  max-width: min(1040px, calc(100% - 1.5rem));
  margin: 1rem auto;
}

.project-modal {
  position: relative;
  padding: 0 !important;
  overflow: hidden;
  background: #181614;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  height: min(560px, 86vh);
}

.project-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 5;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(24, 22, 20, 0.55);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.project-modal-close:hover {
  background: var(--brand);
  transform: scale(1.05);
}

.project-modal-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  height: 100%;
  align-items: stretch;
}

.project-modal-gallery {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #111;
}

.project-modal-gallery .carousel {
  position: absolute;
  inset: 0;
  height: 100%;
}

.project-modal-gallery .carousel-inner,
.project-modal-gallery .carousel-item {
  height: 100%;
}

.project-modal-gallery .carousel-item {
  position: relative;
}

.project-modal-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.project-modal-nav {
  width: auto;
  opacity: 1;
}

.project-modal-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.project-modal-nav:hover .project-modal-nav-btn {
  background: var(--brand);
  color: var(--white);
  transform: scale(1.06);
}

.project-modal-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 1.75rem 1.85rem;
  background: linear-gradient(165deg, #221f1c 0%, #181614 100%);
  color: rgba(255, 255, 255, 0.78);
}

.project-modal-info .section-label {
  margin-bottom: 0.5rem;
}

.project-modal-info h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  color: var(--white);
  margin: 0 0 0.75rem;
}

.project-modal-desc {
  margin: 0 0 1.1rem;
  line-height: 1.6;
  font-size: 0.92rem;
}

.project-modal-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1.1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-modal-stats .project-stat strong {
  color: var(--white);
  font-size: 1.1rem;
}

.project-modal-services h3 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 0.6rem;
  font-weight: 600;
}

.project-modal-services ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-modal-services li {
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}

.project-modal-info .btn-brand {
  align-self: flex-start;
  padding: 0.7rem 1.35rem;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .project-modal {
    height: auto;
    max-height: 90vh;
    overflow: auto;
  }

  .project-modal-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .project-modal-gallery {
    height: 240px;
  }

  .project-modal-gallery .carousel {
    position: absolute;
    inset: 0;
  }

  .project-modal-info {
    height: auto;
    overflow: visible;
    padding: 1.5rem;
  }

  .project-modal-close {
    background: rgba(24, 22, 20, 0.7);
  }
}

/* ─── Apply / contractors modal ─── */

.apply-modal-dialog {
  max-width: min(920px, calc(100% - 1.25rem));
  margin: 1rem auto;
}

.apply-modal {
  position: relative;
  padding: 0 !important;
  overflow: hidden;
  background: #181614;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  max-height: min(640px, 90vh);
}

.apply-modal-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.25fr;
  height: 100%;
  max-height: min(640px, 90vh);
}

.apply-modal-aside {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background:
    linear-gradient(160deg, rgba(237, 138, 80, 0.16), transparent 55%),
    linear-gradient(165deg, #221f1c 0%, #181614 100%);
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.apply-modal-aside h2 {
  color: var(--white);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  margin: 0 0 0.75rem;
}

.apply-modal-aside > p {
  margin: 0 0 1.5rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.apply-modal-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.apply-modal-perks li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.apply-modal-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.apply-modal-body {
  padding: 1.5rem 1.5rem 1.25rem;
  overflow: auto;
  background: #1c1917;
}

.apply-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 0.9rem;
  margin-bottom: 1rem;
}

.apply-field-full {
  grid-column: 1 / -1;
}

.apply-modal .form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}

.apply-modal .form-control,
.apply-modal .form-select {
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-size: 0.9rem;
}

.apply-modal .form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.apply-modal .form-select option {
  color: var(--ink);
  background: var(--white);
}

.apply-modal .form-control:focus,
.apply-modal .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  outline: none;
}

.apply-modal .btn-brand {
  margin-top: 0.25rem;
}

.apply-modal-note {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

@media (max-width: 800px) {
  .apply-modal {
    max-height: 92vh;
  }

  .apply-modal-grid {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .apply-modal-aside {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 1.35rem 1.15rem;
  }

  .apply-modal-perks {
    display: none;
  }

  .apply-modal-body {
    padding: 1.15rem 1.15rem 1.25rem;
  }

  .apply-fields {
    grid-template-columns: 1fr;
  }
}

/* Disable old bootstrap card hover conflicts */
.card {
  border: none;
  box-shadow: none;
  background: transparent;
}
