/* =========================================================
   FLORIA INMOBILIARIA - Estilos base / reutilizables
   Este archivo contiene el reset, variables globales y
   clases utilitarias pensadas para reutilizarse en todas
   las secciones del sitio (no solo el home).
   ========================================================= */

@font-face {
  font-family: 'Centra No1';
  src: url('../font/CentraNo1-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Centra No1';
  src: url('../font/CentraNo1-Book.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Centra No1';
  src: url('../font/CentraNo1-Medium.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Centra No1';
  src: url('../font/CentraNo1-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colores */
  --color-primary: #f5b400;
  --color-dark: #16181a;
  --color-dark-soft: #24272a;
  --color-charcoal: #333333;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-light: #6e6e6e;
  --overlay-dark: rgba(15, 17, 19, 0.35);

  /* Tipografía */
  --font-base: 'Centra No1', 'Montserrat', Arial, Helvetica, sans-serif;
  --fs-h1: 3rem;
  --fs-h2: 2.25rem;
  --fs-h3: 1.5rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Espaciados */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Layout */
  --container-max: 1200px;
  --header-height: 90px;
  --header-height-scrolled: 70px;

  /* Otros */
  --transition-base: all 0.3s ease;
  --radius-base: 4px;
  --shadow-base: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* -------------------- Reset -------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-size: var(--fs-body);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input[type="submit"],
input[type="button"] {
  font-family: inherit;
  cursor: pointer;
  border: none;
  appearance: none;
  -webkit-appearance: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.2;
}

/* -------------------- Utilidades / clases reutilizables -------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.wrap-header{
  width: 95%;
  margin: 0 auto;
}
.section {
  padding: var(--space-lg) 0;
}

@media (max-width: 767px) {
  .section {
    padding: var(--space-md) 0;
  }
}

.section__title {
  font-size: var(--fs-h2);
  text-align: center;
  margin-bottom: var(--space-xs);
  color: var(--color-dark);
}

.section__divider {
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 0 auto var(--space-md);
}

.section__subtitle {
  max-width: 720px;
  font-size: 1rem;
  font-weight: 300;
  text-align: center;
  color: var(--color-text-light);
  margin: 0 auto var(--space-lg);
}

/* Modificador de seccion con fondo oscuro (reutilizable) */
.section--dark {
  background-color: var(--color-charcoal);
}

.section--dark .section__title,
.section--dark .section__subtitle {
  color: var(--color-white);
}

.section--dark .section__subtitle {
  color: rgba(255, 255, 255, 0.75);
}

/* Modificadores de alineacion a la izquierda (reutilizables en
   secciones con layout de columnas, ej. texto + galeria) */
.section__title--left,
.section__subtitle--left {
  text-align: left;
}

.section__title--accent,
.section--dark .section__title--accent {
  color: var(--color-primary);
}

.section__divider--left {
  margin-left: 0;
}

.section__subtitle--left {
  margin-left: 0;
  margin-right: 0;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 767px) {
  .section__title {
    font-size: 1.6rem;
  }
}

.overlay-dark {
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
}

.text-center {
  text-align: center;
}

.text-white {
  color: var(--color-white);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Botones reutilizables */
.btn {
  display: inline-block;
  padding: 0.85em 2em;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-base);
  transition: var(--transition-base);
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-dark);
}

.btn--primary:hover {
  background-color: #d99e00;
}

.btn--outline {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white);
}

.btn--outline:hover {
  background-color: var(--color-white);
  color: var(--color-dark);
}

.btn--outline-dark {
  background-color: transparent;
  color: var(--color-dark);
  border: 1px solid var(--color-dark);
}

.btn--outline-dark:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.btn--dark {
  background-color: #3a3a3a;
  color: var(--color-white);
}

.btn--dark:hover {
  background-color: #4a4a4a;
}

.btn--pill {
  border-radius: 999px;
}

.btn--sm {
  padding: 0.6em 1.4em;
  font-size: 0.8rem;
}

.btn--icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn--normal-case {
  text-transform: none;
  letter-spacing: normal;
}

/* Enlaces de redes sociales (reutilizables en header y footer) */
.social-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.social-links__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-white);
  font-size: 0.95rem;
  transition: var(--transition-base);
}

.social-links__link:hover {
  color: var(--color-primary);
}

/* Puntos de navegación / dots reutilizables (slick los sobreescribe con su propio markup,
   pero se dejan las variables de color disponibles para otros carruseles) */
.dots-primary .slick-dots li.slick-active button:before {
  color: var(--color-primary);
  opacity: 1;
}

/* =========================================================
   HEADER / MENU PRINCIPAL
   Funciona en escritorio (menu horizontal) y mobile
   (menu tipo drawer lateral con boton hamburguesa).
   ========================================================= */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: var(--space-sm) 0;
  transition: var(--transition-base);
}

