@import url('https://fonts.googleapis.com/css2?family=Caveat+Brush&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --green: #0E6402;
  --green-dark: #094601;
  --green-soft: #EBF5E9;
  --blue: #004B87;
  --blue-dark: #003561;
  --blue-soft: #EAF2F9;
  --bg: #F7F9FB;
  --surface: #FFFFFF;
  --text: #1E293B;
  --muted: #475569;
  --border: #DCE3EA;
  --warn-bg: #FFFBEB;
  --warn-border: #F59E0B;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}

.brand-logo {
  font-family: 'Caveat Brush', cursive, sans-serif;
  font-size: 2rem;
  line-height: 1;
  color: var(--blue);
  letter-spacing: 0.5px;
}

.brand-logo span { color: var(--blue); }

.nav-links {
  display: none;
  align-items: center;
  gap: 18px;
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-links a { color: var(--text); padding: 6px 2px; }
.nav-links a:hover, .nav-links a.active { color: var(--green); text-decoration: none; }

.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 8px 14px !important;
  border-radius: 10px;
}
.nav-cta:hover { background: var(--blue-dark); }

/* Mobile menu sin JS */
.mobile-nav { position: relative; }
.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--text);
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: 48px;
  width: 230px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu-panel a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.94rem;
}
.mobile-menu-panel a:hover { background: var(--green-soft); color: var(--green); text-decoration: none; }

@media (min-width: 820px) {
  .nav-links { display: flex; }
  .mobile-nav { display: none; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #ffffff 0%, var(--green-soft) 55%, var(--blue-soft) 100%);
  border-bottom: 1px solid var(--border);
  padding: 46px 0 42px;
}

.page-hero {
  background: linear-gradient(135deg, #ffffff 0%, var(--blue-soft) 100%);
  border-bottom: 1px solid var(--border);
  padding: 32px 0 28px;
}

.badge {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid #BFE0B9;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.badge-blue {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: #BDD7EE;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4.2vw, 2.55rem);
  line-height: 1.2;
  color: #0F172A;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.25;
  color: #0F172A;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #0F172A;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 680px;
  margin: 0 0 22px;
}

/* Buttons */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }

.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-disabled {
  background: #E2E8F0;
  color: #475569;
  cursor: default;
}

/* Sections & Cards */
.section { padding: 40px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.callout {
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0;
}

.callout-green {
  background: var(--green-soft);
  border-left: 4px solid var(--green);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0;
}

.callout-warn {
  background: var(--warn-bg);
  border-left: 4px solid var(--warn-border);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.step-num-blue { background: var(--blue); }

/* Diagrama Banner Local 720x280 */
.diagram-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

.banner-diagram {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 720 / 280;
  background: #E2E8F0;
  border: 2px solid var(--blue);
  border-radius: 10px;
  overflow: hidden;
}

.diagram-safe {
  position: absolute;
  top: 7.14%;
  bottom: 7.14%;
  left: 5.55%;
  right: 5.55%;
  background: #FFFFFF;
  border: 2px dashed var(--green);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-dark);
}

.diagram-blocked {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30.55%;
  height: 35.71%;
  background: rgba(220, 38, 38, 0.16);
  border-top: 2px solid #DC2626;
  border-left: 2px solid #DC2626;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #991B1B;
  line-height: 1.2;
}

.diagram-caption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 8px;
}

/* Forms */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 660px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .field-full { grid-column: 1 / -1; }
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #0F172A;
}

.req { color: #DC2626; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="file"],
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--text);
  background: #fff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 75, 135, 0.12);
}

.help-text {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 5px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
}
.checkbox-row input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green); }

/* Document / Legal / Tips */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 24px;
}
.toc ul {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.legal-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}
.legal-block h2 { color: var(--blue); border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.legal-block ul, .legal-block ol { padding-left: 20px; }
.legal-block li { margin-bottom: 8px; }

.tips-section-title {
  color: var(--green);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 18px 0 10px;
}
.tips-section-title.blue { color: var(--blue); }

/* Footer */
.site-footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 36px 0 24px;
  margin-top: 32px;
  font-size: 0.92rem;
}

.site-footer a { color: #E2E8F0; }
.site-footer a:hover { color: #ffffff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-title {
  color: #FFFFFF;
  font-weight: 700;
  margin: 0 0 10px;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  margin-top: 26px;
  padding-top: 16px;
  font-size: 0.84rem;
  color: #94A3B8;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}