/* Paleta BelyMar (valores literales — sin variables CSS para máxima compatibilidad)
   --navy:          #002f6c
   --navy-dark:     #00254f
   --navy-deep:     #001830
   --teal:          #1a7a8c
   --teal-dark:     #135c6b
   --ink:           #07203c
   --body:          #5b6571
   --caption:       #7d8794
   --divider:       #e5e8eb
   --surface:       #ffffff
   --surface-alt:   #f7f9fa
   --white:         #ffffff
   --teal-tint:     rgba(26, 122, 140, 0.08)
   --shadow-card:   0 12px 30px -15px rgba(0, 47, 108, 0.18)
   --shadow-btn:    0 8px 20px -8px rgba(0, 0, 0, 0.3)
   --shadow-btn-teal: 0 8px 20px -8px rgba(26, 122, 140, 0.55)
   --shadow-header: 0 4px 18px -12px rgba(0, 0, 0, 0.25)
   --radius:        0.5rem
   --radius-sm:     4px
   --radius-lg:     0.75rem
   --radius-full:   999px
   --font-display:  "Poppins", system-ui, -apple-system, sans-serif
   --font-body:     "Roboto", system-ui, -apple-system, sans-serif
   --container:     1180px
   --container-pad: 1.5rem
   --header-h:      72px
   --section-y:     4rem
   --section-y-lg:  5rem
   --ease:          cubic-bezier(0.4, 0, 0.2, 1)
*/

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(72px + 1rem);
}

