/* PatriotaES — hoja de estilos compartida (landing + páginas legales) */

:root {
  --spanish-red: #C1121F;
  --spanish-red-dark: #8E0D17;
  --gold: #FFC400;
  --gold-soft: #FFE9A6;
  --cream: #FFF8EC;
  --cream-deep: #F5EAD6;
  --surface: #FFFFFF;
  --charcoal: #23201D;
  --charcoal-soft: #5E5852;
  --outline: #E6DCC8;
  --success: #1E7F45;
  --success-soft: #DDF3E4;
  --neutral-blue: #2B62A8;
  --neutral-blue-soft: #DCE8F7;
  --europe-blue: #1F4E9C;
  --danger: #B3261E;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--spanish-red-dark);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 248, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--outline);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--charcoal);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.brand-name {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  color: var(--charcoal-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.main-nav a:hover {
  color: var(--spanish-red-dark);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--spanish-red);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 800 !important;
  font-size: 13px !important;
}

.nav-cta:hover {
  background: var(--spanish-red-dark);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  z-index: 0;
}

.hero::before {
  width: 340px;
  height: 340px;
  background: var(--gold-soft);
  top: -140px;
  right: -80px;
}

.hero::after {
  width: 260px;
  height: 260px;
  background: var(--cream-deep);
  bottom: -120px;
  left: -80px;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-soft);
  color: var(--spanish-red-dark);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.6px;
  margin: 0 0 18px;
}

.hero h1 .accent {
  color: var(--spanish-red);
}

.hero p.lead {
  font-size: 17px;
  color: var(--charcoal-soft);
  max-width: 46ch;
  margin: 0 0 28px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--charcoal);
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--charcoal);
  cursor: default;
}

.store-badge .store-badge-small {
  font-size: 10px;
  opacity: 0.75;
  font-weight: 600;
}

.store-badge .store-badge-big {
  font-size: 14px;
  font-weight: 800;
}

.store-badge.alt {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--outline);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mock {
  width: 240px;
  border-radius: 34px;
  background: var(--surface);
  border: 10px solid var(--charcoal);
  box-shadow: 0 24px 48px rgba(35, 32, 29, 0.22);
  overflow: hidden;
}

.phone-mock .screen {
  background: linear-gradient(180deg, var(--spanish-red) 0%, var(--spanish-red) 34%, var(--surface) 34%);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 16px;
  text-align: center;
}

.phone-mock .screen .flag-emoji {
  font-size: 44px;
  margin-top: 18px;
}

.phone-mock .screen .result-title {
  color: #fff;
  font-weight: 900;
  font-size: 17px;
  margin-top: 10px;
}

.phone-mock .scan-card {
  margin-top: 28px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--outline);
  padding: 14px;
  width: 100%;
  text-align: left;
}

.phone-mock .scan-card .badge {
  display: inline-block;
  background: var(--success-soft);
  color: var(--success);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.phone-mock .scan-card .bar-mono {
  font-family: "SFMono-Regular", Menlo, "Roboto Mono", monospace;
  letter-spacing: 1.2px;
  font-size: 13px;
  color: var(--charcoal-soft);
}

/* Sections */

section {
  padding: 56px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head .kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--spanish-red-dark);
  margin-bottom: 8px;
  display: block;
}

.section-head h2 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.4px;
  margin: 0 0 10px;
}

.section-head p {
  color: var(--charcoal-soft);
  margin: 0;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 18px;
  padding: 24px;
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--spanish-red);
  color: #fff;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 15px;
}

.step-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 800;
}

.step-card p {
  margin: 0;
  color: var(--charcoal-soft);
  font-size: 14px;
}

.note-callout {
  margin-top: 28px;
  background: var(--cream-deep);
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--charcoal-soft);
}

.note-callout strong {
  color: var(--charcoal);
}

/* Results grid */

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.result-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.result-card h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
}

.result-card p {
  margin: 0;
  font-size: 13px;
  color: var(--charcoal-soft);
}

/* Trust / privacy */

.trust {
  background: var(--surface);
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-item {
  text-align: center;
  padding: 8px;
}

.trust-item .trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--neutral-blue-soft);
  color: var(--neutral-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 20px;
}

.trust-item h3 {
  font-size: 15px;
  margin: 0 0 6px;
  font-weight: 800;
}

.trust-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--charcoal-soft);
}

/* Community */

.community {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.community-copy .kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--spanish-red-dark);
  margin-bottom: 8px;
  display: block;
}

.community-copy h2 {
  font-size: 26px;
  font-weight: 900;
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}

.community-copy p {
  color: var(--charcoal-soft);
  margin: 0 0 14px;
}

.community-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 16px 36px rgba(35, 32, 29, 0.08);
}

.community-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--charcoal-soft);
  font-size: 14px;
}

.community-card li {
  margin-bottom: 8px;
}

/* Final CTA */

.cta-final {
  text-align: center;
  background: linear-gradient(135deg, var(--spanish-red) 0%, var(--spanish-red-dark) 100%);
  color: #fff;
  border-radius: 24px;
  padding: 48px 32px;
  margin: 0 20px;
}

.cta-final h2 {
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 10px;
}

.cta-final p {
  opacity: 0.92;
  max-width: 46ch;
  margin: 0 auto 24px;
}