.site-header.is-scrolled {
  position: fixed;
  background-color: var(--color-dark);
  box-shadow: var(--shadow-base);
  padding: 0.6rem 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* En desktop el nav pasa a ser un tercer bloque independiente
   (logo | nav centrado | acciones), en vez de ir agrupado junto
   con las redes y el botón dentro de .site-header__actions. */
@media (min-width: 992px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .main-nav {
    display: flex;
    justify-content: center;
  }
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 30px;
  width: auto;
}

/* Navegacion principal (desktop) */
.main-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Selector por etiqueta (.main-nav__list a) en vez de depender de la
   clase .main-nav__link en el <a>: asi el estilo sigue funcionando
   tal cual cuando este bloque se reemplace por wp_nav_menu(), que
   por defecto no agrega clases al <a> (solo al <li>). */
.main-nav__list a {
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-white);
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition-base);
}

.main-nav__list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-base);
}

.main-nav__list a:hover,
.main-nav__list a.is-active,
.main-nav__list .current-menu-item > a {
  color: var(--color-primary);
}

.main-nav__list a:hover::after,
.main-nav__list a.is-active::after,
.main-nav__list .current-menu-item > a::after {
  width: 100%;
}

/* Contenedor a la derecha: nav + redes sociales + boton mobile */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

/* Boton de accion del header (ej. "Cotizar Proyecto") */
.site-header__cta {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .site-header__cta {
    padding: 0.55em 1.1em;
    font-size: 0.75rem;
  }
}

/* Boton hamburguesa (solo mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  z-index: 110;
}

.nav-toggle__bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: var(--transition-base);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Fondo oscuro cuando el menu mobile esta abierto */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.is-active {
  display: block;
  opacity: 1;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 991px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 80%);
    background-color: var(--color-dark);
    padding: 6rem var(--space-md) var(--space-md);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 100;
    overflow-y: auto;
  }

  .main-nav.is-active {
    transform: translateX(0);
  }

  .main-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .site-header__actions .social-links {
    display: none;
  }

  .main-nav .social-links {
    display: flex;
    margin-top: var(--space-lg);
  }

  .main-nav .social-links__link {
    color: var(--color-white);
  }

  .nav-toggle {
    display: flex;
  }
}

@media (min-width: 992px) {
  .main-nav .social-links {
    display: none;
  }
}

/* =========================================================
   BANNER PRINCIPAL (SLIDER) - Slick Slider
   Clases genericas (.banner, .banner__slide...) pensadas
   para reutilizarse en otros carruseles del sitio.
   ========================================================= */

.banner {
  position: relative;
  width: 100%;
}

/* Slick agrega margin-bottom:30px por defecto a .slick-slider
   (pensado para cuando los dots van debajo del carrusel). Como
   aqui los dots quedan superpuestos, se anula ese margen. */
.banner .slick-slider {
  margin-bottom: 0;
}

.banner .slick-list,
.banner .slick-track {
  height: 100%;
}

.banner__slide {
  position: relative;
  height: 100vh;
  min-height: 560px;
  background-size: cover;
  background-position: center;
  display: flex !important;
  align-items: center;
}

.banner__content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}

