:root {
  /* Paleta pastel inspirada en NODO (arena, verde oliva y negro estructural) */
  --bg-pastel-arena: #f2ece1;
  --bg-pastel-oliva: #e7ede0;
  --bg-pastel-crema: #fcfbf8;
  --surface-card: #f8f5ef;
  --border-suave: #ded8cc;

  --texto-principal: #1f231e;
  --texto-secundario: #4b5048;
  --acento-oliva: #5f6c43;
  --acento-oliva-claro: #798758;
  --acento-arena-pastel: #e6dfd1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-pastel-crema);
  color: var(--texto-principal);
  line-height: 1.55;
  min-height: 100vh;
}

.container {
  width: min(100% - 3rem, 1040px);
  margin-inline: auto;
}

/* ================= ENCABEZADO ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: rgba(252, 251, 248, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(222, 216, 204, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--texto-principal);
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 1.4rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--texto-principal);
  padding-bottom: 0.25rem;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--acento-oliva);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background-color: var(--acento-oliva);
}

/* ================= HERO PROPUESTA 1 (INICIO) ================= */
.hero-p1 {
  position: relative;
  background: linear-gradient(90deg, #efe9dd 0%, #f5f0e6 42%, #e9e2d4 100%);
  overflow: hidden;
  min-height: 390px;
  display: flex;
  align-items: center;
}

.hero-p1-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.hero-p1-content {
  padding-block: 3.5rem;
}

.hero-p1-content h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.1rem, 3.6vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--texto-principal);
}

.hero-divider {
  display: block;
  width: 54px;
  height: 3px;
  background-color: var(--acento-oliva);
  margin-block: 1.15rem;
}

.hero-p1-text {
  font-size: 0.98rem;
  color: var(--texto-secundario);
  max-width: 34ch;
  line-height: 1.6;
}

.hero-p1-visual {
  position: relative;
  height: 100%;
  display: flex;
  justify-content: flex-end;
}

.hero-p1-visual img {
  width: 100%;
  max-height: 410px;
  object-fit: cover;
  display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 18%);
  mask-image: linear-gradient(to right, transparent 0%, black 18%);
}

.hero-corner-shape {
  position: absolute;
  bottom: -45px;
  left: -35px;
  width: 125px;
  height: 115px;
  background-color: var(--acento-oliva-claro);
  border-radius: 0 100% 0 0;
  opacity: 0.85;
  z-index: 1;
}

/* ================= QUIÉNES SOMOS, MISIÓN Y VISIÓN ================= */
.about-p1 {
  background-color: var(--bg-pastel-crema);
  padding-block: 3.25rem 3.5rem;
}

.about-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.35rem;
  max-width: 800px;
  margin-inline: auto;
}

.about-emblem {
  position: relative;
  flex-shrink: 0;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background-color: #e6dcc8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-emblem::before {
  content: "";
  position: absolute;
  width: 68%;
  height: 68%;
  border-radius: 50%;
  background-color: #d8cab0;
  z-index: 1;
}

.about-emblem img {
  position: relative;
  z-index: 2;
  width: 146px;
  height: 146px;
  object-fit: contain;
  transform: translate(6px, -6px) scale(1.06);
  filter: drop-shadow(0 6px 12px rgba(31, 35, 30, 0.08));
}

.about-copy h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.about-copy p {
  font-size: 0.96rem;
  color: var(--texto-secundario);
  max-width: 50ch;
}

.section-line {
  border: none;
  border-top: 1px solid var(--border-suave);
  margin-block: 2.35rem;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  position: relative;
}

.mv-grid::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 50%;
  width: 1px;
  background-color: #c5c0b5;
}

.mv-item {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  padding-inline: 0.5rem;
}

.mv-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}

.mv-text h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.mv-text p {
  font-size: 0.9rem;
  color: var(--texto-secundario);
  line-height: 1.55;
}

