:root {
  /* paleta tomada del sitio real (theme Porto) */
  --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 pt ===== */
[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;
}

/* ===== header ===== */
.site-header {
  border-bottom: 1px solid #eee;
  padding: 1.25rem 1.5rem;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  height: 48px;
  width: auto;
}

.site-header__kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-primary);
}

/* ===== hero ===== */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29, 33, 39, 0.55), rgba(29, 33, 39, 0.75));
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  max-width: 46rem;
}

.hero__kicker {
  color: var(--color-secondary);
  font-weight: 600;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.75rem;
}

/* ===== 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;
  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);
}

/* ===== placeholders de imagen ===== */
.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;
}

/* ===== secciones genéricas ===== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section h2 {
  color: var(--color-heading);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.section p {
  margin-bottom: 1rem;
}

.section p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: 0.4rem;
}

/* ===== secciones con texto + imagen lado a lado ===== */
.section--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.section--split.section--reverse .section__media {
  order: -1;
}

.section--alt {
  background: var(--color-cream);
  max-width: 100%;
}

.section--alt .section--split,
.section--alt.section--split {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__media {
  min-height: 340px;
}

/* ===== sección apilada (lifestyle) ===== */
.section--stacked {
  max-width: 100%;
  padding: 0;
}

.section__media--wide {
  min-height: 380px;
}

.section--stacked .section__text {
  max-width: 46rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

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

.section__text--centered .eyebrow {
  display: inline-block;
}

/* ===== CTA ===== */
.section--cta {
  max-width: 100%;
  text-align: center;
  padding: 5rem 1.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.section--cta h2 {
  color: var(--color-white);
}

.section--cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

/* ===== footer ===== */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 3rem 1.5rem;
  font-size: 0.85rem;
}

.footer__logo {
  height: 40px;
  margin: 0 auto 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* ===== selector de idioma flotante ===== */
.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);
}

/* ===== responsive ===== */
@media (max-width: 800px) {
  .section--split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section--split.section--reverse .section__media {
    order: 0;
  }

  .site-header__kicker {
    display: none;
  }
}
