/* ── Variables ──────────────────────────────────────── */
:root {
  /* Brand MoneyToTravel */
  --color-primary: #009877;
  --color-primary-dark: #005f3f;
  --color-hero-bg: #1b3a28;
  --color-accent: #fabf35;

  /* Neutrales */
  --color-dark: #212427;
  --color-body: #52535a;
  --color-border: #ececec;

  /* Fondos */
  --color-bg-page: #f0f7f4;
  --color-bg-card: #ebf9ff;
  --color-bg-icon: #93e1ff;
  --color-white: #ffffff;

  /* Tipografía */
  --font-family: "Open Sans", sans-serif;

  /* Radios */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.07);
  --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.12);

  /* Layout */
  --max-width: clamp(1200px, 83.33vw, 1600px);
  --gutter-desktop: clamp(80px, 8.33vw, 200px);
  --gutter-mobile: 20px;

  --transition: 0.25s ease;
}

@media (min-width: 900px) {
  :root {
    --gutter-mobile: var(--gutter-desktop);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-dark);
  background: var(--color-white);
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

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

strong {
  font-weight: 700;
}

@media (min-width: 900px) {
  body {
    padding-bottom: 96px;
  }
}

/* ── Utilities ──────────────────────────────────────── */
.text-underline {
  text-decoration: underline;
}

.text-bold {
  font-weight: 700;
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition:
    background var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  text-decoration: none;
}

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

.btn--cta:hover {
  background: #f5b420;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(250, 191, 53, 0.4);
}

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

.btn--outline:hover {
  background: var(--color-bg-card);
}

/* ── Scrollable container ───────────────────────────── */
.scrollable-container {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.scrollable-container::-webkit-scrollbar {
  display: none;
}

.scrollable-container > * {
  scroll-snap-align: start;
}

/* ── Scroll controls ────────────────────────────────── */
.scroll-controls {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.scroll-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);

  background: var(--color-white);
  color: var(--color-primary-dark);
  cursor: pointer;
  transition: background var(--transition);
}

.scroll-btn:hover {
  background: var(--color-bg-card);
}

/* ── Cookies banner ─────────────────────────────────── */
.cookies-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-white);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  padding: 1.25rem var(--gutter-mobile);
}

.cookies-banner.hidden {
  display: none;
}

.cookies-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookies-banner__logo-container img {
  height: 28px;
  width: auto;
}

.cookies-text__list {
  list-style: disc;
  padding-left: 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.cookies-text__body {
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.text-lg {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
}

.cookies-banner__heading-brand {
  font-weight: 700;
}

.cookies-buttons__container {
  width: 100%;
}

.cookies-buttons__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cookies-buttons__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cookies-buttons__actions button {
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--color-primary-dark);
  background: var(--color-primary-dark);
  color: var(--color-white);
  font-family: var(--font-family);
}

.cookies-buttons__actions button:first-child {
  background: transparent;
  color: var(--color-primary-dark);
}

.cookies-buttons__configure {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-decoration: underline;
  cursor: pointer;
}

/* ── Modal ──────────────────────────────────────────── */
.modal-open {
  overflow: hidden;
}

.cta-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

.cta-modal[hidden] {
  display: none;
}

.cta-modal__dialog {
  background: var(--color-white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 560px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

@media (min-width: 600px) {
  .cta-modal {
    align-items: center;
  }

  .cta-modal__dialog {
    border-radius: var(--radius-xl);
  }
}

.cta-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  color: var(--color-dark);
  transition: background var(--transition);
}

.cta-modal__close:hover {
  background: var(--color-bg-page);
}

.cta-modal__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
  padding-right: 2rem;
}

.cta-modal__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cta-modal__label {
  font-size: 0.875rem;
  color: var(--color-body);
  line-height: 1.4;
}

.cta-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
