:root {
  --cyan: #00aee5;
  /* botones top + hero */
  --cyan2: #38b4e7;
  /* donar / suscríbete */
  --cyan-bright: #00c0ff;
  /* importe recaudado */
  --red: #cf1717;
  --navy: #003b5d;
  --gray-band: #606060;
  --footer: #3c4a4b;
  --text: #58595b;
  --text-light: #7c7c7c;
  --heading: #4d4d4d;
  --band-light: #ededed;
  --band-light2: #f1f1f1;
}

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

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Oxygen', Arial, sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  background: #fff;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit
}

/* ===================== HEADER ===================== */
.site-header {
  background: #fff;
  padding: 18px 0 14px
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.brand img {
  width: 185px;
  height: auto;
  margin-top: 14px
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
  flex: 1
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--cyan);
  color: #fff;
  padding: 9px 18px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
}

.pill-btn .chev {
  width: 14px;
  height: 14px
}

.pill-btn .ico {
  width: 16px;
  height: 16px
}

.pill-btn svg {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round
}

.top-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 6px
}

.top-social a {
  color: #3a3a3a
}

.top-social svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6
}

.lang {
  color: var(--cyan);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .5px
}

.main-nav {
  display: flex;
  gap: 42px;
  padding-right: 4px
}

.main-nav a {
  color: var(--text-light);
  font-size: 17px;
  font-weight: 400
}

.main-nav a:hover {
  color: var(--cyan)
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  background: #f2efeb url('assets/hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 23.455vw;
  /* proporción real del banner; crece si el contenido necesita más */
  padding: 34px 20px;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-title {
  font-family: 'Rokkitt', serif;
  font-weight: 800;
  font-size: clamp(32px, 5.2vw, 78px);
  line-height: 1;
  letter-spacing: .5px;
  transform: scaleX(.94);
}

.hero-title span {
  display: inline
}

.hero-title .w-yellow {
  color: #f5b400
}

.hero-title .w-navy {
  color: #16213f
}

.hero-title .w-red {
  color: #cf1717
}

.tricolor {
  max-width: 620px;
  margin: 8px auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.tl-line {
  flex: 1;
  height: 3px;
  display: block
}

.tl-line.yellow {
  background: #f5b400
}

.tl-line.red {
  background: #cf1717
}

.tl-stars {
  display: flex;
  gap: 9px;
  flex: none
}

.tl-stars span {
  color: #16213f;
  font-size: 17px;
  line-height: 1
}

.hero-claim {
  font-family: 'Oxygen', Arial, sans-serif;
  font-weight: 700;
  color: #1f2a52;
  font-size: clamp(20px, 2.7vw, 34px);
  line-height: 1.15;
  margin-bottom: 8px;
}

.hero-sub {
  color: #5a5a5a;
  font-size: clamp(15px, 1.6vw, 19px);
  margin-bottom: 22px
}

.btn-hero {
  background: #29abe2;
  font-weight: 700;
  border-radius: 30px
}

/* botones genéricos */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  padding: 13px 34px;
  border-radius: 30px;
  font-weight: 400;
}

.btn-cyan {
  background: var(--cyan)
}

.btn-cyan2 {
  background: var(--cyan2);
  border-radius: 30px
}

.btn-navy {
  background: var(--navy);
  border-radius: 6px;
  font-weight: 700
}

.btn-block {
  display: block;
  width: 100%
}

.btn:hover {
  filter: brightness(.95)
}

/* ===================== RECAUDADO ===================== */
.raised-band {
  background: var(--band-light);
  padding: 32px 20px
}

.raised-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.raised-label {
  color: #6f6f6f;
  font-size: 22px;
  letter-spacing: .5px
}

.raised-amount {
  color: var(--cyan-bright);
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 1px
}

/* ===================== ESTAR AL LADO ===================== */
.cause {
  padding: 60px 0 0
}

.cause-head {
  text-align: center;
  padding: 0 20px 46px
}

.cause-head h2 {
  font-weight: 300;
  font-size: 30px;
  color: #6b6b6b;
  line-height: 1.3
}

.cause-head h2 .thin {
  font-weight: 300
}

.cause-head h2 strong {
  font-weight: 700;
  color: var(--heading)
}

.cause-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
}

.cause-img {
  position: relative
}

.cause-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.cause-text {
  padding: 14px 6% 50px 5%;
  max-width: 680px
}

.cause-text p {
  margin-bottom: 18px;
  color: #5f5f5f;
  font-size: 16.5px
}

.cause-text .cyan {
  color: var(--cyan-bright);
  font-weight: 700
}

.cause-text strong {
  color: #444
}

