/* ===== Hero Gallery ===== */
#hero-gallery { position: relative; overflow: hidden; border-radius: 1.5rem; }
#hero-gallery .slides {
  display: flex; width: 100%; height: 520px;
  transition: transform .5s ease-out;
}
#hero-gallery .slide { flex: 0 0 100%; width: 100%; height: 520px; object-fit: cover; }

/* Controles */
#hero-gallery .ctrl {
  position: absolute; top: 50%; transform: translateY(-50%);
  height: 36px; width: 36px; display: grid; place-items: center;
  border-radius: 999px; backdrop-filter: blur(6px);
  background: rgba(255,255,255,.8); border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 6px 20px rgba(0,0,0,.08); cursor: pointer;
}
#hero-gallery .ctrl:hover { background: #fff; }
#hero-gallery .ctrl .ico { height: 20px; width: 20px; }
#hero-gallery .prev { left: 12px; }
#hero-gallery .next { right: 12px; }

/* Dots */
#hero-gallery .dots {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: flex; gap: 8px;
}
#hero-gallery .dot {
  height: 10px; width: 10px; border-radius: 999px;
  background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.08);
  transition: width .2s ease, background .2s ease;
}
#hero-gallery .dot[data-active="true"] { width: 24px; background: #fff; }

/* Mobile: altura menor */
@media (max-width: 768px) {
  #hero-gallery .slides, #hero-gallery .slide { height: 360px; }
}

/* Respeta usuarios con reduce motion */
@media (prefers-reduced-motion: reduce) {
  #hero-gallery .slides { transition: none; }
}
[data-prop-prev],
[data-prop-next] {
  z-index: 30;
  pointer-events: auto;
}

#prop-carousel {
  position: relative;
  z-index: 1;
}
/* --- Realce sutil del elemento centrado (carrusel de propiedades) --- */
#prop-carousel article {
  transition: transform .4s ease, box-shadow .4s ease;
}
#prop-carousel article:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  z-index: 2;
}
@media (prefers-color-scheme: dark) {
  #prop-carousel article:hover {
    box-shadow: 0 12px 30px rgba(255,255,255,.05);
  }
}

/* Suaviza la sombra del contenedor general para mantener consistencia */
#prop-carousel {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
/* =========================================
   Responsive Refinement Pack (Mobile & Tablet)
   Pegarlo al final de /css/main.css
   ========================================= */

/* 1) Evitar desbordes laterales en móviles */
html, body { overflow-x: hidden; }

/* 2) Tipografía fluida para títulos con la clase .display */
.display {
  /* 28px → 42px aprox según viewport */
  font-size: clamp(1.75rem, 2.2vw + 1rem, 2.625rem);
  line-height: 1.2;
}

/* 3) Espaciado vertical más compacto en móvil */
@media (max-width: 768px) {
  :where(section) { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}
/* Más compacto en móvil chico */
@media (max-width: 480px) {
  :where(section) { padding-top: 2rem; padding-bottom: 2rem; }
}

/* 4) Hero gallery: alturas optimizadas por breakpoint */
@media (max-width: 480px) {
  #hero-gallery .slides, #hero-gallery .slide { height: 300px !important; }
}
@media (max-width: 360px) {
  #hero-gallery .slides, #hero-gallery .slide { height: 260px !important; }
}
/* iPhone “notch” landscape y alturas bajas */
@media (orientation: landscape) and (max-height: 420px) {
  #hero-gallery .slides, #hero-gallery .slide { height: 240px !important; }
}

/* 5) Carrusel de propiedades: ajustar imagen y padding en móvil */
@media (max-width: 640px) {
  /* altura de las imágenes de card más baja para mayor ritmo */
  #prop-carousel .object-cover { height: 200px !important; }
  /* reducir padding interno de las cards */
  #prop-carousel article .p-5 { padding: 1rem !important; }
  /* espaciar menos entre cards */
  #prop-carousel { gap: 1rem !important; }
}

/* 6) Dots y flechas: área de toque mayor (mejor usabilidad) */
.prop-dot,
#t-dots > button {
  min-width: 24px; min-height: 24px;        /* área táctil */
  display: inline-flex; align-items: center; justify-content: center;
}
.prop-dot::after,
#t-dots > button::after {
  content: ""; display: block; width: 8px; height: 8px; border-radius: 9999px;
  background: currentColor; opacity: .4;
  transition: width .25s ease, opacity .25s ease, background .25s ease;
}
.prop-dot[data-active="true"]::after,
#t-dots > button[data-a="true"]::after { width: 24px; opacity: 1; }

/* Mantener color consistente con tema */
.prop-dot, #t-dots > button { color: var(--ink, #0b1220); }
@media (prefers-color-scheme: dark) {
  .prop-dot, #t-dots > button { color: #fff; }
}

/* 7) Botones/CTA: tamaño más cómodo en móvil */
@media (max-width: 480px) {
  .btn { padding: 0.75rem 1rem !important; border-radius: 9999px; }
}

