:root {
  --accent: #1e7a5a;
  --dark: #0f1720;
  --muted: #6b7280;
  --maxwidth: 1200px;
}

/* ===== GENERAL ===== */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  color: var(--dark);
  background-color: #fff;
}
.container {
  max-width: var(--maxwidth);
  margin: 0 auto;
  padding: 0 20px;
}
h1, h2, h3 {
  color: var(--dark);
  font-weight: 600;
}
p { line-height: 1.6; }

/* ===== HEADER ===== */
.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}
.brand .logo {
  height: 100px !important;
  width: auto;
  display: block;
}

/* ===== NAVIGATION ===== */
.main-nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a, .main-nav summary {
  font-weight: 500;
  text-decoration: none;
  color: var(--dark);
  cursor: pointer;
  transition: color .2s ease;
}
.main-nav a:hover, .main-nav summary:hover {
  color: var(--accent);
}

/* Dropdown “Services” */
.main-nav .dropdown { position: static; }
.main-nav .dropdown details { position: relative; }
.main-nav .dropdown summary { list-style: none; }
.main-nav .dropdown summary::-webkit-details-marker { display: none; }
.main-nav .dropdown details[open] > summary { color: var(--accent); }
.main-nav .dropdown details > .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  min-width: 220px;
  padding: 8px;
  z-index: 1000;
  white-space: nowrap;
}
.main-nav .dropdown .dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.main-nav .dropdown .dropdown-menu a:hover {
  background: #f3f4f6;
}

/* Phone button */
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.header-cta .phone {
  display: inline-block;
  white-space: nowrap;
  background-color: #d4af37;
  color: #000 !important;
  border: none;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}
.header-cta .phone:hover {
  background-color: #b8952f;
  color: #000;
}
/* Icono del teléfono blanco */
.header-cta .phone img,
.header-cta .phone svg {
  filter: brightness(0) invert(1);
}

/* ===== HERO SECTIONS ===== */
.hero {
  text-align: center;
  padding: 80px 20px;
  color: #fff;
  background: var(--dark);
}
.hero h1 { font-size: 2.2rem; margin-bottom: 12px; }
.hero p { font-size: 1.1rem; }

/* ===== GOLD & BLACK BUTTONS ===== */
.btn {
  display: inline-block;
  font-weight: 600;
  border-radius: 10px;
  padding: 12px 28px;
  text-decoration: none;
  line-height: 1;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.btn.primary, a.call-now, button.call-now {
  background: #d4af37;
  color: #000 !important;
  border: none;
}
.btn.primary:hover, a.call-now:hover, button.call-now:hover {
  background: #b8952f;
  color: #000 !important;
  transform: translateY(-2px);
}
.btn.outline, a.request-quote, button.request-quote {
  background: transparent;
  color: #000 !important;
  border: 2px solid #d4af37;
}
.btn.outline:hover, a.request-quote:hover, button.request-quote:hover {
  background: #d4af37;
  color: #000 !important;
  transform: translateY(-2px);
}

/* ===== HERO SPECIFIC ADJUSTMENTS ===== */
.hero.hero-bg {
  text-align: left;
  min-height: 220px;           /* más compacto */
  padding: 30px 0;             /* menos espacio interno */
  background-position: center top;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero.hero-bg .hero-left { flex: 1; text-align: left; }

.hero-ctas {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
  margin-left: auto;            /* empuja los botones hacia la derecha */
  margin-right: 8px;            /* casi pegados al borde */
  transform: none !important;
}
.hero-ctas .btn { max-width: 260px; width: 100%; text-align: center; }

/* ===== FOOTER ===== */
.footer-black {
  background: #0b0b0b;
  color: #d1d5db;
  padding: 26px 0 18px;
  margin-top: 48px;
  font-size: .9rem;
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: var(--maxwidth);
  margin: 0 auto;
  padding: 0 20px;
}
.footer-columns h4 {
  color: #fff;
  margin: 0 0 6px;
  font-size: .95rem;
  font-weight: 600;
}
.footer-columns ul { list-style: none; padding: 0; margin: 0; }
.footer-columns a {
  color: #cbd5e1;
  text-decoration: none;
  display: block;
  margin: 4px 0;
}
.footer-columns a:hover { color: #fff; }
.cert-logos-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.cert-logos-footer img { height: 34px; object-fit: contain; }
.footer-social img {
  height: 22px;
  margin-right: 8px;
  vertical-align: middle;
  filter: brightness(0) invert(1);
  opacity: .85;
  transition: opacity .2s;
}
.footer-social img:hover { opacity: 1; }
.footer-company p {
  margin: 4px 0;
  line-height: 1.25;
  font-size: .85rem;
}
.footer-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ico {
  width: 16px;
  height: 16px;
  text-align: center;
  filter: brightness(0) invert(1);
}
.footer-bottom {
  text-align: center;
  margin-top: 18px;
  color: #9ca3af;
  font-size: .8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .main-nav ul { display: none; }
  .header-inner { flex-direction: column; gap: 10px; }
  .header-cta .phone { width: 100%; text-align: center; }
  .brand .logo { height: 70px !important; }
  .hero.hero-bg {
    flex-direction: column;
    align-items: flex-start;
    min-height: 420px;
    padding: 60px 20px;
  }
  .hero-ctas {
    align-items: flex-start;
    margin: 0;
    gap: 10px;
  }
}
/* legibilidad universal en heros de página */
.hero-page{ position:relative; }
.hero-page::after{
  content:""; position:absolute; inset:0; border-radius:inherit;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.2) 30%, rgba(0,0,0,.35));
}
.hero-page > *{ position:relative; z-index:1; }

.hero-page h1{
  color:#fff; font-size:2rem; margin:0;
  background: rgba(0,0,0,.45);
  padding:10px 18px; border-radius:8px; text-align:center;
}

/* HERO PAGE UNIFICADO */
.hero-page {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 320px;
  border-radius: 12px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Capa de oscurecimiento sutil */
.hero-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 0;
}

/* Texto del título visible sobre cualquier imagen */
.hero-page h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  background: rgba(0,0,0,0.35);
  padding: 12px 20px;
  border-radius: 8px;
}