.banner__title {
  font-size: var(--fs-h1);
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.banner__subtitle {
  font-size: var(--fs-h3);
  font-weight: 300;
  color: var(--color-white);
}

/* -------------------- Slick overrides -------------------- */
.banner .slick-dots {
  bottom: var(--space-md);
}

.banner .slick-dots li button:before {
  font-size: 12px;
  color: var(--color-white);
  opacity: 0.6;
}

.banner .slick-dots li.slick-active button:before {
  color: var(--color-primary);
  opacity: 1;
}

.banner .slick-arrow {
  z-index: 3;
  width: 44px;
  height: 44px;
}

.banner .slick-prev {
  left: var(--space-md);
}

.banner .slick-next {
  right: var(--space-md);
}

.banner .slick-prev:before,
.banner .slick-next:before {
  font-size: 32px;
  opacity: 0.8;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 767px) {
  .banner__slide {
    height: 85vh;
    min-height: 460px;
  }

  .banner__title {
    font-size: 2rem;
  }

  .banner__subtitle {
    font-size: 1.1rem;
    padding: 0 var(--space-sm);
  }

  .banner .slick-arrow {
    display: none !important;
  }
}

/* =========================================================
   DOTS ESTILO CIRCULO CON BORDE
   Reutilizable en cualquier carrusel Slick que necesite
   puntos tipo "radio button" en vez de los puntos por defecto.
   ========================================================= */

.dots-outline .slick-dots {
  position: static;
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-md);
}

.dots-outline .slick-dots li {
  width: 14px;
  height: 14px;
  margin: 0;
}

.dots-outline .slick-dots li button {
  width: 14px;
  height: 14px;
  padding: 0;
}

.dots-outline .slick-dots li button:before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background-color: transparent;
  opacity: 1;
}

.dots-outline .slick-dots li.slick-active button:before {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/* =========================================================
   PROJECT SLIDER (Ej: "Conoce Edificio Copihue")
   Carrusel de imagenes con info superpuesta (ubicacion,
   titulo) y boton de accion. Clases genericas para
   reutilizar en otras secciones con carruseles de proyectos.
   ========================================================= */

.project-slider {
  position: relative;
}

.project-slider__item {
  position: relative;
  overflow: hidden;
}

.project-slider__link {
  display: block;
}

.project-slider__image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project-slider__item:hover .project-slider__image {
  transform: scale(1.08);
}

.project-slider__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 35%);
  pointer-events: none;
}

.project-slider__info {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 2;
  color: var(--color-white);
}

.project-slider__location {
  display: block;
  font-size: var(--fs-small);
  margin-bottom: 4px;
}

.project-slider__title {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
}

.project-slider__btn {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.project-slider .slick-arrow {
  z-index: 3;
  width: 44px;
  height: 44px;
}

.project-slider .slick-prev {
  left: var(--space-md);
}

.project-slider .slick-next {
  right: var(--space-md);
}

.project-slider .slick-prev:before,
.project-slider .slick-next:before {
  font-size: 32px;
  color: var(--color-primary);
  opacity: 1;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 767px) {
  .project-slider__image {
    height: 320px;
  }

  .project-slider__title {
    font-size: 1.05rem;
  }

  .project-slider__btn {
    padding: 0.7em 1.4em;
  }

  .project-slider .slick-arrow {
    display: none !important;
  }
}

/* =========================================================
   SPLIT SECTION (galeria + contenido)
   Layout de dos columnas: galeria de imagenes a un lado y
   bloque de texto al otro. Clases genericas reutilizables
   en otras secciones con la misma estructura (ej. "Quienes
   somos", "Proyecto destacado", etc).
   ========================================================= */

.split-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.split-section__gallery {
  display: flex;
  gap: var(--space-sm);
}

.split-section__gallery-item {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-base);
  align-self: flex-start;
}

.split-section__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.split-section__gallery-item:hover img {
  transform: scale(1.08);
}

.split-section__gallery-item:nth-child(1) {
  height: 265px;
}

.split-section__gallery-item:nth-child(2) {
  height: 285px;
}

.split-section__gallery-item:nth-child(3) {
  height: 265px;
}

.split-section__content p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-md);
}

/* Modificador para cuando el contenido va primero (izquierda)
   y el elemento multimedia es mas ancho (ej. mapa de ubicacion) */
.split-section--map {
  grid-template-columns: 1fr 1.7fr;
}

.split-section__map {
  border-radius: var(--radius-base);
  overflow: hidden;
}