body {
  font-family:
    "Roboto",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #5b6571;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden !important;
  max-width: 100%;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus {
  outline: 3px solid #1a7a8c;
  outline-offset: 2px;
  border-radius: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 3px solid #1a7a8c;
  outline-offset: 2px;
  border-radius: 2px;
}

h1,
h2,
h3,
h4,
h5 {
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  color: #07203c;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2rem;
  line-height: 1.05;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
}

strong {
  color: #07203c;
  font-weight: 600;
}

.eyebrow {
  display: inline-block;
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a7a8c;
}

.lead {
  font-size: 1rem;
  color: #5b6571;
  max-width: 38rem;
}

.text-muted {
  color: #7d8794;
}

.section-head {
  max-width: 42rem;
}
.section-head .eyebrow {
  margin-bottom: 0.75rem;
}
.section-head p {
  margin-top: 1rem;
  color: #5b6571;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid #e5e8eb;
}

.section--alt {
  background-color: #f7f9fa;
}
.section--flush {
  border-bottom: 0;
}

.split {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
}
.split > * + * {
  margin-top: 3rem;
}

.media {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}
.media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Alturas fijas de imagen (compatible con navegadores antiguos; object-fit recorta) */
.media--4-3 {
  height: 16rem;
}
.media--square {
  height: 18rem;
}
.media--5-4 {
  height: 17rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 22.5px;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn--primary {
  background-color: #1a7a8c;
  color: #ffffff;
}
.btn--primary:hover {
  background-color: #135c6b;
  transform: translateY(-2px);
}

.btn--dark {
  background-color: #001830;
  color: #ffffff;
}
.btn--dark:hover {
  background-color: #002f6c;
  transform: translateY(-2px);
}

.btn--outline {
  color: #1a7a8c;
  border-color: #1a7a8c;
  padding: 13px 28px;
}
.btn--outline:hover {
  background-color: rgba(26, 122, 140, 0.08);
  transform: translateY(-2px);
}

.btn--white {
  background-color: #ffffff;
  color: #002f6c;
}
.btn--white:hover {
  transform: translateY(-2px);
}

.btn--outline-white {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
  padding: 13px 28px;
}
.btn--outline-white:hover {
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #1a7a8c;
  font-weight: 500;
  transition: gap 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.link-arrow svg {
  width: 16px;
  height: 16px;
}
.link-arrow:hover {
  gap: 0.75rem;
  text-decoration: underline;
}

.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e8eb;
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header.is-scrolled {
  box-shadow: 0 4px 18px -12px rgba(0, 0, 0, 0.25);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.brand__mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: #002f6c;
  color: #ffffff;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.brand__mark svg {
  width: 22px;
  height: 22px;
}
.brand__logo {
  height: 52px;
  width: auto;
  display: block;
}
.brand__name {
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: #07203c;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav a {
  font-size: 0.9375rem;
  color: #5b6571;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: #1a7a8c;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #002f6c;
  color: #ffffff;
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: -0.01em;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
  transition:
    background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-phone:hover {
  background: #00254f;
  transform: translateY(-1px);
  color: #ffffff;
}
.header-phone svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
/* El badge de teléfono acompaña a header__actions (visible en desktop ≥1024) */
@media (max-width: 1023.98px) {
  .header-phone {
    display: none;
  }
}

.social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #5b6571;
}
.social a {
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.social a:hover {
  color: #1a7a8c;
}
.social svg {
  width: 18px;
  height: 18px;
}

.nav-toggle {
  display: none;
  padding: 0.5rem;
  color: #07203c;
}
.nav-toggle svg {
  width: 26px;
  height: 26px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e8eb;
}
.mobile-nav.is-open {
  display: flex;
}
.mobile-nav a {
  padding: 0.75rem 0;
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 500;
  color: #07203c;
  border-bottom: 1px solid #e5e8eb;
}
.mobile-nav .btn {
  margin-top: 1rem;
}
/* El CTA del menú móvil es un botón: texto blanco y sin la línea inferior de los enlaces */
.mobile-nav a.btn {
  color: #ffffff;
  border-bottom: 0;
  padding: 12px 22.5px;
}
.mobile-nav a.btn:hover {
  color: #ffffff;
}

.site-footer {
  background-color: #0d275c;
  color: rgba(255, 255, 255, 0.8);
}
.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  align-items: flex-start;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.site-footer__grid > * {
  box-sizing: border-box;
  width: 100%;
}
.site-footer h4 {
  color: #ffffff;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}
.site-footer__brand .brand__name {
  color: #ffffff;
}
.site-footer__brand .brand__mark {
  background: rgba(255, 255, 255, 0.1);
}
.site-footer__logo {
  display: block;
  width: 114px;
  max-width: 100%;
}
.site-footer__logo img {
  width: 100%;
  height: auto;
  display: block;
}
.site-footer__brand p {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 22rem;
}
.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-list a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-list a:hover {
  color: #1a7a8c;
}
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.footer-contact svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.site-footer .social {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
.site-footer .social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
}
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer__bottom .container {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.hero {
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid #e5e8eb;
}
.hero__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: -1;
  pointer-events: none;
}
.hero__grid {
  display: block;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.hero__content {
  max-width: 42rem;
}
.hero .eyebrow {
  color: #ffffff;
}
.hero h1 {
  margin-top: 1.25rem;
  color: #ffffff;
}
.hero p {
  margin-top: 1.5rem;
}
.hero .lead {
  color: rgba(255, 255, 255, 0.85);
}
.hero__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-inner {
  position: relative;
  isolation: isolate;
  background-color: #001830;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid #e5e8eb;
}
.hero-inner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.6);
}
.hero-inner__content {
  padding-top: 3rem;
  padding-bottom: 3rem;
  max-width: 46rem;
}
.hero-inner .eyebrow {
  color: #ffffff;
}
.hero-inner h1 {
  margin-top: 0.75rem;
  color: #ffffff;
}
.hero-inner p {
  margin-top: 1.25rem;
}
.hero-inner .lead {
  color: rgba(255, 255, 255, 0.85);
}
.hero-inner .breadcrumbs {
  color: rgba(255, 255, 255, 0.75);
}
.hero-inner .breadcrumbs a:hover {
  color: #ffffff;
}
.hero-inner .breadcrumbs li[aria-current] {
  color: #ffffff;
}
.hero-inner .breadcrumbs .sep {
  color: rgba(255, 255, 255, 0.4);
}

.trust-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 2.5rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
  justify-content: center;
  align-items: flex-start;
}
.trust-grid > * {
  box-sizing: border-box;
  width: 100%;
}
@media (min-width: 1024px) {
  .trust-grid > * {
    width: calc(25% - 2rem);
    text-align: center;
  }
  .trust-item svg {
    margin-left: auto;
    margin-right: auto;
  }
}
.trust-item svg {
  width: 32px;
  height: 32px;
  color: #1a7a8c;
}
.trust-item h3 {
  margin-top: 1.25rem;
  font-size: 1.25rem;
}
.trust-item p {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: #5b6571;
}

.featured__price {
  margin-top: 0.75rem;
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: #07203c;
}
.featured .btn {
  margin-top: 2rem;
}

.cards-2 {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-left: -1rem;
  margin-right: -1rem;
  margin-bottom: -2rem;
  margin-top: 3rem;
}
.cards-2 > * {
  box-sizing: border-box;
  margin-left: 1rem;
  margin-right: 1rem;
  margin-bottom: 2rem;
  width: calc(100% - 2rem);
}
.service-card {
  background: #ffffff;
  border: 1px solid #e5e8eb;
  border-radius: 0.5rem;
  padding: 2.5rem;
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -15px rgba(0, 47, 108, 0.18);
}
.service-card > svg {
  width: 28px;
  height: 28px;
  color: #1a7a8c;
}
.service-card h3 {
  margin-top: 1.25rem;
  font-size: 1.5rem;
}
.service-card p {
  margin-top: 1rem;
  color: #5b6571;
}
.service-card .link-arrow {
  margin-top: 1.5rem;
}

.steps {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  margin-bottom: -1.5rem;
  margin-top: 3rem;
}
.steps > * {
  box-sizing: border-box;
  margin-left: 0.75rem;
  margin-right: 0.75rem;
  margin-bottom: 1.5rem;
  width: calc(100% - 1.5rem);
}
.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #e5e8eb;
  border-radius: 0.5rem;
  padding: 1.75rem;
}
.step__num {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(26, 122, 140, 0.08);
  color: #1a7a8c;
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
}
.step h3 {
  font-size: 1.125rem;
}
.step p {
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  color: #5b6571;
}

.callout {
  margin-top: 2.5rem;
  border-left: 3px solid #1a7a8c;
  background: rgba(26, 122, 140, 0.08);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1.5rem 1.75rem;
  color: #07203c;
}
.callout strong {
  color: #135c6b;
}

.pull-quote {
  margin-top: 2rem;
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 500;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.4;
  color: #07203c;
  border-left: 3px solid #1a7a8c;
  padding-left: 1.5rem;
}

.section-head--row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.property-grid {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-left: -1rem;
  margin-right: -1rem;
  margin-bottom: -2rem;
  margin-top: 3rem;
}
.property-grid > * {
  box-sizing: border-box;
  margin-left: 1rem;
  margin-right: 1rem;
  margin-bottom: 2rem;
  width: calc(100% - 2rem);
}

.property-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
}
.property-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  height: 0;
  padding-bottom: 68.75%;
  background: #f7f9fa;
}
.property-card__media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.property-card:hover .property-card__media img {
  transform: scale(1.04);
}
.property-card__media::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.property-card:hover .property-card__media::after {
  background: rgba(0, 0, 0, 0.12);
}

