/* Construcciones Bautista — capa estética moderna (sin cambiar estructura SEO) */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=Syne:wght@600;700;800&display=swap");

:root {
  --ink: #1c1a1a;
  --ink-soft: #4a4545;
  --muted: #7a7373;
  --line: #ebe6e4;
  --paper: #ffffff;
  --bg: #f7f4f2;
  --brand: #e1061a;
  --brand-deep: #b80516;
  --brand-soft: #ffe8ea;
  --stone: #2a2a2a;
  --shadow: 0 12px 32px rgba(28, 26, 26, 0.08);
  --shadow-strong: 0 18px 40px rgba(28, 26, 26, 0.14);
  --radius: 16px;
  --font-display: "Syne", "Oswald", sans-serif;
  --font-body: "Archivo", "Pop", "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(225, 6, 26, 0.06), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(42, 42, 42, 0.05), transparent 50%),
    var(--bg) !important;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

p {
  color: var(--ink-soft) !important;
  font-family: var(--font-body) !important;
  font-size: 1.02rem !important;
  line-height: 1.65 !important;
}

h1, h2, h3, h4 {
  font-family: var(--font-display) !important;
  letter-spacing: -0.03em;
  color: var(--ink);
}

h1 { font-size: clamp(1.45rem, 3.2vw, 2rem) !important; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.65rem) !important; font-weight: 700; }
h3 { font-size: 1.15rem !important; font-weight: 700; }

/* Header */
.navbar {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding: 0.35rem 0 !important;
}
.sticky-top {
  background-color: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid var(--line) !important;
}
.nav-link {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  color: var(--ink-soft) !important;
  border-radius: 999px;
  padding: 0.45rem 0.75rem !important;
  transition: background 160ms ease, color 160ms ease;
}
.nav-link:hover,
.nav-item.active .nav-link {
  color: var(--brand) !important;
  background: var(--brand-soft);
}
.nav-link.presupuesto {
  background: #d96872 !important;
  color: #fff !important;
  margin-left: 0.25rem;
  font-size: 0.82rem !important;
  padding: 0.35rem 0.85rem !important;
  box-shadow: none;
}
.nav-link.presupuesto:hover {
  background: #c7535d !important;
  color: #fff !important;
}