.split-section__map img,
.split-section__map iframe {
  width: 100%;
  height: 330px;
  object-fit: cover;
  display: block;
  border: none;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 991px) {
  .split-section {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .split-section__gallery-item:nth-child(1),
  .split-section__gallery-item:nth-child(2),
  .split-section__gallery-item:nth-child(3) {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .split-section__gallery {
    gap: var(--space-xs);
  }

  .split-section__gallery-item:nth-child(1),
  .split-section__gallery-item:nth-child(2),
  .split-section__gallery-item:nth-child(3) {
    height: 150px;
  }
}

/* =========================================================
   CTA BAND ("Hablemos de tu próximo hogar")
   Franja de llamado a la accion, reutilizable en otras
   paginas con distinto texto/enlace.
   ========================================================= */

.cta-band {
  background-color: var(--color-primary);
  padding: var(--space-md) 0;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.cta-band__title {
  font-size: 1.85rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.cta-band__text {
  max-width: 560px;
  font-size: 0.95rem;
  color: var(--color-dark);
}

@media (max-width: 767px) {
  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band__title {
    font-size: 1.5rem;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding-top: var(--space-lg);
}

.site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
}

.site-footer__follow {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-xl);
  padding: var(--space-lg) 0;
}

.footer-newsletter {
  flex: 0 1 320px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.footer-newsletter__title {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-md);
}

.newsletter-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  max-width: 320px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 10px;
}

.newsletter-form__row input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-white);
  font-family: var(--font-base);
  font-size: 0.9rem;
}

.newsletter-form__row input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter__hint {
  display: block;
  margin-top: var(--space-sm);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.5);
}

.footer-links__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-md);
}

.footer-links__list li {
  margin-bottom: 0.65rem;
}

.footer-links__list a {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-base);
}

.footer-links__list a:hover {
  color: var(--color-primary);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-md) 0;
  text-align: center;
}

.site-footer__bottom p {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.5);
}

/* -------------------- Responsive -------------------- */
@media (max-width: 991px) {
  .footer-links {
    gap: var(--space-lg);
  }
}

@media (max-width: 575px) {
  .site-footer .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .site-footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .footer-newsletter {
    flex-basis: 100%;
  }

  .footer-links {
    flex-basis: 100%;
    gap: var(--space-lg) var(--space-xl);
  }

  .newsletter-form__row {
    max-width: 100%;
  }
}

/* =========================================================
   PAGE BANNER (hero de paginas interiores)
   Version mas baja y sin slider del banner principal del
   home, para usar como cabecera en "Quienes somos", detalle
   de proyecto, contacto, etc. Reutiliza .overlay-dark.
   ========================================================= */

.page-banner {
  position: relative;
  height: 400px;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  background-color: var(--color-dark);
  background-size: cover;
  background-position: center;
  padding-bottom: var(--space-xl);
}

.page-banner__content {
  position: relative;
  z-index: 2;
}

