/* ===================================================================
   base.css — tokens y utilidades compartidas por las 5 variantes.
   Paleta y tipografía tomadas del sitio real (theme Porto):
   ilhadofarolkitevillas.com
   =================================================================== */

:root {
  --color-primary: #bd966f;
  --color-primary-dark: #ab7d4f;
  --color-secondary: #d8a64f;
  --color-dark: #1d2127;
  --color-dark-2: #262a32;
  --color-cream: #f5efe5;
  --color-heading: #212529;
  --color-body: #555555;
  --color-body-light: #777777;
  --color-white: #ffffff;
  --max-width: 1140px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-white);
  color: var(--color-body);
  line-height: 1.7;
}

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

/* ===== idiomas: por defecto solo se muestra el idioma activo =====
   [data-lang] necesita !important porque convive con clases de layout
   (.btn, etc.) que también declaran "display" — sin !important, la
   cascada puede hacer que se muestren los 4 idiomas a la vez. */
[data-lang] {
  display: none !important;
}
[data-lang].is-active {
  display: block !important;
}
a[data-lang].is-active,
span[data-lang].is-active,
button[data-lang].is-active {
  display: inline-block !important;
}

/* ===== botones ===== */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 2px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn--light {
  background: var(--color-white);
  color: var(--color-heading);
}

.btn--light:hover {
  background: var(--color-cream);
}

/* ===== placeholder de imagen (fallback si a alguna variante le falta asset) ===== */
.placeholder-img {
  background: repeating-linear-gradient(45deg, #eee, #eee 20px, #f7f7f7 20px, #f7f7f7 40px);
  border: 1px dashed #ccc;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.placeholder-img::before {
  content: attr(data-placeholder-label);
  color: #999;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 1rem;
  max-width: 20rem;
}

/* ===== selector de idioma flotante (igual estilo al GTranslate del sitio real) ===== */
.lang-switcher {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 100;
  font-size: 0.9rem;
}

.lang-switcher__current {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-white);
  border: none;
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-weight: 600;
  color: var(--color-heading);
  font-family: inherit;
}

.lang-switcher__flag {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-switcher__chevron {
  color: #999;
  font-size: 0.75rem;
  transition: transform 0.15s ease;
}

.lang-switcher.is-open .lang-switcher__chevron {
  transform: rotate(180deg);
}

.lang-switcher__list {
  list-style: none;
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.5rem);
  background: var(--color-white);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  min-width: 160px;
  display: none;
}

.lang-switcher.is-open .lang-switcher__list {
  display: block;
}

.lang-switcher__list button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  border: none;
  background: none;
  padding: 0.65rem 1rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--color-body);
}

.lang-switcher__list button:hover {
  background: var(--color-cream);
}

/* ===== variante badge (solo para revisión interna, no para producción) ===== */
.variant-badge {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 100;
  background: var(--color-dark);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  opacity: 0.85;
}