/* 8) Testimonios: altura estable + tipografía más legible en móvil */
#t-slider .t-slide { min-height: 220px; }
#t-slider .t-slide blockquote { font-size: 1.05rem; line-height: 1.7; }

@media (max-width: 768px) {
  #t-slider .t-slide { min-height: 260px; }
  #t-slider .t-slide blockquote { font-size: 1rem; line-height: 1.65; }
}

/* 9) Respeto a reduce motion en ambos sliders */
@media (prefers-reduced-motion: reduce) {
  #hero-gallery .slides,
  #t-slider .t-track { transition: none !important; }
}

/* 10) Toque premium en hover (solo desktop) */
@media (hover: hover) and (pointer: fine) {
  #prop-carousel article {
    transition: transform .4s ease, box-shadow .4s ease;
  }
  #prop-carousel article:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    z-index: 2;
  }
  @media (prefers-color-scheme: dark) {
    #prop-carousel article:hover { box-shadow: 0 12px 30px rgba(255,255,255,.05); }
  }
}
/* Hover suave con glow */
.group:hover {
  box-shadow: 0 0 10px rgba(182,140,90,0.35);
  transform: translateY(-2px);
  transition: all .3s ease;
}

/* ===== Social (formal) ===== */
.social {
  height: 52px;
  width: 52px;                         /* área táctil + formal */
  display: grid;
  place-items: center;
  border-radius: 9999px;
  border: 1.2px solid var(--elegant, #e7dfd3);
  color: var(--ink, #0f172a);
  background: transparent;
  transition:
    border-color .2s ease,
    background-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease,
    color .2s ease;
}

.social svg {
  width: 22px;
  height: 22px;
  opacity: 1;                          /* siempre visibles */
  transition: transform .2s ease, opacity .2s ease;
}

/* Hover sutil — editorial */
.social:hover {
  background: rgba(182,140,90,.06);    /* champ muy tenue */
  border-color: var(--champ, #b68c5a); /* borde toma el acento */
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}

.social:hover svg {
  transform: scale(1.08);              /* realce elegante */
}

/* Focus accesible pero discreto */
.social:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3px rgba(182,140,90,.45);
}

/* Variantes */
.social--gold { color: var(--ink, #0f172a); }  /* icono oscuro sobre fondo claro */
.social--gold:hover { border-color: var(--champ, #b68c5a); }

.social--ink:hover { background: rgba(15,23,42,.06); }

/* Grupo/spacing */
.social-group { display: flex; gap: 14px; }

/* Dark mode (si aplica sección oscura/header-dark) */
@media (prefers-color-scheme: dark) {
  .social {
    border-color: rgba(255,255,255,.15);
    color: #1b1b1b; /* 👈 más elegante y visible que negro puro */
    background-color: rgba(255,255,255,.06);
  }
  .social:hover {
    background: rgba(255,255,255,.12);
    border-color: var(--champ, #b68c5a);
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
  }
  .social svg {
    opacity: .95;
  }
}
/* ==========================
   Testimonios — Footer & Dots (versión final)
   ========================== */

/* Respira debajo del texto para que los dots no lo toquen */
#t-slider .t-slide { padding-bottom: 2.25rem; }

/* Contenedor de dots */
#t-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 6px 0 10px;
}

/* ---- FIX: anula pseudo-elementos heredados que hacían el “pill” negro ---- */
#t-dots > button::before,
#t-dots > button::after {
  content: none !important;
  display: none !important;
}

/* Botón/dot base: minimal 8px con borde sutil */
#t-dots > button {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  width: 8px !important;
  height: 8px !important;
  border-radius: 9999px;
  background: rgba(15,23,42,.22);           /* ink suave */
  border: 1px solid rgba(15,23,42,.18);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}

/* Activo: dorado champ + leve escala */
#t-dots > button[data-a="true"] {
  background: var(--champ, #b68c5a) !important;
  border-color: var(--champ, #b68c5a) !important;
  transform: scale(1.2);
}

/* Accesibilidad */
#t-dots > button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(182,140,90,.45);
}

/* Modo oscuro (si aplica) */
@media (prefers-color-scheme: dark) {
  #t-dots > button {
    background: rgba(255,255,255,.35);
    border-color: rgba(255,255,255,.32);
  }
  #t-dots > button[data-a="true"] {
    background: var(--champ, #b68c5a) !important;
    border-color: var(--champ, #b68c5a) !important;
  }
}

/* Flechas: finas, con sombra suave y un poco fuera del texto */
[data-t-prev], [data-t-next] {
  top: calc(50% - 6px);
  transform: translateY(-50%);
  height: 34px; width: 34px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
[data-t-prev] { left: -10px; }
[data-t-next] { right: -10px; }
[data-t-prev] svg, [data-t-next] svg { width: 18px; height: 18px; }

/* Respeta reduce motion */
@media (prefers-reduced-motion: reduce) {
  #t-dots > button { transition: none; }
}

/* Si el contenedor no permite valores negativos, usa 6px en lugar de -10px */


/* ===== Ajustes finos testimonios ===== */

/* 1) Anillo de enfoque de las flechas (reemplaza el azul del navegador) */
[data-t-prev],
[data-t-next] { outline: none; }

[data-t-prev]:focus-visible,
[data-t-next]:focus-visible {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3px rgba(182,140,90,.55); /* champ */
}

/* 2) Dots inactivos con más contraste (se vean todos) */
#t-dots > button{
  background: rgba(15,23,42,.34);       /* + contraste */
  border-color: rgba(15,23,42,.28);
}

#t-dots > button:hover {
  background: rgba(15,23,42,.48);
  border-color: rgba(15,23,42,.40);
}

/* Activo en champ (ya lo tenías, lo dejamos por si algún CSS lo pisa) */
#t-dots > button[data-a="true"]{
  background: var(--champ, #b68c5a) !important;
  border-color: var(--champ, #b68c5a) !important;
  transform: scale(1.2);
}
/* ==========================
   Footer — Logo SVG
   ========================== */
footer img,
.footer-logo svg {
  display: block;
  height: 56px;         /* <-- ajusta aquí */
  max-height: none;     /* permite crecer más allá del límite anterior */
  opacity: 0.95;
  transition: opacity .2s ease;
}


footer img:hover,
.footer-logo svg:hover {
  opacity: 1;
}
@media (max-width: 768px) {
  footer img,
  .footer-logo svg {
    height: 44px;
  }
}
footer .text-slate-700 {
  letter-spacing: 0.3px;
  font-weight: 500;
}
footer {
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.2px;
}

footer img {
  height: 56px;
  transition: opacity .25s ease, transform .25s ease;
}

footer img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

footer a {
  color: inherit;
  text-decoration-color: rgba(182, 140, 90, 0.4);
}

footer a:hover {
  text-decoration-color: var(--champ, #b68c5a);
}

@media (max-width: 768px) {
  footer {
    text-align: center;
  }
  footer img {
    margin: 0 auto;
  }
}
footer img {
  height: 56px;
  transition: opacity .25s ease, transform .25s ease;
}

footer img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

footer div.text-base {
  letter-spacing: 0.4px;
  color: var(--ink, #0f172a);
}
.footer-logo {
  display: block;
  height: 56px;
  margin-bottom: 0.25rem; /* 👈 reduce el espacio entre logo y texto */
  transition: opacity .25s ease, transform .25s ease;
}

.footer-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-role {
  font-size: 1rem; /* texto elegante y legible */
  color: var(--ink, #0f172a);
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-top: -0.25rem; /* 👈 ajusta la distancia exacta bajo el logo */
  text-align: center;
}

@media (max-width: 768px) {
  .footer-role {
    font-size: 0.95rem;
    margin-top: -0.15rem;
  }
}
.footer-logo {
  display: block;
  height: 64px; /* h-16 */
  margin: 0 auto; /* centra horizontalmente */
  padding: 0;
  line-height: 1;
  vertical-align: middle;
  transition: opacity .25s ease, transform .25s ease;
}

.footer-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Texto debajo del logo */
.footer-role {
  font-size: 1rem;
  color: var(--ink, #0f172a);
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-top: -0.4rem; /* 👈 elimina ese salto visual */
  text-align: center;
}
.footer-logo {
  display: block;
  height: 64px; /* tamaño del logo */
  margin: 0 auto;
  padding: 0;
  line-height: 1;
  vertical-align: middle;
  transition: opacity .25s ease, transform .25s ease;
}

.footer-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Texto debajo del logo */
.footer-role {
  margin-top: 0.5rem; /* 👈 da espacio más elegante debajo del logo */
  font-size: 1.1rem;
  color: var(--ink, #0f172a);
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.4px;
  font-family: 'Playfair Display', serif; /* 👈 fuente más formal y premium */
}

/* Responsive */
@media (max-width: 768px) {
  .footer-role {
    font-size: 1rem;
    margin-top: 0.4rem;
  }
}
.footer-logo {
  display: block;
  height: 64px; /* h-16 */
  margin: 0 auto;
  padding: 0;
  line-height: 1;
  vertical-align: middle;
  transition: opacity .25s ease, transform .25s ease;
}

.footer-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Texto debajo del logo, igual estilo que footer */
.footer-role {
  margin-top: 0.4rem;
  font-size: 0.95rem;                /* igual que WhatsApp */
  color: #334155;                    /* text-slate-600 */
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.2px;
  font-family: inherit;              /* 👈 usa la misma fuente global */
}

@media (max-width: 768px) {
  .footer-role {
    font-size: 0.9rem;
    margin-top: 0.35rem;
  }
}
/* Ajuste para Cloudflare Turnstile - evita desconfiguración del formulario */
.cf-turnstile {
  width: 100%;
}
.cf-turnstile iframe {
  width: 100% !important;
  max-width: 100% !important;
}