.property-card__go {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.property-card__go svg {
  width: 18px;
  height: 18px;
  color: #002f6c;
}
.property-card:hover .property-card__go {
  opacity: 1;
  transform: translateY(0);
}

/* Atribución de foto con licencia libre (Wikimedia Commons), sobre la imagen.
   Va sin enlace porque la tarjeta es un <a>; la URL de la ficha está en el
   comentario HTML junto al <img>. */
.foto-atribucion {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.5rem 0.7rem 0.4rem;
  font-size: 0.7rem;
  line-height: 1.2;
  text-align: right;
  color: rgba(255, 255, 255, 0.82);
  background-color: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  color: #ffffff;
  background: #1a7a8c;
}
.badge--venta {
  background: #002f6c;
}
.badge--alquiler {
  background: #1a7a8c;
}
.badge--obra-nueva {
  background: #135c6b;
}
.badge--terreno {
  background: #00254f;
}

.property-card__body {
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}
.property-card__body h3 {
  font-size: 1.125rem;
}
.property-card__loc {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #7d8794;
}
.property-card__price {
  margin-top: 0.6rem;
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 600;
  color: #135c6b;
}

.chips {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #5b6571;
}
.chips span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.chips svg {
  width: 14px;
  height: 14px;
  color: #1a7a8c;
}

.property-card--confidential .property-card__media {
  background: #002f6c;
  color: #ffffff;
}
.property-card--confidential .property-card__media::after {
  content: none;
}
.confidential-mark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.confidential-mark svg {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  color: #ffffff;
}
.confidential-mark span {
  display: block;
  margin-top: 0.75rem;
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8125rem;
}

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.filter button {
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1px solid #e5e8eb;
  color: #5b6571;
  background: #ffffff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.filter button:hover {
  border-color: #1a7a8c;
  color: #1a7a8c;
}
.filter button[aria-pressed="true"] {
  background: #1a7a8c;
  border-color: #1a7a8c;
  color: #ffffff;
}
.property-card.is-hidden {
  display: none;
}

.property-detail {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.property-detail > * + * {
  margin-top: 3rem;
}
.property-detail__head .eyebrow {
  margin-bottom: 0.75rem;
}
.property-detail__price {
  margin-top: 1rem;
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #135c6b;
}
.property-detail__loc {
  margin-top: 0.5rem;
  color: #7d8794;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.property-detail__loc svg {
  width: 16px;
  height: 16px;
}

.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.spec-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid #e5e8eb;
  border-radius: 999px;
  font-size: 0.875rem;
  color: #07203c;
  background: #ffffff;
}
.spec-chips svg {
  width: 15px;
  height: 15px;
  color: #1a7a8c;
}

.prose-block {
  margin-top: 2.5rem;
}
.prose-block h2 {
  font-size: 1.5rem;
}
.prose-block p {
  margin-top: 1rem;
  color: #5b6571;
}
.prose-block p + p {
  margin-top: 1rem;
}

.feature-list {
  display: block;
  margin-top: 1.5rem;
}
.feature-list > * + * {
  margin-top: 1rem;
}
.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: #5b6571;
}
.feature-list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #1a7a8c;
  margin-top: 0.2rem;
}