/* ================= CONOCE LO QUE HACEMOS ================= */
.actions-p1 {
  position: relative;
  background-color: var(--acento-arena-pastel);
  padding-block: 2.6rem 3.1rem;
  overflow: hidden;
}

.actions-branch {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  max-height: 270px;
  width: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.actions-p1 .container {
  position: relative;
  z-index: 2;
}

.actions-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.75rem;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 860px;
  margin-inline: auto;
}

.action-card {
  background-color: #f6f2ea;
  border-radius: 16px;
  padding: 1.45rem 1rem 1.15rem;
  text-decoration: none;
  color: var(--texto-principal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  min-height: 174px;
  border: 1px solid rgba(222, 216, 204, 0.7);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.action-card:hover {
  transform: translateY(-3px);
  background-color: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 35, 30, 0.06);
}

.action-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 0.7rem;
}

.action-label {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}

.action-arrow {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--texto-principal);
  transition: transform 0.2s ease;
}

.action-card:hover .action-arrow {
  transform: translateX(3px);
}

/* ================= FOOTER VERDE OLIVA ================= */
.footer-p1 {
  background-color: var(--acento-oliva);
  color: #ffffff;
  padding-block: 1.25rem;
}

.footer-p1-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-heading {
  font-family: "Montserrat", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
}

.footer-contact-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #f4f6f0;
  text-decoration: none;
  font-size: 0.88rem;
  transition: opacity 0.2s ease;
}

.footer-item:hover {
  opacity: 0.85;
}

.footer-sep {
  color: rgba(255, 255, 255, 0.35);
}

.footer-socials {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-socials a:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.footer-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ================= PÁGINA DE CONTACTO ================= */
.contacto-page {
  background-color: #f6f2ea;
}

.contacto-hero {
  position: relative;
  background: linear-gradient(180deg, #ece5d8 0%, #f6f2ea 100%);
  padding-block: 3.25rem 2rem;
  overflow: hidden;
}

.contacto-branch-top {
  position: absolute;
  top: -10px;
  right: -12px;
  max-height: 195px;
  width: auto;
  object-fit: contain;
  transform: scaleX(-1);
  pointer-events: none;
  z-index: 1;
}

.contacto-hero-inner {
  position: relative;
  z-index: 2;
}

.contacto-hero h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.1rem, 3.8vw, 2.75rem);
  font-weight: 700;
  color: var(--texto-principal);
  line-height: 1.15;
}

.contacto-lead {
  margin-top: 0.35rem;
  font-size: 0.98rem;
  color: var(--texto-secundario);
  max-width: 44ch;
}

.contacto-main {
  position: relative;
  padding-block: 1.5rem 0;
  overflow: hidden;
}

.contacto-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 3.5rem;
}

.contacto-canales {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.canal-card,
.red-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: #fbf9f5;
  border: 1px solid #d9d2c5;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--texto-principal);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.canal-card:hover,
.red-item:hover {
  transform: translateY(-2px);
  background-color: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 35, 30, 0.06);
}

.canal-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: #ece6d8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.canal-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.canal-info,
.red-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.canal-titulo,
.red-nombre {
  font-family: "Montserrat", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--texto-principal);
}

.canal-dato,
.red-usuario {
  font-size: 0.86rem;
  color: var(--texto-secundario);
}

.canal-arrow {
  font-size: 1.15rem;
  color: var(--texto-principal);
  transition: transform 0.2s ease;
}

.canal-card:hover .canal-arrow,
.red-item:hover .canal-arrow {
  transform: translateX(4px);
}

.redes-bloque {
  margin-top: 0.75rem;
}

.redes-bloque h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--texto-principal);
}

.redes-lista {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.red-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--acento-oliva);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.red-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.contacto-form-card {
  background-color: #fbf9f5;
  border: 1px solid #d9d2c5;
  border-radius: 18px;
  padding: 1.85rem;
  box-shadow: 0 8px 24px rgba(31, 35, 30, 0.04);
}

