/* ===== PORTAVENTURAWORLD.SITE — UNIQUE STYLESHEET ===== */
:root {
  --red: #B91C1C;
  --red-dark: #7F1D1D;
  --red-light: #FEE2E2;
  --amber: #D97706;
  --amber-light: #FEF3C7;
  --dark: #111827;
  --mid: #374151;
  --gray: #6B7280;
  --sand: #FFFBF0;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --shadow: 0 4px 16px rgba(17,24,39,0.10);
  --shadow-lg: 0 12px 40px rgba(17,24,39,0.18);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.28s ease;
  --max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--dark);
  background: var(--sand);
}

img { display: block; width: 100%; height: auto; object-fit: cover; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 1.5rem; }
p { margin-bottom: 1.1rem; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  transform: translateY(44px);
  transition: transform 0.55s ease, visibility 0.55s ease;
  visibility: hidden;
}
.reveal.visible { transform: translateY(0); visibility: visible; }

/* ===== PROGRESS BAR ===== */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--amber));
  z-index: 2000;
  transition: width 0.1s linear;
}

/* ===== HEADER ===== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark);
  border-bottom: 3px solid var(--red);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}

.site-wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.site-wordmark .wm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--amber);
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--amber-light);
  letter-spacing: 0.5px;
}
.site-wordmark span { color: var(--amber); }

#main-nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.1rem; }
#main-nav a {
  color: #D1D5DB;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
#main-nav a:hover, #main-nav a.active {
  color: var(--amber);
  background: rgba(255,255,255,0.07);
  text-decoration: none;
}

#menu-toggle {
  display: none;
  background: none;
  border: 2px solid #4B5563;
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 78vh;
  min-height: 460px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(127,29,29,0.82) 0%, rgba(17,24,39,0.60) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
  width: 100%;
}
.hero-tag {
  display: inline-block;
  background: var(--amber);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 99px;
  margin-bottom: 1.2rem;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 700px;
}
.hero-content h1 span { color: var(--amber); }
.hero-content p {
  font-size: 1.15rem;
  color: #F3F4F6;
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); box-shadow: var(--shadow-lg); transform: translateY(-2px); text-decoration: none; }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); text-decoration: none; transform: translateY(-2px); }

/* Hero diagonal cut */
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: var(--sand);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1.5rem;
}
.stats-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 0.5rem;
}
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-num { font-size: 1.5rem; font-weight: 900; color: var(--red); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--gray); font-weight: 600; }

/* ===== SECTION LAYOUT ===== */
.section { padding: 5rem 1.5rem; }
.section-dark { background: var(--dark); color: var(--white); }
.section-red { background: var(--red); color: var(--white); }
.section-amber { background: var(--amber-light); }
.section-white { background: var(--white); }

.section-inner { max-width: var(--max); margin: 0 auto; }

.section-num {
  font-size: 5rem;
  font-weight: 900;
  color: var(--red-light);
  line-height: 1;
  margin-bottom: -1.5rem;
  display: block;
}
.section-dark .section-num { color: rgba(185,28,28,0.25); }
.section-red .section-num { color: rgba(255,255,255,0.15); }

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.section-dark h2 { color: var(--white); }
.section-red h2 { color: var(--white); }
.lead {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
  max-width: 680px;
}
.section-dark .lead { color: #9CA3AF; }
.section-red .lead { color: rgba(255,255,255,0.8); }

h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.6rem; }
h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }

/* ===== SPLIT LAYOUT ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-body { padding: 1.5rem; }
.card-img { height: 200px; }
.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.section-dark .card { background: #1F2937; color: var(--white); }
.section-dark .card h3 { color: var(--white); }
.section-dark .card p { color: #D1D5DB; }

/* ===== CSS ICONS ===== */
.icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.icon-red { background: var(--red-light); }
.icon-amber { background: var(--amber-light); }
.icon-dark { background: var(--dark); }

/* SVG icon sizes */
.icon-wrap svg { width: 28px; height: 28px; }

/* ===== FEATURE LIST ===== */
.feature-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.section-dark .feature-list li { border-color: rgba(255,255,255,0.08); }
.feature-list li:last-child { border-bottom: none; }
.feature-check {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-check::after {
  content: '';
  width: 6px; height: 10px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}

/* ===== PRICE CARDS ===== */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.price-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--border);
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.price-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.price-card.featured { border-top-color: var(--red); }
.price-card.premium { border-top-color: var(--amber); }
.price-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: 99px;
  margin-bottom: 0.8rem;
  background: var(--red-light);
  color: var(--red);
}
.price-badge.amber { background: var(--amber-light); color: #92400E; }
.price-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1;
  margin: 0.5rem 0;
}
.price-amount sup { font-size: 1.2rem; font-weight: 700; vertical-align: super; }
.price-desc { font-size: 0.85rem; color: var(--gray); margin-bottom: 1rem; }
.price-features { list-style: none; padding: 0; text-align: left; }
.price-features li {
  font-size: 0.88rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.price-features li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
  flex-shrink: 0;
}
.price-features li:last-child { border-bottom: none; }

