/* EDUVIDA – recreated from the Wix site. Desktop layout is a 980px card over a fixed art background. */
:root {
  --navy: #30324d;
  --yellow: #e6b410;
  --yellow-dark: #a5811a;
  --green: #088a78;
  --orange: #ed6124;
  --orange-dark: #a94317;
  --pink: #fe6161;
  --card: #ebebeb;
  --footer: #383838;
  --ink: #000;
  --ink-soft: #2f2e2e;
  --chalk: 'Fredericka the Great', 'Comic Sans MS', cursive;
  --sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --thin: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --footer-font: Tahoma, Verdana, Geneva, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
  background: #5a6a8a url('/media/bg.jpg') center center / cover no-repeat fixed;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 22px; }
.wrap { width: 980px; max-width: 100%; margin: 0 auto; position: relative; }
.just { text-align: justify; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: #fff; position: relative; }
.header-inner { height: 227px; }
.brand { position: absolute; left: 16px; top: 22px; display: flex; align-items: center; gap: 25px; }
.brand img { width: 159px; height: 172px; flex: none; }
.wordmark { display: flex; flex-direction: column; margin-top: 8px; }
.word { font-family: var(--chalk); font-size: 73px; line-height: 1.1; letter-spacing: 1px; }
.tag { font-family: var(--thin); font-weight: 200; font-size: 33px; line-height: 1; margin-top: -4px; margin-left: 2px; }
.donate {
  position: absolute; right: 0; top: 76px; width: 168px; height: 62px; border-radius: 31px;
  background: var(--pink); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; transition: background .2s;
}
.donate:hover { background: #ff7a7a; }
.lang { position: absolute; right: 112px; top: 27px; display: flex; gap: 6px; font-family: var(--thin); font-size: 16px; }
.lang a { display: flex; align-items: center; gap: 5px; padding: 3px 6px; color: #fff; opacity: .7; }
.lang a.on { opacity: 1; background: rgba(50,50,50,.9); }
.lang svg { width: 22px; height: 22px; }

/* ---------- Hero (home) ---------- */
.hero { background: transparent; }
.faces-wrap { position: relative; }
.faces { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(3, 1fr); grid-auto-flow: column; gap: 0; background: #eaeaea; transition: opacity .25s; }
.faces.fading { opacity: .35; }
.faces img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.face-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 60px; border: 0; background: transparent; color: #fff; cursor: pointer; opacity: .85; padding: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.face-nav:hover { opacity: 1; }
.face-nav.next { right: 18px; }
.face-nav.prev { left: 18px; }
.face-nav svg { width: 44px; height: 44px; }

/* ---------- Nav bar (yellow ribbon) ---------- */
.navbar { width: 1015px; max-width: 100%; margin: -9px auto 0; background: var(--yellow); position: relative; z-index: 3; }
.hero + .navbar { margin-top: 0; }
.navbar::before, .navbar::after { content: ''; position: absolute; bottom: -12px; width: 0; height: 0; border-style: solid; }
.navbar::before { left: 0; border-width: 12px 17px 0 0; border-color: var(--yellow-dark) transparent transparent transparent; }
.navbar::after { right: 0; border-width: 0 17px 12px 0; border-color: transparent var(--yellow-dark) transparent transparent; }
.navbar ul { list-style: none; margin: 0; padding: 14px 0 12px; display: flex; }
.is-home .navbar ul { padding: 38px 0 32px; }
.navbar li { flex: 1; display: flex; justify-content: center; border-left: 1px solid #2a2a2a; }
.navbar li:first-child { border-left: 0; }
.navbar a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 8px; font-family: var(--chalk); font-size: 24px; color: #000; text-align: center; transition: transform .15s; }
.navbar a:hover { transform: translateY(-2px); }
.navbar li.active a { color: var(--navy); }
.navbar img { width: 54px; height: 54px; }

/* ---------- Content card ---------- */
.card { width: 980px; max-width: 100%; margin: -20px auto 75px; background: var(--card); position: relative; z-index: 1; padding: 62px 64px 60px; min-height: 480px; }
.is-home .card { margin-top: -36px; padding-top: 74px; }
.home-link { position: absolute; left: 58px; top: 44px; }
.home-link img { width: 28px; height: 28px; }
.page-title { font-family: var(--chalk); font-weight: 400; font-size: 34px; line-height: 1.2; text-align: center; margin: 0 0 40px; letter-spacing: .5px; }
h2.page-title { margin-top: 40px; }
.chalk { font-family: var(--chalk); font-weight: 400; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; }
.orange-word { font-family: var(--thin); font-weight: 400; font-size: 40px; color: var(--orange); line-height: 1; margin-right: 10px; vertical-align: -6px; }
.tag-green { background: var(--green); color: #fff; font-weight: 700; font-size: 18px; padding: 0 16px 0 4px; display: inline-block; line-height: 1.25; }
.hl-yellow { background: var(--yellow); font-weight: 700; font-size: 25px; color: #000; padding: 0 22px 0 0; box-decoration-break: clone; -webkit-box-decoration-break: clone; line-height: 1.15; }
.yellow-box { background: var(--yellow); color: #fff; font-size: 19px; font-weight: 700; width: 348px; max-width: 100%; height: 54px; display: flex; align-items: center; padding-left: 48px; margin: 0 0 40px -80px; }
.sub-h { font-size: 20px; font-weight: 700; color: var(--ink-soft); margin: 30px 0 18px; }

/* Ribbon buttons (orange, overhanging the card edge on the right) */
.ribbon-btn { position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 20px; background: var(--orange); color: #fff; font-size: 14px; line-height: 1; white-space: nowrap; transition: background .2s; }
.ribbon-btn:hover { background: #f5712f; }
.ribbon-btn::after { content: ''; position: absolute; right: 0; bottom: -9px; border-style: solid; border-width: 9px 13px 0 0; border-color: var(--orange-dark) transparent transparent transparent; }
.ribbon-btn.no-fold::after { display: none; }
.cta-right { text-align: right; margin: 8px -77px 20px 0; }
.intro-cta, .vol-cta { text-align: right; margin-right: -77px; }

/* Home */
.intro { display: grid; grid-template-columns: 498px 1fr; gap: 32px; align-items: start; }
.intro-img { width: 498px; height: 333px; object-fit: cover; margin-left: -32px; }
.intro-text p { text-align: justify; font-size: 14px; }
.intro-cta { grid-column: 1 / -1; margin-top: -6px; }
.help { margin-top: 30px; }
.help-grid { display: grid; grid-template-columns: 1fr 372px; gap: 32px; align-items: start; }
.help-text { padding-left: 6px; max-width: 500px; }
.help-text h3 { margin: 0 0 2px; }
.help-text p { margin-bottom: 12px; font-size: 14px; line-height: 1.28; }
.help-text em { font-style: italic; }
.help-imgs { display: flex; flex-direction: column; gap: 30px; margin-right: -30px; }
.help-imgs img { width: 372px; height: 244px; object-fit: cover; }

/* Sobre */
.mission h2.chalk { font-size: 26px; margin: 0 0 12px; }
.mission h2.chalk + p { margin-bottom: 26px; }
.mission ul { padding-left: 24px; margin-bottom: 20px; }
.mission li, .mission p, .story p { font-size: 13.5px; line-height: 1.28; }
.lead { margin-bottom: 4px; }
.spacer-top { margin-top: 4px; }
.mission .footnotes { font-size: 10px; text-align: right; color: #333; margin-top: 10px; }
.group-photo { width: 100%; height: auto; margin: 12px 0 20px; }
.story-img { width: 398px; max-width: 100%; height: 265px; object-fit: cover; margin-top: 20px; }

/* Cursos */
.courses { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; }
.course { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 30px; }
.course img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; flex: none; }
.course h3 { font-size: 16px; font-weight: 700; margin: 0 0 4px; text-transform: uppercase; }
.course .sub { font-size: 14px; margin-bottom: 26px; text-transform: none; }
.course h3 + p:not(.sub) { margin-top: 32px; }
.course p { font-size: 13px; line-height: 1.28; }
.yellow-rule { border: 0; border-top: 3px solid var(--yellow); margin: 20px 0 50px; }
.bach { font-size: 13px; margin-top: 30px; }
.info-box { background: var(--yellow); border-radius: 12px; padding: 24px 24px 32px; margin-top: 10px; }
.info-box h3 { color: #fff; font-size: 28px; white-space: nowrap; text-align: center; margin: 0 0 24px; letter-spacing: .5px; }
.info-row { display: flex; gap: 20px; align-items: flex-start; padding-left: 60px; margin-bottom: 18px; }
.info-row img { width: 55px; height: 55px; flex: none; }
.info-row strong { display: block; font-family: var(--footer-font); font-size: 14px; color: #000; }
.info-row a { display: block; font-family: var(--footer-font); font-size: 21px; color: #fff; line-height: 1.05; }

/* Voluntariado */
.vol-block { display: grid; grid-template-columns: 285px 1fr; gap: 0 32px; align-items: start; margin: 0 0 40px -20px; }
.vol-media { position: relative; }
.ribbon-label { position: relative; background: var(--yellow); color: #000; font-size: 22px; line-height: 1.1; text-align: center; width: 285px; min-height: 62px; display: flex; align-items: center; justify-content: center; padding: 8px 20px; z-index: 1; }
.ribbon-label::after { content: ''; position: absolute; right: 0; bottom: -9px; border-style: solid; border-width: 9px 13px 0 0; border-color: var(--yellow-dark) transparent transparent transparent; }
.vol-media img { width: 255px; height: 255px; object-fit: cover; margin: -6px 0 0 15px; }
.vol-text { padding-top: 70px; }
.vol-text h2 { font-size: 20px; font-weight: 700; margin: 0 0 20px; }
.vol-text p { margin-bottom: 14px; }
ul.dots { list-style: none; padding: 0; margin: 0; }
ul.dots li::before { content: '• '; }
.vol-cta { grid-column: 1 / -1; margin-top: 10px; }

/* Donaciones */
.tax-note { position: absolute; right: 64px; top: 40px; display: flex; align-items: center; gap: 10px; color: var(--green); font-size: 12px; text-align: right; width: 210px; line-height: 1.2; }
.tax-note img { width: 63px; height: 63px; flex: none; }
.don-icon { width: 87px; height: auto; margin: 40px 0 8px; }
.don-sponsor h2, .don-lower h2 { margin: 0 0 30px; }
.don-lower h2 { line-height: 1.5; }
.infografia { width: 100%; height: auto; margin: 20px 0 30px; }
.account-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.account { line-height: 1.25; margin-bottom: 20px; }
.account em { font-style: italic; }
.don-lower { margin-top: 20px; }
.inversion { width: 388px; max-width: 100%; margin-top: 24px; }
.with-icon { display: flex; gap: 14px; align-items: flex-start; }
.with-icon img { width: 33px; height: 36px; margin-top: 4px; flex: none; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; }
.contact-info h2 { font-size: 14px; font-weight: 700; margin: 0 0 2px; }
.contact-info p { margin-bottom: 22px; line-height: 1.35; }
.contact-info .wa { display: inline-block; vertical-align: middle; margin-left: 4px; }
.contact-form form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; }
.contact-form input, .contact-form textarea { width: 100%; font: 14px var(--sans); border: 1px solid #c9c9c9; background: #fff; padding: 7px 8px; color: #333; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #9a9a9a; }
.cf-left { display: flex; flex-direction: column; gap: 6px; }
.contact-form textarea { height: 100px; resize: vertical; }
.cf-actions { grid-column: 1 / -1; text-align: right; }
.send-btn { font: 17px Georgia, 'Times New Roman', serif; color: #fff; background: var(--orange); border: 0; padding: 5px 12px; cursor: pointer; }
.send-btn:hover { background: #f5712f; }
.send-btn:disabled { opacity: .6; cursor: default; }
.form-msg { grid-column: 1 / -1; margin: 6px 0 0; font-size: 14px; min-height: 18px; }
.form-msg.ok { color: var(--green); font-weight: 700; }
.form-msg.err { color: #b3261e; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.waze { display: inline-block; margin-top: 36px; float: right; }
.waze img { width: 128px; height: auto; }

/* Donar page */
.donar { max-width: 490px; margin: 0 auto; padding-top: 10px; }
.donar img { width: 490px; height: auto; margin-bottom: 40px; }
.donar p { max-width: 480px; }

/* Volunteer / professional forms */
.vol-form { max-width: 640px; margin: 0 auto; }
.vol-form form { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.vol-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; }
.vol-form input, .vol-form select, .vol-form textarea { font: 14px var(--sans); border: 1px solid #c9c9c9; background: #fff; padding: 8px 9px; color: #222; width: 100%; }
.vol-form select { height: 37px; }
.vol-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vol-form .cf-actions { text-align: right; }
.vol-form .form-msg { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #fff; font-family: var(--footer-font); font-size: 14px; }
.footer-inner { width: 1160px; min-height: 55px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0; flex-wrap: wrap; font-size: 13px; }
.f-item { display: flex; align-items: center; gap: 10px; padding-right: 18px; border-right: 1px solid #8a8a8a; }
.f-item img { width: 28px; height: auto; flex: none; }
.f-social { display: flex; gap: 6px; padding-left: 16px; border-left: 1px solid #8a8a8a; }
.f-social img { width: 33px; height: 33px; }
.copyright { font: 8px var(--footer-font); color: #333; padding: 22px 0 10px 77px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .wrap, .navbar, .card { width: auto; }
  .navbar { margin-left: 8px; margin-right: 8px; }
  .card { margin-left: 24px; margin-right: 24px; padding: 60px 40px 50px; }
  .header-inner { margin: 0 24px; }
  .lang { right: 24px; top: 12px; }
  .donate { top: auto; bottom: 20px; }
  .footer-inner { width: auto; padding: 8px 24px; }
  .cta-right, .intro-cta, .vol-cta { margin-right: -53px; }
  .yellow-box { margin-left: -56px; }
  .tax-note { right: 40px; }
  .intro { grid-template-columns: 1fr 1fr; }
  .intro-img { width: 100%; height: auto; margin-left: 0; }
  .help-grid { grid-template-columns: 1fr 1fr; }
  .help-imgs { margin-right: 0; }
  .help-imgs img { width: 100%; height: auto; }
}
@media (max-width: 820px) {
  /* Mobile: solid background (iOS ignores fixed backgrounds and the art image would zoom badly),
     full-width card, no overhanging ribbons, left-aligned text. */
  body { background: var(--navy); font-size: 15px; line-height: 1.45; }
  .just, .intro-text p, .mission li, .mission p, .story p, .course p { text-align: left; }
  .header-inner { height: auto; margin: 0; padding: 56px 16px 20px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
  .brand { position: static; gap: 14px; }
  .brand img { width: 84px; height: 91px; }
  .wordmark { margin-top: 0; }
  .word { font-size: 42px; letter-spacing: 0; }
  .tag { font-size: 19px; margin-top: 0; }
  .lang { top: 12px; right: 12px; font-size: 14px; }
  .donate { position: static; transform: none; width: 170px; height: 48px; font-size: 12px; }
  .faces { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .faces img:nth-child(n + 10) { display: none; }
  .face-nav { width: 36px; height: 48px; }
  .face-nav.next { right: 4px; }
  .face-nav.prev { left: 4px; }
  .face-nav svg { width: 32px; height: 32px; }
  .navbar { margin: 0; width: 100%; }
  .navbar::before, .navbar::after { display: none; }
  .navbar ul, .is-home .navbar ul { padding: 10px 4px 8px; display: grid; grid-template-columns: repeat(5, 1fr); }
  .navbar li { border: 0; }
  .navbar a { font-size: 10.5px; gap: 4px; padding: 2px 1px; letter-spacing: -0.2px; line-height: 1.1; }
  .navbar img { width: 30px; height: 30px; }
  .card, .is-home .card { width: 100%; margin: 0 0 24px; padding: 60px 18px 40px; min-height: 0; }
  .home-link { left: 18px; top: 20px; }
  .page-title { font-size: 26px; margin-bottom: 28px; }
  h2.page-title { margin-top: 32px; }
  .two-col, .courses, .help-grid, .intro, .contact-grid, .vol-form .row2 { grid-template-columns: 1fr; gap: 0; }
  .orange-word { font-size: 34px; display: block; margin: 0 0 6px; }
  .ribbon-btn { height: 44px; padding: 0 22px; font-size: 15px; }
  .ribbon-btn::after { display: none; }
  .cta-right, .intro-cta, .vol-cta { margin: 6px 0 24px; text-align: right; }
  .intro-img { width: 100%; height: auto; margin: 0 0 18px; }
  .yellow-box { width: 100%; margin: 8px 0 24px; padding: 0 18px; justify-content: center; font-size: 18px; }
  .help-text { padding: 0; max-width: none; }
  .help-imgs { margin: 10px 0 0; gap: 16px; }
  .help-imgs img { width: 100%; height: auto; }
  .tag-green { font-size: 16px; }
  .mission h2.chalk { font-size: 24px; }
  .spacer-top { margin-top: 0; }
  .group-photo { margin: 6px 0 12px; }
  .story-img, .inversion, .infografia { width: 100%; height: auto; margin-top: 12px; }
  .course { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .course h3 + p:not(.sub) { margin-top: 10px; }
  .course .sub { margin-bottom: 10px; }
  .course p { text-align: left; }
  .course div { width: 100%; }
  .yellow-rule { margin: 6px 0 30px; }
  .info-box { padding: 20px 16px 24px; }
  .info-box h3 { font-size: 24px; white-space: normal; }
  .info-row { padding-left: 0; gap: 14px; }
  .info-row img { width: 44px; height: 44px; }
  .info-row a { font-size: 19px; }
  .vol-block { grid-template-columns: 1fr; margin: 0 0 36px; gap: 0; }
  .ribbon-label { width: 100%; font-size: 20px; }
  .ribbon-label::after { display: none; }
  .vol-media img { width: 100%; height: auto; aspect-ratio: 1; margin: 0; }
  .vol-text { padding-top: 18px; }
  .tax-note { position: static; width: auto; justify-content: flex-end; margin: -14px 0 4px; }
  .don-icon { margin: 20px 0 6px; width: 64px; }
  .hl-yellow { font-size: 21px; padding-right: 10px; }
  .don-sponsor h2, .don-lower h2 { margin-bottom: 18px; }
  .account-row { flex-direction: column; align-items: stretch; }
  .account-row .cta-right { text-align: right; }
  .sub-h { font-size: 18px; margin: 22px 0 12px; }
  .contact-form form { grid-template-columns: 1fr; }
  .contact-form input, .contact-form textarea, .vol-form input, .vol-form select, .vol-form textarea { font-size: 16px; padding: 11px 12px; }
  .contact-form textarea { height: 140px; }
  .send-btn { padding: 10px 22px; font-size: 18px; }
  .waze { float: none; margin: 20px auto 0; display: block; width: 128px; }
  .donar { padding-top: 0; }
  .donar img { width: 100%; margin-bottom: 24px; }
  .site-footer { padding: 6px 0 10px; }
  .footer-inner { width: auto; flex-direction: column; align-items: flex-start; gap: 12px; padding: 12px 18px; font-size: 14px; }
  .f-item { border: 0; padding: 0; }
  .f-social { border: 0; padding: 4px 0 0; gap: 18px; align-self: center; }
  .f-social img { width: 36px; height: 36px; }
  .copyright { padding: 14px 18px 12px; color: #aaa; }
}
