:root {
  --gold: #a39969;
  --gold-dark: #7d7550;
  --ink: #16181d;
  --ink-soft: #2b2e35;
  --paper: #f7f6f2;
}

* { box-sizing: border-box; }

html { overflow-x: clip; }
body {
  font-family: "Merriweather", Georgia, serif;
  color: var(--ink);
  background-color: var(--paper);
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .btn {
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--gold-dark); }
a:hover { color: var(--gold); }

.text-gold { color: var(--gold); }
.bg-ink { background-color: var(--ink); }
.bg-gold { background-color: var(--gold); }

/* Navbar */
#mainNav {
  background-color: rgba(22, 24, 29, 0.95);
  transition: background-color .3s ease, box-shadow .3s ease;
  padding-top: .75rem;
  padding-bottom: .75rem;
}
#mainNav.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
#mainNav .navbar-brand {
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gold) !important;
}
#mainNav .nav-link {
  color: #eee !important;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .03em;
  padding: .75rem 1rem !important;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
#mainNav .nav-link:hover { color: var(--gold) !important; }
#mainNav .nav-cta {
  background: var(--gold);
  color: #16181d !important;
  border-radius: 30px;
  padding: .75rem 1.2rem !important;
  min-height: 44px;
  margin-left: .25rem;
}
#mainNav .nav-cta:hover { background: var(--gold-dark); color: #fff !important; }
#mainNav .navbar-toggler {
  border-color: rgba(163,153,105,.5);
}
#mainNav .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(163,153,105,.4); }
#mainNav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(163, 153, 105, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(10,11,14,.75), rgba(10,11,14,.9)),
    url('../img/images/galeria2.jpg') center/cover no-repeat;
  text-align: center;
}
.hero .logo-img {
  width: 140px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.4));
}
.hero h1 {
  font-weight: 800;
  letter-spacing: .04em;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--gold);
}
.hero .lead {
  color: #d8d6cf;
  max-width: 700px;
  margin: 1.25rem auto 2rem;
  font-family: "Merriweather", serif;
}

.btn-gold {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #16181d;
  font-weight: 700;
  padding: .7rem 2rem;
  letter-spacing: .04em;
}
.btn-gold:hover {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #fff;
}
.btn-outline-gold {
  border: 2px solid var(--gold-dark);
  color: var(--gold-dark);
  font-weight: 700;
  padding: .65rem 2rem;
  letter-spacing: .04em;
  background: transparent;
}
.btn-outline-gold:hover {
  background-color: var(--gold-dark);
  color: #fff;
}
.link-quiet {
  color: #d8d6cf;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: .9rem;
}
.link-quiet:hover { color: var(--gold); }

/* Cifras reales */
.stats-strip {
  background: var(--ink);
  border-top: 1px solid rgba(163,153,105,.25);
  border-bottom: 1px solid rgba(163,153,105,.25);
  padding: 2.25rem 0;
}
.stat-num {
  font-family: "Open Sans", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  color: #cfcdc4;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: .4rem;
}

/* Section headings */
.section-title {
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--ink);
}
.section-title .accent { color: var(--gold-dark); }
#services .section-title .accent { color: var(--gold); }
.section-rule {
  width: 70px;
  height: 3px;
  background-color: var(--gold);
  border: none;
  margin: 1rem auto 2.5rem;
}

/* About */
#about { background-color: #fff; }
.pillar-card {
  border: 1px solid #e7e4da;
  border-radius: 10px;
  padding: 2rem 1.75rem;
  height: 100%;
  background: var(--paper);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(163,153,105,.2);
}
.pillar-card .icon {
  font-size: 2rem;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}
.pillar-card h3 {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: .75rem;
}
.pillar-card p {
  font-size: .95rem;
  line-height: 1.7;
  color: #444;
  text-align: left;
}

/* Services */
#services { background-color: var(--ink); color: #eee; }
.service-card {
  background: var(--ink-soft);
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  transition: transform .25s ease;
}
.service-card:hover { transform: translateY(-6px); }
.service-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.service-card .body { padding: 1.5rem; }
.service-card h4 {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: .9rem;
}
.service-card ul {
  padding-left: 1.1rem;
  font-size: .9rem;
  color: #cfcdc4;
  margin-bottom: 0;
}
.service-card li { margin-bottom: .4rem; }

/* Gallery */
#gallery { background-color: #fff; }
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  display: block;
}
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
}

/* Values band */
.values-band {
  background: linear-gradient(135deg, var(--ink), #0c0d10);
  color: #d8d6cf;
  padding: 3.5rem 0;
}
.values-band p { max-width: 900px; margin: 0 auto; line-height: 1.9; }
.values-band strong { color: var(--gold); }

/* Contact */
#contact { background-color: var(--paper); }
.contact-card {
  text-align: center;
  padding: 2rem 1rem;
}
.contact-card .icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold);
  color: #16181d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 1rem;
}
.contact-card a { color: var(--ink); font-weight: 600; }
.contact-card a:hover { color: var(--gold-dark); }

footer {
  background-color: var(--ink);
  color: #a9a79c;
  padding: 1.75rem 0;
  font-size: .85rem;
  text-align: center;
}
footer a { color: var(--gold); }

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 6px;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* Responsive: móviles */
@media (max-width: 767px) {
  .hero { min-height: 100svh; padding: 6rem 0 3rem; }
  .hero .logo-img { width: 104px; }
  .gallery-item img { height: 200px; }
  .service-card img { height: 160px; }
  .pillar-card { padding: 1.5rem 1.25rem; }
  .lightbox-close { top: .75rem; right: 1rem; font-size: 1.6rem; }
}
@media (max-width: 400px) {
  .hero .lead { font-size: .92rem; }
}