.contacto-form-card h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.form-sub {
  font-size: 0.9rem;
  color: var(--texto-secundario);
  margin-bottom: 1.4rem;
}

.nodo-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.campo label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--texto-principal);
}

.campo input,
.campo textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #cfc8ba;
  background-color: #ffffff;
  color: var(--texto-principal);
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.campo textarea {
  resize: vertical;
  min-height: 105px;
}

.campo input:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--acento-oliva);
  box-shadow: 0 0 0 3px rgba(95, 108, 67, 0.15);
}

.btn-primario {
  align-self: flex-start;
  background-color: var(--acento-oliva);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.82rem 1.75rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-primario:hover {
  background-color: #4d5836;
  transform: translateY(-1px);
}

.btn-primario:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.estado-msg {
  font-size: 0.88rem;
  font-weight: 500;
  min-height: 1.25rem;
}

.estado-msg--ok {
  color: var(--acento-oliva);
}

.estado-msg--error {
  color: #9e2a2b;
}

.contacto-bottom-visual {
  position: relative;
  height: 170px;
  margin-top: 0.5rem;
}

.contacto-celosia-img {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(115%, 1180px);
  height: 185px;
  object-fit: cover;
  border-radius: 50% 50% 0 0 / 75% 75% 0 0;
  opacity: 0.92;
  pointer-events: none;
}

.contacto-branch-bottom {
  position: absolute;
  bottom: 0;
  right: 0;
  max-height: 195px;
  width: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}

/* ================= PÁGINA DE SERVICIOS ================= */
.servicios-page {
  background-color: var(--bg-pastel-crema);
}

.servicios-narrow {
  max-width: 780px;
}

.servicios-hero {
  background: linear-gradient(180deg, #f3ede2 0%, var(--bg-pastel-crema) 100%);
  border-bottom: 1px solid var(--border-suave);
  overflow: hidden;
}

.servicios-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
}

.servicios-hero-copy {
  padding-block: 2.75rem;
}

.servicios-hero-copy h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.1rem, 3.8vw, 2.75rem);
  font-weight: 700;
  color: var(--texto-principal);
  line-height: 1.15;
}

.servicios-lead {
  font-size: 0.98rem;
  color: var(--texto-secundario);
  max-width: 34ch;
  line-height: 1.6;
}

.servicios-hero-visual {
  position: relative;
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.servicios-hero-visual img:first-child {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 22%);
  mask-image: linear-gradient(to right, transparent 0%, black 22%);
}

.servicios-branch-top {
  position: absolute;
  top: -8px;
  right: -10px;
  max-height: 155px;
  width: auto;
  object-fit: contain;
  transform: scaleX(-1);
  pointer-events: none;
  z-index: 2;
}

.servicios-lista-sec {
  position: relative;
  background-color: var(--bg-pastel-crema);
  padding-top: 2.5rem;
  overflow: hidden;
}

.servicios-stack {
  display: flex;
  flex-direction: column;
}

.servicio-row {
  display: flex;
  align-items: center;
  gap: 1.65rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid #dfd8ca;
}

.servicio-row-icon {
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex-shrink: 0;
}

.servicio-row-body h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--texto-principal);
  margin-bottom: 0.25rem;
}

.servicio-row-body p {
  font-size: 0.92rem;
  color: var(--texto-secundario);
  max-width: 44ch;
  line-height: 1.5;
}

.modalidades-bloque {
  padding-top: 2.25rem;
  padding-bottom: 2.75rem;
}

.modalidades-titulo {
  font-family: "Montserrat", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  text-align: center;
  color: var(--texto-principal);
  margin-bottom: 1.5rem;
}

.modalidades-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 640px;
  margin-inline: auto;
}

.modalidad-card {
  background-color: #f3ede2;
  border: 1px solid #e3dcd0;
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.modalidad-card:hover {
  transform: translateY(-2px);
  background-color: #f7f3eb;
}

.modalidad-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 0.15rem;
}

.modalidad-card h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--texto-principal);
  line-height: 1.25;
}