/* Hero banners — altura flexible + contraste (evitar texto oscuro sobre foto) */
.banner1,
.banner1-service1,
.banner1-service2,
.banner1-service3,
.banner1-qs,
.banner1-service-ct,
.banner1-service-gl,
[class*="banner1"] {
  position: relative;
  height: auto !important;
  min-height: 260px;
  padding-bottom: 1.5rem;
  overflow: hidden;
  background-attachment: scroll !important;
}
.banner1::before,
.banner1-service1::before,
.banner1-service2::before,
.banner1-service3::before,
.banner1-qs::before,
.banner1-service-ct::before,
.banner1-service-gl::before,
[class*="banner1"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(12, 10, 10, 0.72) 0%, rgba(12, 10, 10, 0.45) 55%, rgba(12, 10, 10, 0.28) 100%);
  pointer-events: none;
  z-index: 0;
}
.text-banner1,
.text-banner-service,
.text-banner2,
.text-banner2-service {
  position: relative;
  z-index: 1;
  padding-top: clamp(2.5rem, 8vw, 5.5rem) !important;
  padding-bottom: 0.75rem;
  padding-right: 1.25rem !important;
}
.text-banner1 h1,
.text-banner1 h2,
.text-banner1 h3,
.text-banner-service h1,
.text-banner-service h2,
.text-banner-service h3,
.text-banner2 h1,
.text-banner2 h2,
.text-banner2-service h1,
.text-banner2-service h2 {
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.75);
  font-size: clamp(1.45rem, 3.2vw, 2rem) !important;
  max-width: 22ch;
  line-height: 1.15;
  font-weight: 700 !important;
}
.text-banner1 p,
.text-banner-service p,
.text-banner2 p,
.text-banner2-service p {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1.05rem !important;
  max-width: 36rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

/* Cinta contacto moderna */
.cinta-contacto {
  background: linear-gradient(110deg, #1c1a1a 0%, #2e2a2a 45%, #e1061a 100%) !important;
  padding: 1rem 0.75rem !important;
  box-shadow: var(--shadow-strong) !important;
}
.cinta-contacto .row {
  align-items: center;
  gap: 0.75rem 0;
}
.cinta-contacto .col-sm-4,
.cinta-contacto .col-sm-3 {
  display: flex;
  justify-content: center;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  border: 0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  white-space: nowrap;
}
.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  filter: brightness(1.03);
  text-decoration: none !important;
}
.btn-contact--phone {
  background: #fff;
  color: var(--ink) !important;
}
.btn-contact--phone:hover { color: var(--brand) !important; }
.btn-contact--mail {
  background: #6b6563;
  color: #fff !important;
}
.btn-contact--mail:hover { color: #fff !important; background: #554f4d; }
.btn-contact--wa {
  background: #25d366;
  color: #053b1d !important;
}
.btn-contact--wa:hover { color: #053b1d !important; }
.btn-contact i { font-size: 1.05rem; }

.link-cinta {
  /* fallback if old markup remains */
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff !important;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-body);
  text-decoration: none !important;
}
.link-cinta:hover {
  background: #fff;
  color: var(--brand) !important;
}

/* Cards / service blocks */
.imgtext {
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: var(--shadow) !important;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.imgtext:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong) !important;
}
.atext {
  color: var(--brand) !important;
  text-decoration: none !important;
}
.atext:hover { color: var(--brand-deep) !important; }
.atext h3 {
  margin-top: 0.35rem;
  transition: color 160ms ease;
}
.bg-service {
  background: var(--paper) !important;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1rem !important;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}
.bg-service:hover {
  transform: translateY(-3px);
  border-color: #f0c4c8;
}
.icon-service {
  color: var(--brand) !important;
}

.btn-banner2,
.btn-primary {
  background: #d96872 !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  padding: 0.5rem 1.05rem !important;
  line-height: 1.25 !important;
  box-shadow: 0 6px 14px rgba(217, 104, 114, 0.22);
}
.btn-primary:hover,
.btn-banner2:hover {
  background: #c7535d !important;
  filter: none;
  box-shadow: 0 8px 18px rgba(199, 83, 93, 0.28);
}
.budget-form .btn-primary,
.article-cta .btn-primary,
.hero-ctas .btn-primary {
  font-size: 0.88rem !important;
  padding: 0.48rem 0.95rem !important;
}

/* Portfolio row */
.row2 .column img {
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* Footer */
.footer {
  background: linear-gradient(180deg, #1c1a1a, #121010) !important;
  color: #f3f0ef !important;
  margin-top: 2rem;
  border: 0 !important;
}
.footer .container > .row {
  border: 0 !important;
}
.footer .col-sm-6,
.footer [class*="col-"] {
  border: 0 !important;
  border-right: 0 !important;
  max-width: 100%;
  flex: 0 0 100%;
}
.footer h2,
.footer h3,
.footer p,
.footer b {
  color: #f3f0ef !important;
  font-family: var(--font-body) !important;
}
.footer h2 {
  margin-bottom: 0.85rem !important;
}
.footer .link-social {
  color: #e8e2e0 !important;
  text-decoration: none !important;
}
.footer .link-social:hover {
  color: #fff !important;
}
.footer2 {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.5rem;
  padding: 1.1rem 0 1.35rem;
  color: #a8a19f !important;
}
.footer2 .row + .row [class*="col-"],
.footer2 [style*="margin-top"] {
  margin-top: 0.35rem !important;
}
.footer2 p {
  margin-bottom: 0.35rem !important;
  color: #a8a19f !important;
}
.footer2 a { color: #c9c2c0 !important; text-decoration: none; }
.footer2 a:hover { color: #fff !important; }
.footer-credit {
  margin-top: 0.65rem !important;
  font-size: 0.78rem !important;
  color: #8f8886 !important;
}
.footer-contact-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.85rem 0 1rem;
}
.footer-contact-btns .btn-contact {
  min-height: 40px;
  padding: 0.5rem 0.95rem;
  font-size: 0.86rem;
  box-shadow: none;
}
.social-icon {
  margin-top: 0.35rem;
}
.social-icon a[href="#"] { display: none !important; }
.social-icon a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  margin: 0 0.35rem 0 0 !important;
}
.social-icon-contact a[href="#"] { display: none !important; }

/* Footer brand unificado */
.footer h2 {
  font-family: var(--font-display) !important;
}

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #25d366;
  color: #053b1d !important;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none !important;
  padding: 0.85rem 1.15rem 0.85rem 0.95rem;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.45);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.02);
  color: #053b1d !important;
  text-decoration: none !important;
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.55);
}
.wa-float__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #25d366;
  font-size: 1.15rem;
}
.wa-float__label { padding-right: 0.15rem; }
@media (max-width: 767px) {
  .navbar-brand.ml-5,
  .navbar .ml-5 {
    margin-left: 0.5rem !important;
  }
  .navbar-nav.ml-5 {
    margin-left: 0 !important;
  }
  .text-banner1,
  .text-banner-service {
    padding-left: 1.1rem !important;
    padding-right: 1.1rem !important;
  }
  .cinta-contacto {
    padding: 0.85rem 0.75rem 1rem !important;
  }
  .cinta-contacto .row {
    flex-direction: column;
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 0.65rem;
  }
  .cinta-contacto [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    display: flex;
    justify-content: center;
  }
  .btn-contact {
    width: 100%;
    max-width: 340px;
    white-space: normal;
    line-height: 1.25;
    padding: 0.75rem 1rem;
    gap: 0.45rem;
  }
  .btn-contact i {
    flex-shrink: 0;
    width: 1.15rem;
    text-align: center;
  }
  .footer-contact-btns {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-contact-btns .btn-contact {
    max-width: none;
    width: 100%;
  }
  /* WhatsApp no tapa títulos ni texto */
  .wa-float__label { display: none; }
  .wa-float {
    padding: 0.8rem;
    border-radius: 50%;
    right: 0.7rem;
    bottom: 0.7rem;
    width: 3.25rem;
    height: 3.25rem;
    justify-content: center;
  }
  .wa-float__icon {
    width: 1.65rem;
    height: 1.65rem;
    font-size: 1rem;
  }
  body { padding-bottom: 5.25rem; }
  .container,
  .article-wrap,
  .blog-hero .container {
    padding-right: 4.5rem !important;
  }
  .footer .container {
    padding-right: 15px !important;
  }
  /* Imagen + texto en columnas: apilar sin solaparse */
  .container .row > [class*="col-sm-"] {
    margin-bottom: 1rem;
  }
  .container .row img.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
  }
}