/* ===== FORM ===== */
.form-section { max-width: 680px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 0.88rem; font-weight: 600; color: var(--mid); }
input, select, textarea {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(185,28,28,0.12);
}
textarea { resize: vertical; min-height: 130px; }
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 0.9rem 2.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  width: 100%;
  justify-content: center;
}
.btn-submit:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ===== NOTICE BOX ===== */
.notice-box {
  background: var(--amber-light);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

/* ===== ACCORDION ===== */
details {
  border-bottom: 1px solid var(--border);
}
details:first-of-type { border-top: 1px solid var(--border); }
summary {
  padding: 1.1rem 0.5rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--red);
  transition: transform var(--transition);
  flex-shrink: 0;
}
details[open] summary::after { transform: rotate(45deg); }
summary::-webkit-details-marker { display: none; }
details > *:not(summary) { padding: 0 0.5rem 1.2rem; color: var(--mid); }

/* ===== TABLE ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.info-table th {
  background: var(--dark);
  color: var(--white);
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.info-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.info-table tr:last-child td { border-bottom: none; }
.info-table tr:nth-child(even) td { background: #F9FAFB; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); margin: 1.5rem 0; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--dark) 100%);
  padding: 5rem 1.5rem 4rem;
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--sand);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.page-hero-inner { max-width: var(--max); margin: 0 auto; }
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.7rem;
}
.page-hero p { color: rgba(255,255,255,0.75); max-width: 560px; margin-bottom: 0; }
.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.2rem;
}
.breadcrumb a { color: var(--amber); }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== DIAGONAL DIVIDER ===== */
.diag-up {
  position: relative;
  padding-top: 5rem;
}
.diag-up::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 70px;
  clip-path: polygon(0 0, 100% 100%, 100% 0);
}
.diag-up.on-dark::before { background: var(--dark); }
.diag-up.on-sand::before { background: var(--sand); }
.diag-up.on-white::before { background: var(--white); }

/* ===== FOOTER ===== */
#site-footer {
  background: var(--dark);
  color: #D1D5DB;
  padding: 4rem 1.5rem 2rem;
  border-top: 4px solid var(--red);
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
#site-footer h4 { color: var(--white); font-size: 0.88rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1rem; }
#site-footer p { font-size: 0.88rem; margin-bottom: 0.7rem; color: #9CA3AF; }
.footer-nav { list-style: none; padding: 0; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a { color: #9CA3AF; font-size: 0.88rem; }
.footer-nav a:hover { color: var(--amber); text-decoration: none; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.7rem; font-size: 0.86rem; color: #9CA3AF; }
.footer-contact-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: #6B7280;
}
.footer-disclaimer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.2rem 0 0;
  font-size: 0.78rem;
  color: #6B7280;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 1rem;
  line-height: 1.6;
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark);
  color: #D1D5DB;
  padding: 1rem 1.5rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 3px solid var(--red);
}
#cookie-banner p { margin: 0; font-size: 0.88rem; flex: 1; min-width: 240px; }
#cookie-banner a { color: var(--amber); }
.cookie-btns { display: flex; gap: 0.7rem; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--red);
  color: white;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
}
.btn-cookie-reject {
  background: transparent;
  color: #9CA3AF;
  border: 1px solid #4B5563;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.88rem;
}

/* ===== LEGAL PAGES ===== */
.legal-content { max-width: 820px; }
.legal-content h2 { font-size: 1.4rem; margin: 2rem 0 0.5rem; padding-top: 0.5rem; border-top: 2px solid var(--border); }
.legal-content h2:first-of-type { border-top: none; margin-top: 0; }
.legal-content ul { margin-bottom: 1rem; }
.legal-content li { margin-bottom: 0.4rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split.reverse { direction: ltr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  #main-nav { display: none; }
  #main-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0.5rem 0 1rem;
    gap: 0;
  }
  #main-nav.open a { padding: 0.7rem 0.5rem; width: 100%; }
  #menu-toggle { display: flex; align-items: center; justify-content: center; }
  .header-inner { grid-template-columns: auto 1fr auto; flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.9rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .price-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}