.table-wrap {
  margin-top: 1.5rem;
  overflow-x: auto;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 420px;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e5e8eb;
}
.spec-table thead th {
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  color: #07203c;
  background: #f7f9fa;
}
.spec-table tbody td {
  color: #5b6571;
}
.spec-table caption {
  caption-side: bottom;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: #7d8794;
  text-align: left;
}

.property-aside {
  align-self: start;
  background: #ffffff;
  border: 1px solid #e5e8eb;
  border-radius: 0.5rem;
  padding: 1.75rem;
}
.property-aside h2 {
  font-size: 1.25rem;
}
.property-aside p {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: #5b6571;
}
.property-aside .btn {
  margin-top: 1rem;
}
.property-aside .btn:first-of-type {
  margin-top: 1.5rem;
}

.gallery {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  margin-bottom: -1rem;
  margin-top: 1.5rem;
}
.gallery__item {
  box-sizing: border-box;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  margin-bottom: 1rem;
  width: calc(50% - 1rem);
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  height: 14rem;
  background: #f7f9fa;
  cursor: zoom-in;
}
.gallery__item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery__item:hover img {
  transform: scale(1.05);
}
.gallery__item--wide {
  width: calc(100% - 1rem);
}

.discretion {
  margin-top: 1.5rem;
  border-radius: 0.5rem;
  padding: 2.5rem;
  text-align: center;
  color: #ffffff;
  background: #002f6c;
}
.discretion svg {
  width: 48px;
  height: 48px;
  margin: 0 auto;
}
.discretion h2 {
  color: #ffffff;
  margin-top: 1.25rem;
  font-size: 1.75rem;
}
.discretion p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}
.discretion .btn {
  margin-top: 2rem;
}

.property-location {
  margin-top: 1.5rem;
}
.property-location img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}
.property-location figcaption {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #8b94a0;
  text-align: center;
}

.faq {
  margin-top: 3rem;
  max-width: none;
}
.faq__item {
  border-bottom: 1px solid #e5e8eb;
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.25rem 0;
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 500;
  font-size: 1.0625rem;
  color: #07203c;
}
.faq__q svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #1a7a8c;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq__item.is-open .faq__q svg {
  transform: rotate(45deg);
}
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq__a-inner {
  padding-bottom: 1.25rem;
  color: #5b6571;
}