.modalidad-card p {
  font-size: 0.86rem;
  color: var(--texto-secundario);
  max-width: 26ch;
  line-height: 1.45;
}

.servicios-bottom-band {
  position: relative;
  height: 175px;
  margin-top: 0.25rem;
}

.servicios-bottom-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 28%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 28%);
}

.servicios-bottom-branch {
  position: absolute;
  bottom: 0;
  right: 3%;
  max-height: 185px;
  width: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}

.servicios-bottom-curve {
  position: absolute;
  bottom: -42px;
  left: -30px;
  width: 140px;
  height: 120px;
  background-color: var(--acento-oliva);
  border-radius: 0 100% 0 0;
  z-index: 3;
}

/* ================= PÁGINA DE PROYECTOS ================= */
.proyectos-page {
  background-color: var(--bg-pastel-crema);
}

.proyectos-hero {
  position: relative;
  background: linear-gradient(180deg, #f1ebe0 0%, var(--bg-pastel-crema) 100%);
  padding-block: 3rem 2rem;
  overflow: hidden;
}

.proyectos-branch-top {
  position: absolute;
  top: -8px;
  right: -10px;
  max-height: 185px;
  width: auto;
  object-fit: contain;
  transform: scaleX(-1);
  pointer-events: none;
  z-index: 1;
}

.proyectos-hero-inner {
  position: relative;
  z-index: 2;
}

.proyectos-hero h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.1rem, 3.8vw, 2.75rem);
  font-weight: 700;
  color: var(--texto-principal);
  line-height: 1.15;
}

.proyectos-lead {
  font-size: 0.98rem;
  color: var(--texto-secundario);
  max-width: 44ch;
  line-height: 1.6;
}

.proyectos-showcase {
  position: relative;
  padding-block: 1rem 4rem;
  overflow: hidden;
}

/* Contenedor amplio y centrado para que visor de fotos y video se extiendan en PC */
.proyectos-showcase .container.proyectos-narrow {
  width: min(100% - 3rem, 1380px);
  max-width: 1380px;
  margin-inline: auto;
}

/* 1. Slider fotográfico (mismo ancho y centrado que el video) */
.slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 20px;
  overflow: hidden;
  background-color: #e6dfd1;
  border: 1px solid var(--border-suave);
  box-shadow: 0 12px 30px rgba(31, 35, 30, 0.08);
  aspect-ratio: 16 / 9;
  max-height: min(65vh, 640px);
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s ease, visibility 0.75s ease;
}

.slide.activo {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background-color: rgba(31, 35, 30, 0.48);
  color: #ffffff;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.slider-btn:hover {
  background-color: var(--acento-oliva);
}

.slider-btn--prev {
  left: 1.25rem;
}

.slider-btn--next {
  right: 1.25rem;
}

.slider-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.25rem;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.slider-dot.activo {
  width: 26px;
  background-color: #ffffff;
}

/* 2. Video entre el slider y los botones (idéntico ancho y centrado) */
.proyectos-video-box {
  width: 100%;
  max-width: 100%;
  margin-top: 1.85rem;
  margin-inline: auto;
  border-radius: 20px;
  overflow: hidden;
  background-color: #1f231e;
  border: 1px solid var(--border-suave);
  box-shadow: 0 12px 30px rgba(31, 35, 30, 0.08);
  aspect-ratio: 16 / 9;
  max-height: min(65vh, 640px);
}

.proyectos-video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3. Botones de los 4 proyectos */
.proyectos-botones-grid {
  width: 100%;
  max-width: 1040px;
  margin-top: 2rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.proyecto-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  background-color: #f6f2ea;
  border: 1px solid #d9d2c5;
  border-radius: 16px;
  padding: 1.15rem 1.35rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--texto-principal);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.proyecto-btn:hover {
  transform: translateY(-2px);
  background-color: var(--acento-oliva);
  border-color: var(--acento-oliva);
  color: #ffffff;
}