.cause-logos {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-top: 30px
}

.logo-caritas {
  height: 78px;
  width: auto
}

.logo-viamed-sm {
  height: 42px;
  width: auto
}

/* ===================== BANDA GRIS DUPLICA ===================== */
.double-band {
  position: relative;
  background: var(--gray-band);
  overflow: hidden;
  padding: 55px 20px
}

.deco-gray {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: auto;
  opacity: .95;
  pointer-events: none;
}

.double-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 34%
}

.double-inner p {
  color: #e9e9e9;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 300
}

.double-inner strong {
  color: var(--cyan);
  font-weight: 700
}

/* ===================== DONACIÓN ===================== */
.donate {
  background: linear-gradient(180deg, #f4f4f4, #ececec);
  padding: 64px 20px
}

.donate-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
}

.donate-text h2 {
  font-weight: 300;
  font-size: 34px;
  color: #7a7a7a;
  line-height: 1.25;
  margin-bottom: 22px
}

.donate-text h2 strong {
  font-weight: 700;
  color: var(--heading)
}

.donate-text p {
  color: #6f6f6f;
  font-size: 17px;
  margin-bottom: 18px;
  max-width: 520px
}

.methods {
  font-size: 16px
}

.methods strong {
  color: var(--navy)
}

.methods .dot {
  color: var(--cyan);
  font-weight: 700;
  margin: 0 6px
}

.donate-card {
  background: #fff;
  border-radius: 22px;
  padding: 38px 40px 34px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .07);
  text-align: center;
}

.donate-card h3 {
  color: var(--cyan2);
  font-weight: 300;
  font-size: 26px;
  margin-bottom: 26px
}

.donate-card h3 strong {
  font-weight: 700
}

.amounts {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px
}

.amount {
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 22px;
  padding: 9px 20px;
  font-family: inherit;
  font-size: 15px;
  color: #666;
  cursor: pointer;
  transition: .15s;
}

.amount:hover {
  border-color: var(--cyan2);
  color: var(--cyan2)
}

.amount.active {
  background: var(--cyan2);
  border-color: var(--cyan2);
  color: #fff
}

.secure {
  color: #9a9a9a;
  font-size: 14px;
  margin-top: 16px
}

/* ===================== DIVISOR ===================== */
.divider {
  padding: 46px 0;
  display: flex;
  justify-content: center;
  background: #eaeaea
}

.divider span {
  width: 330px;
  height: 2px;
  background: var(--cyan2);
  display: block
}

/* ===================== CERTIFICADO ===================== */
.cert {
  background: #e6e6e6;
  padding: 0 20px 70px
}

.cert-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 70px;
  align-items: center;
}

.cert-card {
  background: #fff;
  border-radius: 22px;
  padding: 42px 46px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .07);
  transform: translateY(-30px);
}

.cert-card h3 {
  color: var(--navy);
  text-align: center;
  font-size: 18px;
  margin-bottom: 24px;
  font-weight: 700
}

.cert-card input[type=text],
.cert-card input[type=email],
.cert-card input[type=date] {
  width: 100%;
  border: 1px solid #cfcfcf;
  border-radius: 22px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 15px;
  color: #555;
  margin-bottom: 16px;
}

.cert-card input::placeholder {
  color: #9a9a9a
}

.date-field {
  display: block;
  margin-bottom: 16px
}

.date-field .date-label {
  display: block;
  font-size: 13px;
  color: #9a9a9a;
  margin: 0 0 6px 12px
}

.date-field input[type=date] {
  margin-bottom: 0
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #777;
  margin: 6px 0 22px;
  line-height: 1.4
}

.check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: none
}

/* honeypot anti-spam: fuera de pantalla, invisible para usuarios reales */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden
}

/* mensaje de estado del formulario */
.form-status {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.4;
  min-height: 1px
}

.form-status.ok {
  color: #1e8e3e
}

.form-status.err {
  color: #c5221f
}

.cert-text h2 {
  font-weight: 300;
  font-size: 34px;
  color: #6f6f6f;
  line-height: 1.2;
  margin-bottom: 24px
}

.cert-text h2 strong {
  font-weight: 700;
  color: var(--heading)
}

.cert-text p {
  color: #6a6a6a;
  font-size: 17px;
  margin-bottom: 22px
}

.cyan-strong {
  color: var(--cyan-bright)
}

.cyan-strong strong {
  color: var(--cyan-bright);
  font-weight: 700
}

/* ===================== FOOTER ===================== */
.site-footer {
  position: relative;
  background: var(--footer);
  color: #cfd4d4;
  overflow: hidden;
  padding: 55px 20px 30px
}