.testimonial-grid {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  margin-bottom: -1.5rem;
  margin-top: 3rem;
}
.testimonial-grid > * {
  box-sizing: border-box;
  margin-left: 0.75rem;
  margin-right: 0.75rem;
  margin-bottom: 1.5rem;
  width: calc(100% - 1.5rem);
}
.testimonial {
  background: #ffffff;
  border: 1px solid #e5e8eb;
  border-left: 2px solid #1a7a8c;
  border-radius: 0.5rem;
  padding: 2rem;
}
.testimonial blockquote {
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #5b6571;
}
.testimonial hr {
  border: 0;
  border-top: 1px solid #e5e8eb;
  margin: 1.5rem 0;
}
.testimonial figcaption .name {
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 600;
  color: #07203c;
}
.testimonial figcaption .role {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #7d8794;
}

.cta-banner {
  border-radius: 0.5rem;
  padding: 3rem 1.5rem;
  text-align: center;
  color: #ffffff;
  background: #002f6c;
}
.cta-banner h2 {
  color: #ffffff;
}
.cta-banner p {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: stretch;
}

.contact-grid {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.contact-grid > * + * {
  margin-top: 3rem;
}
.contact-info dl {
  display: block;
  margin-top: 1.5rem;
}
.contact-info dl > * + * {
  margin-top: 1.25rem;
}
.contact-info dt {
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7d8794;
}
.contact-info dd {
  margin-top: 0.25rem;
}
.contact-info dd a {
  color: #07203c;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.contact-info dd a:hover {
  color: #1a7a8c;
}
.contact-info__note {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: #7d8794;
  border-left: 3px solid #1a7a8c;
  padding-left: 1rem;
}

.form {
  background: #ffffff;
  border: 1px solid #e5e8eb;
  border-radius: 0.5rem;
  padding: 1.75rem;
}
.field {
  margin-top: 1.25rem;
}
.field:first-of-type {
  margin-top: 1.5rem;
}
.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #07203c;
}
.field .req {
  color: #1a7a8c;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e5e8eb;
  border-radius: 4px;
  background: #ffffff;
  color: #07203c;
  transition:
    border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #1a7a8c;
  box-shadow: 0 0 0 3px rgba(26, 122, 140, 0.08);
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field--check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.field--check input {
  width: auto;
  margin-top: 0.25rem;
}
.field--check label {
  margin: 0;
  font-size: 0.8125rem;
  color: #5b6571;
  font-weight: 400;
}
.field--check a {
  color: #1a7a8c;
  text-decoration: underline;
}
.form .btn {
  margin-top: 1.5rem;
}
.form__success {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 4px;
  background: rgba(26, 122, 140, 0.08);
  color: #135c6b;
  font-size: 0.9375rem;
}
.form__success.is-visible {
  display: block;
}
.form__error {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 4px;
  background: #fdecea;
  color: #8a1c1c;
  font-size: 0.9375rem;
}
.form__error.is-visible {
  display: block;
}

.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.breadcrumbs {
  font-size: 0.8125rem;
  color: #7d8794;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.breadcrumbs a:hover {
  color: #1a7a8c;
}
.breadcrumbs li[aria-current] {
  color: #07203c;
}
.breadcrumbs .sep {
  color: #e5e8eb;
}

/* El botón flotante .whatsapp-float fue sustituido por el widget joinchat
   (css/whatsapp/styles.css + js/whatsapp/script.js). */

.lightbox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: none;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  background: rgba(4, 21, 49, 0.92);
  padding: 1.5rem;
}
.lightbox.is-open {
  display: -ms-flexbox;
  display: flex;
}
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 0.5rem;
  object-fit: contain;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox__close {
  top: 1.5rem;
  right: 1.5rem;
}
.lightbox__nav svg,
.lightbox__close svg {
  width: 24px;
  height: 24px;
}
.lightbox__nav--prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__nav--next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.prose {
  max-width: 48rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.prose h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
}
.prose h2:first-of-type {
  margin-top: 0;
}
.prose p {
  margin-top: 1rem;
  color: #5b6571;
}
.prose a {
  color: #1a7a8c;
  text-decoration: underline;
}
.prose ul {
  margin-top: 1rem;
  padding-left: 1.25rem;
  list-style: disc;
  color: #5b6571;
}
.prose li {
  margin-top: 0.5rem;
}
.prose .pending {
  background: #fff7e6;
  border: 1px solid #f0d9a8;
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  color: #8a6400;
  font-size: 0.9em;
}