/* Containers breathe */
.container.mt-5 { margin-top: 3rem !important; }
.img-thumbnail {
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: var(--shadow);
}

/* Hero compacto */
.hero-brand {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem) !important;
  letter-spacing: -0.02em;
  color: #fff !important;
  margin: 0 0 0.35rem !important;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.hero-lead {
  max-width: 28rem !important;
  margin-bottom: 1rem !important;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 !important;
}
.hero-ctas .btn-primary {
  color: #fff !important;
}
.hero-ctas .btn-contact {
  min-height: 40px;
  padding: 0.48rem 0.95rem;
  font-size: 0.88rem;
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

/* Nav dropdown */
.dropdown-menu {
  border: 1px solid #e4ddd6;
  border-radius: 14px;
  padding: 0.45rem;
  margin-top: 0.4rem;
  min-width: 13.5rem;
  background: #f7f4f0;
  box-shadow: 0 12px 28px rgba(40, 36, 32, 0.12);
}
.dropdown-menu .dropdown-divider {
  margin: 0.4rem 0.35rem;
  border-top-color: #d9d2c8;
  opacity: 0.9;
}
.dropdown-item {
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: #4a4542 !important;
  padding: 0.55rem 0.85rem;
  margin: 0.22rem 0;
  border: 1px solid transparent;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
/* Tonos crema / gris suaves, uno por ítem */
.dropdown-menu .dropdown-item:nth-of-type(1) {
  background: #f3efe8;
  border-color: #e2d9cd;
}
.dropdown-menu .dropdown-item:nth-of-type(2) {
  background: #ebe7e1;
  border-color: #d8d2ca;
}
.dropdown-menu .dropdown-item:nth-of-type(3) {
  background: #e4e0da;
  border-color: #d0cac2;
}
.dropdown-menu .dropdown-item:nth-of-type(4) {
  background: #f0ebe4;
  border-color: #ddd4c8;
}
.dropdown-menu .dropdown-item:nth-of-type(5) {
  background: #e8e4de;
  border-color: #d4cec6;
}
.dropdown-menu .dropdown-item:nth-of-type(6) {
  background: #dedad4;
  border-color: #cbc5bd;
}
.dropdown-menu .dropdown-item:nth-of-type(7) {
  background: #f5f1ea;
  border-color: #e5ddd2;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background: #d9d3cb !important;
  border-color: #c4bdb3 !important;
  color: #2f2c2a !important;
}

/* Formulario presupuesto */
.budget-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.budget-form label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
}
.budget-form .form-control {
  border-radius: 10px;
  border-color: #ddd6d3;
  min-height: 44px;
}
.budget-form .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.15rem rgba(225, 6, 26, 0.15);
}
.budget-form .form-note {
  font-size: 0.9rem;
  color: var(--muted) !important;
}