.page-banner__eyebrow {
  display: block;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.page-banner__title {
  font-size: 2.5rem;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.page-banner__text {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.85);
}

/* -------------------- Responsive -------------------- */
@media (max-width: 767px) {
  .page-banner {
    height: 420px;
    min-height: 360px;
    padding-bottom: var(--space-md);
  }

  .page-banner__title {
    font-size: 1.8rem;
  }

  .page-banner__text {
    font-size: 0.9rem;
  }
}

/* =========================================================
   ERROR 404
   Contenido central de la pantalla de error, reutiliza el
   .page-banner como hero y las clases .section / .btn ya
   existentes para mantener el mismo lenguaje visual.
   ========================================================= */

.error-404__content {
  text-align: center;
}

.error-404__code {
  display: block;
  font-size: 7rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.error-404__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* -------------------- Responsive -------------------- */
@media (max-width: 767px) {
  .error-404__code {
    font-size: 4.5rem;
  }

  .error-404__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* =========================================================
   FEATURE ROW (ej. Mision / Vision)
   Fila de imagen + texto que alterna de lado. Reutilizable
   para cualquier bloque de contenido con este patron.
   ========================================================= */

.feature-row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row--reverse {
  flex-direction: row-reverse;
}

.feature-row__media {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-base);
}

.feature-row__media img {
  width: 100%;
  display: block;
  border-radius: var(--radius-base);
  transition: transform 0.5s ease;
}

.feature-row__media:hover img {
  transform: scale(1.08);
}

.feature-row__content {
  flex: 1;
}

.feature-row__title {
  font-size: var(--fs-h3);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.feature-row__text {
  color: rgba(255, 255, 255, 0.75);
}

/* -------------------- Responsive -------------------- */
@media (max-width: 767px) {
  .feature-row,
  .feature-row--reverse {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
  }
}

/* =========================================================
   PILLARS GRID (ej. "Los pilares de Floria")
   Grilla de tarjetas con icono, titulo y texto. Reutilizable
   para cualquier listado de 2 a 4 items destacados.
   ========================================================= */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.pillar-card {
  border: 1px solid rgba(245, 180, 0, 0.35);
  border-radius: 8px;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.pillar-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  color: var(--color-primary);
  font-size: 1.4rem;
}

.pillar-card__title {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.pillar-card__text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

/* -------------------- Responsive -------------------- */
@media (max-width: 767px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* =========================================================
   TEAM GRID (ej. "Directorio")
   Grilla de tarjetas con foto, nombre, cargo y descripcion.
   Reutilizable para cualquier listado de personas.
   ========================================================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.team-card__photo {
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.team-card__photo img {
  width: 100%;
  aspect-ratio: 320 / 509;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}

.team-card__photo:hover img {
  transform: scale(1.08);
}

.team-card__name {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.15rem;
}

.team-card__role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.team-card__text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* -------------------- Responsive -------------------- */
@media (max-width: 767px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 380px;
    margin: 0 auto;
  }
}

/* =========================================================
   CONTACT FORM (ej. "Conversemos sobre tu próximo hogar")
   Formulario con inputs subrayados, reutilizable en
   cualquier pagina que necesite un formulario de contacto.
   ========================================================= */

.contact-form {
  max-width: 900px;
  margin: 0 auto;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-md);
}

.contact-form__field {
  display: flex;
  flex-direction: column;
}

.contact-form__field--full {
  grid-column: 1 / -1;
}

/* CF7 envuelve cada campo en <p> y el input/textarea en un
   <span class="wpcf7-form-control-wrap">; al ya no ser hijos
   directos del flex container, dejan de heredar el ancho por
   "stretch" y hay que forzarlo explícitamente. */
.contact-form__field p {
  width: 100%;
  margin: 0;
}

.contact-form__field .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.contact-form__label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-sm);
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 0.6rem;
  color: var(--color-white);
  font-family: var(--font-base);
  font-size: 1rem;
  outline: none;
}

.contact-form__textarea {
  border-bottom: none;
  resize: vertical;
  min-height: 90px;
  height: 90px;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.contact-form__divider {
  border: none;
  border-top: 1px solid var(--color-primary);
  margin-bottom: var(--space-md);
}

.contact-form__actions {
  display: flex;
  justify-content: flex-end;
}

.contact-form__actions p {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.contact-form__actions .wpcf7-spinner {
  margin: var(--space-sm) 0 0;
}

.section--dark .wpcf7-response-output {
  color: var(--color-white);
}

/* El mensaje de éxito por defecto de CF7 se reemplaza por el
   modal (#form-success-modal); solo se oculta en estado "sent"
   para no perder los mensajes de error/spam/inválido. */
.wpcf7 form.sent .wpcf7-response-output {
  display: none;
}

/* =========================================================
   MODAL DE ÉXITO (formulario de contacto)
   Reemplaza el mensaje de éxito por defecto de CF7. Se abre
   escuchando el evento "wpcf7mailsent" (ver main.js).
   ========================================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition-base);
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--overlay-dark);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  background-color: var(--color-dark);
  color: var(--color-white);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
  padding: var(--space-lg) var(--space-md);
  max-width: 420px;
  width: 90%;
  text-align: center;
  transform: translateY(20px);
  transition: var(--transition-base);
}

.modal.is-open .modal__dialog {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  font-size: 1.1rem;
  color: var(--color-white);
  opacity: 0.7;
}

.modal__close:hover {
  opacity: 1;
}

.modal__logo {
  display: block;
  margin: 0 auto var(--space-md);
}

.modal__title {
  font-size: var(--fs-h3);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.modal__text {
  color: rgba(255, 255, 255, 0.8);
}

body.modal-open {
  overflow: hidden;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 575px) {
  .contact-form__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* =========================================================
   IMAGE GRID (ej. "Cada día es un placer de vivir")
   Grilla simple de imagenes en columnas iguales. Reutilizable
   para cualquier galeria de 2 a 3 fotos del mismo tamaño.
   ========================================================= */

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.image-grid img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-base);
}

/* Modificador para apilar las imagenes en una sola columna
   (ej. "Un entorno para disfrutar cada día") */
.image-grid--stacked {
  grid-template-columns: 1fr;
}

.image-grid--stacked img {
  height: 740px;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 767px) {
  .image-grid {
    grid-template-columns: 1fr;
  }

  .image-grid img {
    height: 320px;
  }

  .image-grid--stacked img {
    height: 420px;
  }
}

/* =========================================================
   MEDIA 360 (ej. "Explora cada espacio con una experiencia
   virtual 360°")
   Imagen unica con badge circular superpuesto. Reutilizable
   para cualquier foto que enlace a un recorrido virtual.
   ========================================================= */

.media-360 {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-base);
}

.media-360__image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.media-360__badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 72px;
  height: 72px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: var(--color-white);
  transition: var(--transition-base);
}