/* Aviso "documento solo en español" en páginas legales. Vacío en ES (el cuerpo
   ya está en castellano), por eso se oculta cuando no tiene texto. */
.legal-notice {
  margin-top: 1rem;
  border-left: 3px solid #1a7a8c;
  background: rgba(26, 122, 140, 0.08);
  border-radius: 0 4px 4px 0;
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
  color: #07203c;
}
.legal-notice:empty {
  display: none;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .trust-grid > * {
    width: calc(50% - 2.5rem);
  }
  .cards-2 > * {
    width: calc(50% - 2rem);
  }
  .property-grid > * {
    width: calc(50% - 2rem);
  }
  .testimonial-grid > * {
    width: calc(50% - 1.5rem);
  }
  .gallery > * {
    width: calc(33.3333% - 1rem);
  }
  .gallery__item--wide {
    width: calc(66.6667% - 1rem);
  }
  .steps > * {
    width: calc(50% - 1.5rem);
  }

  .section-head--row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .cta-banner__actions {
    flex-direction: row;
  }
  .site-footer__grid > * {
    width: calc(25% - 2.5rem);
  }
}

@media (min-width: 1024px) {
  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .hero__grid {
    padding-top: 7rem;
    padding-bottom: 7rem;
    gap: 4rem;
  }
  .split {
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-align: center;
    align-items: center;
  }
  .split > * {
    -ms-flex: 1;
    flex: 1;
  }
  .split > * + * {
    margin-top: 0;
    margin-left: 3rem;
  }
  .trust-grid > * {
    width: calc(25% - 2.5rem);
  }
  .testimonial-grid > * {
    width: calc(25% - 1.5rem);
  }
  .property-grid > * {
    width: calc(33.3333% - 2rem);
  }
  .contact-grid {
    -ms-flex-direction: row;
    flex-direction: row;
  }
  .contact-grid > :first-child {
    -ms-flex: 0.9;
    flex: 0.9;
  }
  .contact-grid > :last-child {
    -ms-flex: 1.1;
    flex: 1.1;
  }
  .contact-grid > * + * {
    margin-top: 0;
    margin-left: 3rem;
  }
  .property-detail {
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-align: start;
    align-items: flex-start;
  }
  .property-detail__main {
    -ms-flex: 1.6;
    flex: 1.6;
  }
  .property-aside {
    -ms-flex: 1;
    flex: 1;
  }
  .property-detail > * + * {
    margin-top: 0;
    margin-left: 3rem;
  }
  .property-detail__main {
    min-width: 0;
  }
  .property-aside {
    position: -webkit-sticky;
    position: sticky;
    top: calc(72px + 1.5rem);
  }
  .site-footer__grid > * {
    width: calc(25% - 3rem);
  }
}

