:root {
  --bg: #FFF0F0;
  --surface: #FFFFFF;
  --text: #5C2A2A;
  --muted: #B38686;
  --primary: #FF4D4D;
  --secondary: #FF8080;
  --accent: #FFB3B3;
  --border: rgba(255, 77, 77, 0.1);
  --forest: #1B3A2D;
  --espresso: #2C1810;
  --parchment: #F5EDE0;
  --wood: #4A3228;
  --ink: #1A1410;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  background-image:
    linear-gradient(160deg, var(--bg) 0%, var(--parchment) 45%, var(--bg) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FF4D4D' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

body > main {
  flex: 1 0 auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(44, 24, 16, 0.015) 2px,
    rgba(44, 24, 16, 0.015) 4px
  );
  z-index: 0;
}

.disclosure-banner {
  background: var(--espresso);
  width: 100%;
  position: relative;
  z-index: 100;
}

.disclosure-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  font-size: 11px;
  color: var(--parchment);
  line-height: 1.4;
}

.disclosure-icon {
  flex-shrink: 0;
  font-size: 14px;
}

.site-header {
  background: var(--forest);
  position: static;
  z-index: 90;
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-link img {
  height: 40px;
  width: auto;
}

.nav-desktop {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-desktop a {
  color: var(--parchment);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}

.nav-desktop a:hover {
  background: rgba(0, 0, 0, 0.35);
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.burger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--parchment);
  transition: transform 0.3s, opacity 0.3s;
}

.burger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn.active span:nth-child(2) {
  opacity: 0;
}

.burger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--espresso);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 80px 0 24px;
  overflow-y: auto;
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer ul {
  list-style: none;
}

.nav-drawer a {
  display: block;
  color: var(--parchment);
  text-decoration: none;
  padding: 14px 24px;
  font-size: 15px;
  border-left: 3px solid var(--accent);
  margin-bottom: 2px;
  transition: background 0.2s;
}

.nav-drawer a:hover {
  background: rgba(255, 179, 179, 0.1);
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
}

.drawer-overlay.visible {
  display: block;
}

.site-footer {
  background: var(--forest);
  color: var(--parchment);
  padding: 48px 24px 32px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--wood), var(--accent), var(--wood));
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--accent);
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-links a {
  color: var(--parchment);
  text-decoration: none;
  font-size: 13px;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 179, 179, 0.15);
  border-bottom: 1px solid rgba(255, 179, 179, 0.15);
  margin-bottom: 24px;
}

.footer-badges a {
  display: flex;
  align-items: center;
}

.footer-badges img {
  height: 40px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.footer-badges a:hover img {
  opacity: 1;
}

.footer-legal {
  font-size: 11px;
  color: rgba(245, 237, 224, 0.65);
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer-copy {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
}

.age-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 20, 16, 0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.age-overlay.hidden {
  display: none;
}

.age-modal {
  background: var(--surface);
  border: 2px solid var(--wood);
  border-radius: 4px;
  padding: 40px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  position: relative;
}

.age-modal::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--border);
  border-radius: 2px;
  pointer-events: none;
}

.age-modal h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--espresso);
  margin-bottom: 12px;
}

.age-modal p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.age-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.age-buttons button {
  padding: 12px 28px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.age-confirm {
  background: var(--forest);
  color: var(--parchment);
}

.age-decline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border) !important;
}

.age-buttons button:hover {
  opacity: 0.85;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--espresso);
  color: var(--parchment);
  padding: 16px 24px;
  z-index: 9999;
  border-top: 2px solid var(--accent);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.cookie-inner p {
  font-size: 13px;
  flex: 1;
  min-width: 200px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-actions button {
  padding: 8px 18px;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
}

.cookie-accept {
  background: var(--primary);
  color: white;
}

.cookie-reject {
  background: transparent;
  color: var(--parchment);
  border: 1px solid rgba(255, 179, 179, 0.3) !important;
}

.page-hero-compact {
  background: var(--espresso);
  height: 120px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.page-hero-compact .page-hero-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--parchment);
  white-space: nowrap;
  padding: 0 24px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  line-height: 1;
  letter-spacing: -0.02em;
}

.page-hero-sub {
  background: var(--forest);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--accent);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  position: relative;
  z-index: 1;
}

.legal-content h1 {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--espresso);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--wood);
}

.legal-content h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--forest);
  margin: 28px 0 12px;
}

.legal-content h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin: 20px 0 8px;
}

.legal-content p {
  margin-bottom: 14px;
  font-size: 15px;
}

.legal-content ul {
  margin: 12px 0 16px 24px;
}

.legal-content li {
  margin-bottom: 6px;
  font-size: 15px;
}

.contact-form {
  margin-top: 32px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 15px;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  margin-bottom: 16px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .field-error {
  color: var(--primary);
  font-size: 12px;
  margin-top: -12px;
  margin-bottom: 12px;
  display: none;
}

.contact-form .field-error.visible {
  display: block;
}

.contact-form button[type="submit"] {
  background: var(--forest);
  color: var(--parchment);
  border: none;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.contact-form button[type="submit"]:hover {
  opacity: 0.9;
}

.form-success {
  display: none;
  padding: 32px;
  background: var(--surface);
  border: 2px solid var(--forest);
  border-radius: 4px;
  text-align: center;
  margin-top: 32px;
}

.form-success.visible {
  display: block;
}

.form-success h3 {
  font-family: var(--serif);
  color: var(--forest);
  margin-bottom: 8px;
}

.not-found-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  position: relative;
  z-index: 1;
}

.not-found-page h1 {
  font-family: var(--serif);
  font-size: 4rem;
  color: var(--espresso);
  margin-bottom: 16px;
}

.not-found-page p {
  color: var(--muted);
  margin-bottom: 24px;
}

.not-found-page a {
  display: inline-block;
  background: var(--forest);
  color: var(--parchment);
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .nav-drawer {
    display: block;
  }

  .page-hero-compact {
    height: 80px;
  }
}

@media (max-width: 375px) {
  body {
    overflow-x: hidden;
  }

  .info-inner,
  .info-visual,
  .slots-showcase,
  .mobile-layout,
  .subpage-sidebar,
  .subpage-body,
  .subpage-image-band,
  .bonos-rail,
  .bonos-split,
  .movil-header-block,
  .movil-layout,
  .offers-section,
  .offers-inner {
    max-width: 100%;
    overflow-x: hidden;
  }

  img[src*="images/decorative/"] {
    max-width: 100%;
    height: auto;
  }

  .subpage-image-band {
    max-width: calc(100vw - 48px);
    margin-left: auto;
    margin-right: auto;
  }

  .info-6 .info-visual img {
    max-width: 100%;
  }
}