/* Botón para realizar una consulta */
.proyectos-consulta-wrap {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.btn-realizar-consulta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  background-color: var(--acento-oliva);
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(95, 108, 67, 0.22);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-realizar-consulta:hover {
  transform: translateY(-2px);
  background-color: #4d5836;
}

.proyectos-corner-left {
  position: absolute;
  bottom: -45px;
  left: -35px;
  width: 135px;
  height: 115px;
  background-color: var(--acento-oliva);
  border-radius: 0 100% 0 0;
  pointer-events: none;
}

/* ================= RESPONSIVE GENERAL ================= */
@media (max-width: 900px) {
  .contacto-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .hero-p1-grid {
    grid-template-columns: 1fr;
  }

  .hero-p1-content {
    padding-block: 2.5rem 1rem;
  }

  .hero-p1-visual img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%);
  }

  .mv-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .mv-grid::before {
    display: none;
  }

  .actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .servicios-hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .servicios-hero-copy {
    padding-block: 2.25rem 1rem;
  }

  .servicios-hero-visual img:first-child {
    height: 185px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 25%);
  }

  .modalidades-grid {
    grid-template-columns: 1fr;
  }

  .proyectos-showcase .container.proyectos-narrow {
    width: min(100% - 2rem, 1380px);
  }

  .slider-wrapper,
  .proyectos-video-box {
    aspect-ratio: 4 / 3;
    max-height: 420px;
  }
}

@media (max-width: 640px) {
  .form-grid-3,
  .form-grid-2,
  .proyectos-botones-grid {
    grid-template-columns: 1fr;
  }

  .btn-primario,
  .btn-realizar-consulta {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .header-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-links {
    gap: 1.15rem;
    font-size: 0.85rem;
  }

  .about-intro {
    flex-direction: column;
    text-align: center;
  }

  .servicio-row {
    align-items: flex-start;
    gap: 1.1rem;
  }

  .servicio-row-icon {
    width: 54px;
    height: 54px;
  }

  .footer-sep {
    display: none;
  }
}

/* ================= PÁGINA DE CONSULTA RÁPIDA ================= */
.consulta-page {
  background-color: var(--bg-pastel-crema);
}

.consulta-narrow {
  max-width: 780px;
}

.consulta-hero {
  position: relative;
  background: linear-gradient(180deg, #f3ede2 0%, var(--bg-pastel-crema) 100%);
  padding-block: 3rem 1.75rem;
  overflow: hidden;
}

.consulta-branch-top {
  position: absolute;
  top: -8px;
  right: -10px;
  max-height: 175px;
  width: auto;
  object-fit: contain;
  transform: scaleX(-1);
  pointer-events: none;
  z-index: 1;
}

.consulta-hero .container {
  position: relative;
  z-index: 2;
}

.consulta-hero h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.1rem, 3.8vw, 2.75rem);
  font-weight: 700;
  color: var(--texto-principal);
  line-height: 1.15;
}

.consulta-lead {
  font-size: 0.98rem;
  color: var(--texto-secundario);
  max-width: 44ch;
  line-height: 1.6;
}

.consulta-main {
  position: relative;
  padding-block: 1.25rem 0;
  overflow: hidden;
}

.consulta-main .container {
  position: relative;
  z-index: 2;
}

.calc-card {
  background-color: #fbf9f5;
  border: 1px solid #dfd8ca;
  border-radius: 20px;
  padding: 1.65rem;
  box-shadow: 0 8px 24px rgba(31, 35, 30, 0.04);
}

.calc-card--espaciada {
  margin-top: 1.5rem;
}

.calc-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.calc-head-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.calc-card-head h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--texto-principal);
}

.calc-card-head p {
  font-size: 0.88rem;
  color: var(--texto-secundario);
}

.calc-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background-color: #ece6d9;
  border-radius: 999px;
  padding: 0.25rem;
  margin-bottom: 1.35rem;
}