.media-360__badge:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.media-360__badge i {
  font-size: 1rem;
}

.media-360__badge span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 767px) {
  .media-360__image {
    height: 320px;
  }

  .media-360__badge {
    width: 58px;
    height: 58px;
  }

  .media-360__badge i {
    font-size: 0.85rem;
  }

  .media-360__badge span {
    font-size: 0.6rem;
  }
}

/* =========================================================
   VIDEO TEASER (ej. "Conoce a Floria, donde la armonía
   florece")
   Placeholder de video con boton de play centrado. Cuando
   se tenga el video definitivo, el click puede abrir un
   modal o insertar un iframe, igual que en media-360.
   ========================================================= */

.video-teaser {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  background-color: var(--color-dark);
  border-radius: var(--radius-base);
}

.video-teaser__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  color: var(--color-primary);
  font-size: 1.1rem;
  transition: var(--transition-base);
}

.video-teaser:hover .video-teaser__play {
  background-color: rgba(245, 180, 0, 0.15);
  transform: scale(1.05);
}

/* -------------------- Responsive -------------------- */
@media (max-width: 767px) {
  .video-teaser__play {
    width: 54px;
    height: 54px;
    font-size: 0.95rem;
  }
}

/* =========================================================
   FLOORPLAN SELECTOR (ej. "Espacios que se adaptan a ti")
   Selector de plantas: imagen del plano a la izquierda,
   ficha de datos (select, caracteristicas, superficies) a
   la derecha. Reutilizable para cada tipologia del proyecto.
   ========================================================= */

.floorplan {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.floorplan__image {
  width: 100%;
  display: block;
  margin-top: var(--space-md);
  border-radius: var(--radius-base);
}

.floorplan__select {
  position: relative;
  margin-bottom: var(--space-lg);
}

.floorplan__select select {
  width: 100%;
  appearance: none;
  background-color: #2c2c2c;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-base);
  color: var(--color-white);
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-family: var(--font-base);
  font-size: 0.9rem;
}

.floorplan__select::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  pointer-events: none;
}

.floorplan__code {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.floorplan__features {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
}

.floorplan__features li {
  color: var(--color-white);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 0.35rem 0;
}

.floorplan__stats {
  display: flex;
  gap: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
}

.floorplan__stat-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.3rem;
}

.floorplan__stat-value {
  display: block;
  font-weight: 700;
  color: var(--color-white);
  font-size: 1rem;
}

.floorplan__total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-sm);
}

.floorplan__total-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-white);
}

/* -------------------- Responsive -------------------- */
@media (max-width: 991px) {
  .floorplan {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .floorplan__stats {
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .floorplan__total {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
}

/* =========================================================
   REVEAL ON SCROLL
   Animacion de entrada generica para secciones/tarjetas.
   El elemento parte oculto y se activa al añadir la clase
   "is-visible" (ver main.js, IntersectionObserver). Respeta
   prefers-reduced-motion para usuarios que lo soliciten.
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--fade {
  transform: none;
}

.reveal--left {
  transform: translateX(-40px);
}

.reveal--left.is-visible {
  transform: translateX(0);
}

.reveal--right {
  transform: translateX(40px);
}

.reveal--right.is-visible {
  transform: translateX(0);
}

.reveal--scale {
  transform: scale(0.92);
}

.reveal--scale.is-visible {
  transform: scale(1);
}

/* Escalonado para grillas/listados de tarjetas */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal--left,
  .reveal--right,
  .reveal--scale,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
