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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Literata', Georgia, serif;
  background-color: #F9F4EE;
  color: #4A3728;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Variables */
:root {
  --cream: #F9F4EE;
  --brown: #4A3728;
  --sepia: #D4A373;
  --rose: #C9967A;
  --rose-light: #EDD9C8;
  --brown-mid: #7D5A47;
  --brown-light: #A67B5B;
  --cream-dark: #EDE4D6;
  --cream-darker: #E2D5C3;
  --ink: #2E1F12;
  --shadow-soft: rgba(74, 55, 40, 0.12);
  --shadow-med: rgba(74, 55, 40, 0.20);
  --transition: all 0.28s cubic-bezier(0.25, 0.1, 0.2, 1);
}

/* Paper texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.watercolor-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 48px;
  background: rgba(249, 244, 238, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 0.5px solid rgba(212, 163, 115, 0.25);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 45px;
  width: auto;
  border-radius: 4px;
}

.logo-text {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: var(--brown);
  text-transform: lowercase;
}

.logo-text em {
  font-style: italic;
  font-weight: 400;
  color: var(--sepia);
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Literata', serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-back:hover {
  color: var(--brown);
}

.nav-back svg {
  transition: transform 0.2s;
}

.nav-back:hover svg {
  transform: translateX(-3px);
}

/* Hero */
.policy-hero {
  padding-top: 68px;
  background: var(--cream-darker);
  border-bottom: 0.5px solid rgba(212, 163, 115, 0.3);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.policy-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 48px 72px;
  text-align: center;
  position: relative;
  animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.policy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-bottom: 24px;
}

.policy-eyebrow::before,
.policy-eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 0.5px;
  background: var(--sepia);
}

.policy-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--brown);
  margin-bottom: 20px;
}

.policy-hero h1 em {
  font-style: italic;
  color: var(--rose);
}

.policy-hero p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--brown-mid);
  max-width: 560px;
  margin: 0 auto 32px;
  font-style: italic;
}

.policy-date {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.policy-date::before,
.policy-date::after {
  content: '';
  display: block;
  width: 20px;
  height: 0.5px;
  background: var(--brown-light);
  opacity: 0.5;
}

.hero-ornament {
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  align-items: flex-end;
}

.hero-ornament span {
  display: block;
  width: 1px;
  background: rgba(212, 163, 115, 0.4);
}

.hero-ornament span:nth-child(1),
.hero-ornament span:nth-child(5) {
  height: 20px;
}

.hero-ornament span:nth-child(2),
.hero-ornament span:nth-child(4) {
  height: 30px;
}

.hero-ornament span:nth-child(3) {
  height: 40px;
}

/* Índice */
.policy-index {
  background: var(--cream-dark);
  border-bottom: 0.5px solid rgba(212, 163, 115, 0.25);
  position: relative;
  z-index: 1;
}

.policy-index-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 48px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.index-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sepia);
  white-space: nowrap;
  flex-shrink: 0;
}

.index-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  list-style: none;
}

.index-links a {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--brown-mid);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.index-links a:hover {
  color: var(--brown);
}

/* Contenido */
.policy-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 48px 120px;
  position: relative;
  z-index: 1;
}

.policy-section {
  margin-bottom: 72px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.policy-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-anchor {
  display: block;
  height: 88px;
  margin-top: -88px;
  visibility: hidden;
}

.policy-section-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 0.5px solid rgba(212, 163, 115, 0.3);
}

.section-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--cream-dark);
  border: 0.5px solid rgba(212, 163, 115, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-top: 4px;
}

.section-title-wrap {
  flex: 1;
}

.section-num {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sepia);
  display: block;
  margin-bottom: 6px;
}

.policy-section h2 {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--brown);
  line-height: 1.2;
}

.policy-section h2 em {
  font-style: italic;
  color: var(--rose);
}

.policy-section p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--brown-mid);
  margin-bottom: 16px;
}

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

/* Items */
.policy-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.policy-items li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--cream-dark);
  border: 0.5px solid rgba(212, 163, 115, 0.2);
  font-size: 14px;
  line-height: 1.7;
  color: var(--brown-mid);
}

.policy-items li::before {
  content: '—';
  color: var(--sepia);
  flex-shrink: 0;
  font-weight: 300;
  margin-top: 1px;
}

.policy-items li strong {
  color: var(--brown);
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}

/* Highlight box */
.policy-highlight {
  background: var(--cream-dark);
  border: 0.5px solid rgba(212, 163, 115, 0.4);
  border-left: 2px solid var(--sepia);
  padding: 20px 24px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--brown-mid);
  font-style: italic;
}

.policy-highlight strong {
  color: var(--brown);
  font-style: normal;
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Tabla */
.policy-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--brown-mid);
}

.policy-table th {
  background: var(--cream-darker);
  color: var(--brown);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 0.5px solid rgba(212, 163, 115, 0.4);
}

.policy-table td {
  padding: 13px 16px;
  line-height: 1.6;
  border-bottom: 0.5px solid rgba(212, 163, 115, 0.15);
}

.policy-table tr:last-child td {
  border-bottom: none;
}

.policy-table tr:hover td {
  background: var(--cream-dark);
}

/* Badges */
.badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 0.5px solid;
}

.badge-ok {
  color: #4a7c59;
  border-color: rgba(74, 124, 89, 0.4);
  background: rgba(74, 124, 89, 0.06);
}

.badge-no {
  color: #a0332b;
  border-color: rgba(160, 51, 43, 0.4);
  background: rgba(160, 51, 43, 0.06);
}

.badge-cond {
  color: var(--brown-mid);
  border-color: rgba(212, 163, 115, 0.5);
  background: var(--cream-dark);
}

/* CTA */
.policy-cta {
  background: var(--brown);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 72px;
  position: relative;
  overflow: hidden;
}

.policy-cta::before {
  content: '?';
  position: absolute;
  right: 48px;
  top: -10px;
  font-size: 120px;
  font-weight: 300;
  color: rgba(212, 163, 115, 0.08);
  font-family: 'Literata', serif;
  pointer-events: none;
}

.policy-cta-text {
  flex: 1;
}

.policy-cta h3 {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--rose-light);
  margin-bottom: 8px;
}

.policy-cta p {
  font-size: 14px;
  color: rgba(212, 163, 115, 0.8);
  font-style: italic;
}

.policy-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Literata', serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  background: #E4405F;
  border: none;
  padding: 13px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-ig:hover {
  background: #c13547;
}

.btn-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Literata', serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-light);
  background: none;
  border: 0.5px solid rgba(212, 163, 115, 0.4);
  padding: 13px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-mail:hover {
  border-color: var(--sepia);
  color: var(--sepia);
}

/* Footer */
footer {
  background: var(--cream-darker);
  border-top: 0.5px solid rgba(212, 163, 115, 0.3);
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

.footer-bottom-simple {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-simple p {
  font-size: 13px;
  color: var(--brown-mid);
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown-mid);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--sepia);
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    padding: 0 24px;
  }

  .policy-hero-inner {
    padding: 60px 24px 56px;
  }

  .policy-index-inner {
    padding: 20px 24px;
    gap: 16px;
  }

  .policy-body {
    padding: 56px 24px 80px;
  }

  .policy-cta {
    padding: 32px 28px;
  }

  .policy-cta::before {
    display: none;
  }

  .footer-bottom-simple {
    padding: 0 24px;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .index-links {
    gap: 14px;
  }

  .policy-section-header {
    flex-direction: column;
    gap: 12px;
  }

  .policy-cta-actions {
    flex-direction: column;
  }

  .btn-ig,
  .btn-mail {
    justify-content: center;
  }
}