/* Centrar en escritorio: tarjetas de confianza/valores y columnas del footer */
@media (min-width: 1024px) {
  .trust-grid > * {
    width: calc(25% - 2rem);
    text-align: center;
  }
  .trust-item svg {
    margin-left: auto;
    margin-right: auto;
  }
  .site-footer__grid > * {
    text-align: center;
  }
  .site-footer__logo {
    margin-left: auto;
    margin-right: auto;
  }
  .site-footer__brand p {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-list {
    -ms-flex-align: center;
    align-items: center;
  }
  .site-footer .social {
    -ms-flex-align: center;
    align-items: center;
  }
  /* Navegación, Legal y Contacto alineadas a la izquierda (solo la marca queda centrada) */
  .site-footer__grid > *:not(:first-child) {
    text-align: left;
  }
  .site-footer__grid > *:not(:first-child) .footer-list,
  .site-footer__grid > *:not(:first-child) .social {
    -ms-flex-align: start;
    align-items: flex-start;
  }
}

.show-desktop {
  display: none;
}
@media (min-width: 1024px) {
  .show-desktop {
    display: flex;
  }
  .hide-desktop {
    display: none;
  }
}
@media (max-width: 1023.98px) {
  .nav {
    display: none;
  }
  .header__actions {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: #002f6c;
  color: #ffffff;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  transition: top 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.skip-link:focus {
  top: 1rem;
}

/* ===== Buscador de propiedades ===== */
.search {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  background: #002f6c;
  border-radius: 0.5rem;
  padding: 1.25rem;
  box-shadow: 0 12px 30px -15px rgba(0, 47, 108, 0.18);
}
.search > * + * {
  margin-top: 1rem;
}
.search--hero {
  margin-top: 2.25rem;
}
/* La cabecera de propiedades lleva el buscador dentro: añade espacio inferior
   para que no quede pegado al borde del hero (como el hero de la home). */
.search--hero {
  margin-bottom: 3rem;
}
.search__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.search__field label {
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.search__field select,
.search__field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #ffffff;
  color: #07203c;
  transition:
    border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.search__field select:focus,
.search__field input:focus {
  outline: none;
  border-color: #1a7a8c;
  box-shadow: 0 0 0 3px rgba(26, 122, 140, 0.45);
}
.search__field input::placeholder {
  color: #7d8794;
}
.search__actions {
  display: flex;
  align-items: flex-end;
}
.search__actions .btn {
  width: 100%;
  padding-top: 0.74rem;
  padding-bottom: 0.74rem;
}
.search__empty {
  margin-top: 1.75rem;
  color: #5b6571;
}
/* FIX: mensaje de error inline de validación de precios del buscador (oculto por defecto vía [hidden]) */
.search__error {
  margin: 0;
  padding: 0.6rem 0.85rem;
  border-radius: 4px;
  background: #c0392b;
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.4;
}
.link-inline {
  color: #1a7a8c;
  font-weight: 600;
  text-decoration: underline;
}
.link-inline:hover {
  color: #135c6b;
}
@media (min-width: 992px) {
  .search {
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-align: end;
    align-items: flex-end;
    /* FIX: permite que el error de validación caiga a una línea propia bajo los campos */
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  .search > * + * {
    margin-top: 0;
    margin-left: 1.1rem;
  }
  .search__field {
    -ms-flex: 1;
    flex: 1;
  }
  /* FIX: en escritorio el error ocupa toda la fila bajo los campos */
  .search__error {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
    width: 100%;
    margin: 0.85rem 0 0;
  }
}

/* ===== Foto local (Carballo) en Nosotros ===== */
.foto-local-band {
  margin: 0;
}
.foto-local {
  display: block;
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* ===== Selector de idioma ===== */
.lang {
  position: relative;
}
.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #e5e8eb;
  color: #07203c;
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  transition:
    border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.lang__toggle:hover {
  border-color: #1a7a8c;
  color: #1a7a8c;
}
.lang__flag {
  width: 20px;
  height: 20px;
  border-radius: 2px;
  display: block;
}
.lang__caret {
  width: 14px;
  height: 14px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.lang.is-open .lang__caret {
  transform: rotate(180deg);
}
.lang__gl {
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 22px;
  height: 16px;
  border-radius: 2px;
  background: #002f6c;
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 700;
}
.lang__flag[hidden],
.lang__gl[hidden] {
  display: none;
}
.lang__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 12rem;
  background: #ffffff;
  border: 1px solid #e5e8eb;
  border-radius: 0.5rem;
  box-shadow: 0 12px 30px -15px rgba(0, 47, 108, 0.18);
  padding: 0.4rem;
  display: none;
  z-index: 60;
}
.lang.is-open .lang__menu {
  display: block;
}
.lang__menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.6rem;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #07203c;
  text-align: left;
  transition: background 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.lang__menu button:hover {
  background: #f7f9fa;
}
.lang__menu button[aria-selected="true"] {
  background: rgba(26, 122, 140, 0.08);
  color: #135c6b;
}
.lang__menu img {
  width: 20px;
  height: 20px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ===== Aviso de cookies (abajo a la derecha, sobre el botón de WhatsApp) ===== */
.cookie-pop {
  position: fixed;
  right: 1.5rem;
  bottom: 6rem;
  z-index: 90;
  width: calc(100vw - 2rem);
  background: #ffffff;
  border: 1px solid #e5e8eb;
  border-radius: 0.5rem;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.45);
  padding: 1.25rem 1.35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition:
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.3s;
}
.cookie-pop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cookie-pop__title {
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 600;
  color: #07203c;
  font-size: 1rem;
}
.cookie-pop__text {
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #5b6571;
}
.cookie-pop__text a {
  color: #1a7a8c;
  text-decoration: underline;
}
.cookie-pop__actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
}
.cookie-pop__actions .btn {
  flex: 1;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
@media (max-width: 600px) {
  .cookie-pop {
    right: 1rem;
    left: 1rem;
    bottom: 6rem;
    width: auto;
  }
}

/* Selector de idioma flotante (abajo-izquierda, como el botón de WhatsApp) */
.lang-float {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
}
.lang-float .lang__toggle {
  background: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.4);
  padding: 0.55rem 0.85rem;
}
.lang-float .lang__menu {
  top: auto;
  bottom: calc(100% + 0.5rem);
  left: 0;
  right: auto;
}
@media (max-width: 1023.98px) {
  .lang-float {
    display: none;
  }
}

/* Selector de idioma dentro del menú móvil (lista en línea, sin desplegable) */
.lang-mobile {
  margin-top: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e8eb;
}
.lang-mobile .lang__toggle {
  display: none;
}
.lang-mobile .lang__menu {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.lang-mobile .lang__menu button {
  width: auto;
  border: 1px solid #e5e8eb;
}

/* === Escalado responsive por breakpoints (en vez de tamanos fluidos) — compatible con navegadores antiguos === */
@media (min-width: 768px) {
  h1 {
    font-size: 2.75rem;
  }
  h2 {
    font-size: 2.1875rem;
  }
  .hero-inner__content {
    padding-top: 4.25rem;
    padding-bottom: 4.25rem;
  }
  .cta-banner {
    padding: 4rem 1.5rem;
  }
  .discretion {
    padding: 3.25rem;
  }
  .form {
    padding: 2.25rem;
  }
}
@media (min-width: 1024px) {
  h1 {
    font-size: 3.5rem;
  }
  h2 {
    font-size: 2.625rem;
  }
  .lead {
    font-size: 1.0625rem;
  }
  .pull-quote {
    font-size: 1.75rem;
  }
  .property-detail__price {
    font-size: 2rem;
  }
  .hero-inner__content {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }
  .search--hero {
    margin-bottom: 5.5rem;
  }
  .cta-banner {
    padding: 5rem 1.5rem;
  }
  .discretion {
    padding: 4rem;
  }
  .form {
    padding: 2.5rem;
  }
}

/* Equivalentes a las funciones min/max mediante breakpoints (compatible con navegadores antiguos) */
@media (min-width: 1196px) {
  .lightbox img {
    max-width: 1100px;
  }
}
@media (min-width: 392px) {
  .cookie-pop {
    width: 360px;
  }
}

/* Alturas de imagen en escritorio (media de seccion y galeria) */
@media (min-width: 768px) {
  .gallery__item {
    height: 16rem;
  }
}
@media (min-width: 1024px) {
  .media--4-3 {
    height: 24rem;
  }
  .media--square {
    height: 30rem;
  }
  .media--5-4 {
    height: 26rem;
  }
}

/* ===== CTAs en movil (phone): apilados y a ancho completo ===== */
@media (max-width: 767.98px) {
  /* Hero: botones uno debajo de otro */
  .hero__cta {
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-align: stretch;
    align-items: stretch;
  }
  /* Banners CTA finales: dejar visible solo el boton principal (el 1.o) */
  .cta-banner__actions .btn:nth-child(n + 2) {
    display: none;
  }
  /* CTAs del hero y CTAs principales de seccion: a ancho completo */
  .hero__cta .btn,
  .section .btn--primary {
    width: 100%;
  }
}
