:root {
  --brand: #1f3b3a;
  --accent: #b08d57;
}

html{scroll-behavior:smooth;}

body{font-family:'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;}

.page-bg{
  background:
    radial-gradient(1100px 600px at 10% -10%, rgba(176,141,87,.18), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(31,59,58,.12), transparent 55%),
    #fff;
}

/* Navbar */
.navbar-brand{font-weight:700; letter-spacing:.02em;}
.nav-link{font-weight:500;}

/* Buttons */
.btn-brand{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
}
.btn-brand:hover{filter:brightness(.95); color:#fff;}
.btn-outline-accent{
  border-color:var(--accent);
  color:var(--accent);
}
.btn-outline-accent:hover{background:var(--accent); color:#fff;}

/* Hero */
.hero{
  position:relative;
  overflow:hidden;
  border-radius:1.25rem;
}
.hero img{
  width:100%;
  height:420px;
  object-fit:cover;
  filter:saturate(1.05) contrast(1.02);
}
.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.20) 55%, rgba(0,0,0,0));
}

.section-title{letter-spacing:-.01em;}

/* Cards */
.card-hover{
  transition:transform .15s ease, box-shadow .15s ease;
}
.card-hover:hover{
  transform:translateY(-2px);
  box-shadow:0 .75rem 1.5rem rgba(0,0,0,.08);
}

/* Footer */
.site-footer {
  background: #06162b;
  color: rgba(255,255,255,.88);
  font-size: 0.92rem;
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: rgba(255,255,255,.85);
}

.site-footer h2 {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.site-footer p,
.site-footer ul {
  line-height: 1.4;
}

.footer-bottom {
  font-size: 0.78rem;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: .5rem .75rem;
  background: #fff;
  border-radius: .5rem;
  z-index: 9999;
}

.home-intro {
  max-width: 1100px;
}

.home-services-link {
  display: inline-block;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity .2s ease;
}

.home-services-link:hover {
  color: var(--brand);
  opacity: .65;
}

.home-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .65rem;
  margin-top: 1.5rem;
}

.home-references-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-references-preview {
  margin: .35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, .58);
}

/* Full-width hero */
.hero--full {
  overflow: hidden;
  border-radius: 0;
}

.hero--full .carousel,
.hero--full .carousel-inner,
.hero--full .carousel-item,
.hero--full img {
  border-radius: 0 !important;
}

.hero--full .carousel-item {
  position: relative;
}

.hero--full .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, .25) 0%,
    rgba(0, 0, 0, .15) 55%,
    rgba(0, 0, 0, .25) 100%
  );
  pointer-events: none;
}

.hero--full .carousel-item img {
  height: 44vh;
  min-height: 300px;
  object-fit: cover;
  filter: brightness(.95);
}

/* Texto del carrusel */
.carousel-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.carousel-text {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  max-width: 760px;
}

.carousel-text h1 {
  margin: 0 0 1.1rem 0;
  font-size: clamp(2.2rem, 3.4vw, 3.2rem);
  line-height: 1.12;
  font-weight: 600;
  color: #fff;
}

/* Tablet */
@media (max-width: 991.98px) {
  .carousel-text {
    top: 34%;
    left: 24px;
    right: 24px;
  }
}

/* Móvil */
@media (max-width: 575.98px) {
  .carousel-text {
    top: 28%;
    left: 16px;
    right: 16px;
  }

  .carousel-text h1 {
    font-size: clamp(1.45rem, 6vw, 1.8rem);
  }

  .carousel-text .lead {
    display: none;
  }
}
/* Typography tweaks for readability (balanced across browsers) */
.lead{ font-weight: 450; line-height: 1.65; font-size: clamp(0.98rem, 0.94rem + 0.25vw, 1.06rem); }

.hero .lead{ font-size: clamp(0.98rem, 0.92rem + 0.22vw, 1.04rem); max-width: 78ch; }
.lead strong{ font-weight: 600; }

/* Ensure Bootstrap heading utilities look consistent across browsers */
.fw-semibold{ font-weight: 600 !important; }

.site-logo {
  display: block;
  width: auto;
  height: 54px;
  max-width: 100%;
}

@media (max-width: 767.98px) {
  .site-logo {
    height: 44px;
  }
}