.deco-footer {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 88%;
  width: auto;
  opacity: .9;
  pointer-events: none
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 2
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 40px
}

.fcol {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 16px
}

.fcol h4 {
  font-weight: 400;
  font-size: 16px;
  color: #eaeded;
  margin-bottom: 2px
}

.fcol a {
  color: #cfd4d4
}

.fcol a:hover {
  color: #fff
}

.fcol .addr {
  color: #cfd4d4;
  font-size: 15px;
  line-height: 1.5;
  margin-top: 4px
}

.newsletter h4 {
  margin-bottom: 14px
}

.news-form {
  display: flex;
  max-width: 430px;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 18px
}

.news-form input {
  flex: 1;
  border: none;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  color: #333
}

.news-form button {
  border: none;
  background: var(--cyan2);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  padding: 0 24px;
  cursor: pointer;
}

.check-light {
  color: #bfc6c6;
  font-size: 13px;
  max-width: 430px
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 20px
}

.footer-social a {
  color: #cfd4d4
}

.footer-social svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6
}

.footer-rule {
  border: none;
  border-top: 1px solid #566262;
  margin: 34px 0 22px
}

.footer-legal {
  text-align: center
}

.legal-links {
  font-size: 14px;
  color: #cfd4d4;
  line-height: 1.9
}

.legal-links a:hover {
  color: #fff
}

.copyright {
  font-size: 14px;
  color: #cfd4d4;
  margin-top: 8px
}

.footer-logo {
  position: absolute;
  right: 40px;
  bottom: 78px;
  width: 120px;
  height: auto;
  z-index: 2;
  filter: brightness(0) invert(1);
  opacity: .95;
}

/* floating widgets */
.float-left {
  position: fixed;
  left: 14px;
  bottom: 16px;
  display: flex;
  gap: 10px;
  z-index: 50
}

.float-left button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #eef6fb;
  color: var(--cyan2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
}

.float-left svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round
}

.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #5a6667;
  color: #fff;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* ===================== RESPONSIVE ===================== */
@media(max-width:980px) {
  .header-inner {
    flex-direction: column;
    align-items: center
  }

  .header-right {
    align-items: center
  }

  .top-actions {
    flex-wrap: wrap;
    justify-content: center
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 26px
  }

  .raised-inner {
    flex-direction: column;
    gap: 14px
  }

  .cause-body,
  .donate-inner,
  .cert-inner,
  .footer-cols {
    grid-template-columns: 1fr
  }

  .cause-img {
    min-height: 300px
  }

  .cause-img img {
    height: 100%
  }

  .cause-text {
    padding: 30px 24px 44px
  }

  .double-inner {
    padding-left: 0
  }

  .deco-gray,
  .deco-footer {
    display: none
  }

  .cert-card {
    transform: none
  }

  .footer-logo {
    position: static;
    margin: 24px auto 0;
    filter: brightness(0) invert(1)
  }
}

@media(max-width:600px) {
  .pill-btn {
    font-size: 14px;
    padding: 8px 14px
  }

  .main-nav {
    gap: 12px 18px
  }

  .main-nav a {
    font-size: 15px
  }

  .raised-amount {
    font-size: 38px
  }

  .raised-label {
    font-size: 18px
  }

  .donate-card,
  .cert-card {
    padding: 28px 22px
  }

  .amounts {
    gap: 8px
  }

  .amount {
    padding: 8px 14px;
    font-size: 14px
  }

  .news-form {
    flex-direction: column;
    border-radius: 0
  }

  .news-form input {
    border-radius: 5px;
    margin-bottom: 8px
  }

  .news-form button {
    border-radius: 5px;
    padding: 11px 0
  }

  .legal-links {
    font-size: 13px
  }
}

.privacy-note {
  font-size: 12.5px;
  color: #8a8a8a;
  line-height: 1.5;
  margin: 2px 0 16px
}

.privacy-link {
  color: var(--cyan);
  text-decoration: underline
}

/* ===================== MODAL PRIVACIDAD ===================== */
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px
}

.privacy-modal[hidden] {
  display: none
}

.privacy-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55)
}

.privacy-modal-box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 38px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.privacy-modal-box h3 {
  color: var(--navy);
  font-size: 20px;
  margin-bottom: 18px
}

.privacy-modal-box p {
  font-size: 14.5px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 14px
}

.privacy-modal-box p:last-child {
  margin-bottom: 0
}

.privacy-modal-box a {
  color: var(--cyan);
  text-decoration: underline
}

.privacy-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 4px 8px;
}

.privacy-modal-close:hover {
  color: var(--navy)
}