/* Galería filtros */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.25rem 0 0.25rem;
}
.gallery-filter {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.gallery-filter:hover,
.gallery-filter.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Footer brand unificado */
.footer h2 {
  font-family: var(--font-display) !important;
}

/* Chatbot dudas */
.cb-chat {
  position: fixed;
  z-index: 9998;
  left: 1rem;
  bottom: 1rem;
  font-family: var(--font-body);
}
.cb-chat__launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  cursor: pointer;
  background: #2a2a2a;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.75rem 1rem 0.75rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
.cb-chat__launcher i { font-size: 1.05rem; color: #ffb3ba; }
.cb-chat__panel {
  position: absolute;
  left: 0;
  bottom: 3.6rem;
  width: min(360px, calc(100vw - 1.5rem));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(28, 26, 26, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(70vh, 520px);
}
.cb-chat__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  background: linear-gradient(120deg, #1c1a1a, #3a3333);
  color: #fff;
}
.cb-chat__head strong { display: block; font-size: 0.95rem; }
.cb-chat__head span { display: block; font-size: 0.78rem; opacity: 0.8; margin-top: 0.15rem; }
.cb-chat__close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
}
.cb-chat__log {
  padding: 0.85rem;
  overflow-y: auto;
  flex: 1;
  background: #f7f4f2;
}
.cb-chat__msg {
  max-width: 92%;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 0.55rem;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.cb-chat__msg--user {
  margin-left: auto;
  background: #efe7e5;
}
.cb-chat__msg--bot { margin-right: auto; }
.cb-chat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.35rem 0 0.65rem;
}
.cb-chat__chip {
  border: 1px solid #ddd6d3;
  background: #fff;
  color: #4a4545;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none !important;
}
.cb-chat__chip:hover { border-color: #d96872; color: #b05058; }
.cb-chat__chip--wa {
  background: #25d366;
  border-color: #25d366;
  color: #053b1d;
}
.cb-chat__form {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.cb-chat__input {
  flex: 1;
  border: 1px solid #ddd6d3;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
  outline: none;
}
.cb-chat__input:focus { border-color: #d96872; }
.cb-chat__send {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: #d96872;
  color: #fff;
  cursor: pointer;
}
.cb-chat__foot {
  padding: 0.35rem 0.85rem 0.7rem;
  font-size: 0.78rem;
  color: #7a7373;
  background: #fff;
}
.cb-chat__foot a { color: #b05058; font-weight: 700; }
@media (max-width: 767px) {
  .cb-chat { left: 0.7rem; bottom: 0.7rem; }
  .cb-chat__launcher-label { display: none; }
  .cb-chat__launcher { padding: 0.85rem; border-radius: 50%; }
  .cb-chat__panel { bottom: 3.4rem; width: min(340px, calc(100vw - 1.2rem)); }
}

/* Oculta contactos duplicados demasiado próximos */
a.is-dup-hidden,
.btn-contact.is-dup-hidden,
.wa-float.is-dup-hidden {
  display: none !important;
}