.calc-tab,
.obra-tab {
  border: none;
  background: transparent;
  color: var(--texto-principal);
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.calc-tab.activo,
.obra-tab.activo {
  background-color: var(--acento-oliva);
  color: #ffffff;
}

.calc-inputs-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.calc-inputs-3 {
  grid-template-columns: repeat(3, 1fr);
}

.calc-inputs-2 {
  grid-template-columns: repeat(2, 1fr);
}

.input-sufijo {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #cfc8ba;
  border-radius: 10px;
  padding-right: 0.85rem;
}

.input-sufijo input,
.campo select {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #cfc8ba;
  background-color: #ffffff;
  color: var(--texto-principal);
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
}

.input-sufijo input {
  border: none;
  background: transparent;
}

.input-sufijo input:focus {
  outline: none;
}

.input-sufijo span {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--texto-secundario);
}

.calc-resultado-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: #e4e9d5;
  border: 1px solid #cfd8b8;
  border-radius: 14px;
  padding: 1rem 1.2rem;
}

.calc-res-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.calc-res-label {
  display: block;
  font-size: 0.8rem;
  color: var(--texto-secundario);
}

.calc-resultado-box strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--texto-principal);
}

.calc-res-sub {
  font-size: 0.85rem;
  color: var(--texto-secundario);
}

.calc-nota {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--texto-secundario);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.info-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--texto-secundario);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.desglose-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

#resultado-muro {
  grid-template-columns: repeat(2, 1fr);
}

.desglose-item {
  background-color: #f3ede2;
  border: 1px solid #e2dbd0;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.desglose-item span {
  font-size: 0.78rem;
  color: var(--texto-secundario);
}

.desglose-item strong {
  font-family: "Montserrat", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--texto-principal);
}

.diagnostico-rapido {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #e2dbd0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.86rem;
  color: var(--texto-secundario);
}

.diagnostico-rapido strong {
  color: var(--texto-principal);
  display: block;
  margin-bottom: 0.15rem;
}

.btn-secundario-suave {
  background-color: #ece6d9;
  color: var(--texto-principal);
  border: 1px solid #cfc8ba;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-secundario-suave:hover {
  background-color: var(--acento-oliva);
  border-color: var(--acento-oliva);
  color: #ffffff;
}

/* Bloque inferior "Déjanos tus datos" -> contacto.html */
.consulta-cta-card {
  margin-top: 1.75rem;
  background-color: #fbf9f5;
  border: 1px solid #dfd8ca;
  border-radius: 20px;
  padding: 1.65rem;
  box-shadow: 0 8px 24px rgba(31, 35, 30, 0.04);
}

.consulta-cta-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.consulta-cta-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.consulta-cta-top h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.consulta-cta-top p {
  font-size: 0.9rem;
  color: var(--texto-secundario);
  line-height: 1.55;
}

.btn-dejanos-datos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  text-decoration: none;
  background-color: var(--acento-oliva);
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(95, 108, 67, 0.22);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-dejanos-datos:hover {
  transform: translateY(-2px);
  background-color: #4d5836;
}

.consulta-bottom-art {
  position: relative;
  height: 155px;
  margin-top: 1.25rem;
}

.consulta-bottom-branch-l {
  position: absolute;
  bottom: 0;
  left: 2%;
  max-height: 150px;
  width: auto;
  object-fit: contain;
  pointer-events: none;
}

.consulta-bottom-branch-r {
  position: absolute;
  bottom: 0;
  right: 2%;
  max-height: 150px;
  width: auto;
  object-fit: contain;
  transform: scaleX(-1);
  pointer-events: none;
}

.consulta-bottom-curve {
  position: absolute;
  bottom: -42px;
  left: -30px;
  width: 135px;
  height: 115px;
  background-color: var(--acento-oliva);
  border-radius: 0 100% 0 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  .calc-inputs-3,
  .calc-inputs-2,
  .desglose-grid {
    grid-template-columns: 1fr;
  }
}