.cta-final .hero-ctas {
  justify-content: center;
}

.cta-final .store-badge {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Footer */

footer.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--outline);
  padding: 40px 0 28px;
  font-size: 13.5px;
  color: var(--charcoal-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--charcoal);
  font-weight: 900;
  font-size: 15px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--charcoal);
  margin: 0 0 12px;
}

.footer-col a,
.footer-col button.link-like {
  display: block;
  color: var(--charcoal-soft);
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 13.5px;
}

.footer-col a:hover,
.footer-col button.link-like:hover {
  color: var(--spanish-red-dark);
}

button.link-like {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.footer-bottom {
  border-top: 1px solid var(--outline);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}

.footer-bottom a,
.footer-bottom .link-like {
  color: var(--charcoal-soft);
  text-decoration: underline;
}

.footer-bottom .link-like {
  display: inline;
}

.footer-bottom a:hover,
.footer-bottom .link-like:hover {
  color: var(--spanish-red-dark);
}

/* ---------------------------------------------------- */
/* Legal pages */
/* ---------------------------------------------------- */

.legal-hero {
  padding: 44px 0 8px;
}

.legal-hero .container {
  max-width: 780px;
}

.legal-hero h1 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
}

.legal-hero .updated {
  color: var(--charcoal-soft);
  font-size: 13.5px;
}

.legal-body {
  padding: 24px 0 64px;
}

.legal-body .container {
  max-width: 780px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 20px;
  padding: 8px 32px 24px;
}

.legal-card section {
  padding: 24px 0;
  border-bottom: 1px solid var(--outline);
}

.legal-card section:last-child {
  border-bottom: none;
}

.legal-card h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 10px;
}

.legal-card h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 18px 0 6px;
}

.legal-card p {
  margin: 0 0 12px;
  color: var(--charcoal-soft);
  font-size: 14.5px;
}

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

.legal-card ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--charcoal-soft);
  font-size: 14.5px;
}

.legal-card li {
  margin-bottom: 6px;
}

.legal-card strong {
  color: var(--charcoal);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 14px;
  font-size: 13.5px;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--outline);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--charcoal-soft);
}

.legal-table th {
  background: var(--cream-deep);
  color: var(--charcoal);
  font-weight: 800;
}

.company-box {
  background: var(--cream-deep);
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 10px 0 16px;
  font-size: 14px;
}

.company-box div {
  margin-bottom: 4px;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
}

.legal-toc a {
  color: var(--charcoal-soft);
  text-decoration: none;
  font-weight: 700;
}

.legal-toc a:hover {
  color: var(--spanish-red-dark);
}

/* ---------------------------------------------------- */
/* Cookie consent banner + panel */
/* ---------------------------------------------------- */

#cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 620px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(35, 32, 29, 0.22);
  padding: 20px 22px;
  z-index: 100;
  display: none;
}

#cookie-banner.is-visible {
  display: block;
}

#cookie-banner p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--charcoal-soft);
}

#cookie-banner p a {
  color: var(--spanish-red-dark);
  font-weight: 700;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

.cookie-btn.primary {
  background: var(--spanish-red);
  color: #fff;
}

.cookie-btn.primary:hover {
  background: var(--spanish-red-dark);
}

.cookie-btn.secondary {
  background: var(--cream-deep);
  color: var(--charcoal);
}

.cookie-btn.secondary:hover {
  background: var(--outline);
}

.cookie-btn.ghost {
  background: transparent;
  color: var(--charcoal-soft);
  text-decoration: underline;
}

#cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 32, 29, 0.45);
  z-index: 99;
  display: none;
}

#cookie-overlay.is-visible {
  display: block;
}

#cookie-panel {
  position: fixed;
  z-index: 101;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 480px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 20px;
  padding: 26px;
  display: none;
  box-shadow: 0 24px 60px rgba(35, 32, 29, 0.3);
}

#cookie-panel.is-visible {
  display: block;
}

#cookie-panel h2 {
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 6px;
}

#cookie-panel > p {
  font-size: 13.5px;
  color: var(--charcoal-soft);
  margin: 0 0 18px;
}

.cookie-category {
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.cookie-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.cookie-category-head strong {
  font-size: 14px;
}

.cookie-category p {
  margin: 0;
  font-size: 12.5px;
  color: var(--charcoal-soft);
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .track {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--outline);
  border-radius: 999px;
  transition: 0.15s;
}

.switch .track::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.15s;
}

.switch input:checked + .track {
  background: var(--spanish-red);
}

.switch input:checked + .track::before {
  transform: translateX(18px);
}

.switch input:disabled + .track {
  background: var(--success);
  opacity: 0.55;
  cursor: not-allowed;
}

#cookie-panel .cookie-actions {
  margin-top: 18px;
}

/* Responsive */

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .phone-mock {
    width: 200px;
  }

  .steps,
  .results-grid,
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .community {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .main-nav {
    gap: 12px;
  }

  .main-nav a:not(.nav-cta) {
    display: none;
  }

  .hero h1 {
    font-size: 32px;
  }

  .steps,
  .results-grid,
  .trust-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-final {
    margin: 0 12px;
    padding: 36px 20px;
  }

  .legal-card {
    padding: 4px 20px 16px;
  }
}
