/* ==========================================================================
   Obra Social de la Carne – copia del sitio Wix original
   Estilos del sitio (sin build: se edita y se sube tal cual)
   ========================================================================== */

:root {
  --primary: #e4002b;        /* rojo de botones y menú activo */
  --primary-dark: #b80023;
  --wine: #4a1319;           /* títulos con serif (Beneficiarios) */
  --green: #44736e;          /* botón Enviar */
  --mint: #b6f0e4;           /* botón Ver Listado */
  --text: #303030;
  --text-muted: #6b6b6b;
  --border: #d5dbe0;
  --bg: #ffffff;
  --bg-alt: #eaf0f4;         /* franjas gris azulado */
  --bg-grey: #dcdcdc;        /* fondo de páginas internas */
  --max: 980px;
  --header-h: 119px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 {
  font-family: "Helvetica Neue", Inter, Arial, sans-serif; font-weight: 300;
  line-height: 1.25; color: var(--text); margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--text); color: #fff; padding: 0.6rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; }

/* ── Header / navegación ─────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; }
.header-inner {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h); padding-top: 7px; padding-bottom: 7px;
}
.brand { display: flex; align-items: flex-start; gap: 0.6rem; text-decoration: none; color: #000; align-self: flex-start; }
.brand img { height: 105px; width: auto; }
.brand-name {
  font-family: "Helvetica Neue", Inter, Arial, sans-serif; font-weight: 300;
  font-size: 0.88rem; line-height: 1.2; text-transform: uppercase; max-width: 13.5rem; padding-top: 0.4rem;
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 4px;
  width: 44px; height: 44px; cursor: pointer; padding: 0; align-items: center; justify-content: center; align-self: center;
}
.nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after {
  display: block; width: 20px; height: 2px; background: var(--text); position: relative; content: "";
}
.nav-toggle span:first-child::before { position: absolute; top: -6px; }
.nav-toggle span:first-child::after { position: absolute; top: 6px; }

.main-nav { padding-bottom: 1.6rem; }
.main-nav > ul { list-style: none; display: flex; gap: 0.2rem; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav a {
  display: block; padding: 0.5rem 0.75rem; white-space: nowrap;
  font-family: "Helvetica Neue", Inter, Arial, sans-serif; font-weight: 300;
  font-size: 0.86rem; text-transform: uppercase; color: #000; text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current="page"], .main-nav li.active > a { color: var(--primary); }
.main-nav .sub {
  list-style: none; margin: 0; padding: 0.3rem 0; min-width: 100%;
  position: absolute; left: 0; top: 100%; display: none;
  background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.main-nav li:hover > .sub, .main-nav li:focus-within > .sub { display: block; }

@media (max-width: 900px) {
  :root { --header-h: 84px; }
  .header-inner { align-items: center; }
  .brand { align-self: center; align-items: center; }
  .brand img { height: 70px; }
  .brand-name { font-size: 0.7rem; padding-top: 0; max-width: 11rem; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 0;
    background: #fff; border-top: 1px solid var(--border); box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; padding: 0.5rem 1.25rem 1rem; }
  .main-nav a { padding: 0.75rem 0.4rem; font-size: 0.95rem; }
  .main-nav .sub { position: static; display: block; box-shadow: none; padding: 0 0 0 1rem; }
}

/* ── Botones ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 0.6rem 1.6rem; border: 0; min-width: 100px; text-align: center;
  font-family: "Helvetica Neue", Inter, Arial, sans-serif; font-size: 0.82rem; text-decoration: none; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-mint { background: var(--mint); color: #000; border-radius: 4px; min-width: 155px; }
.btn-mint:hover { background: #9be6d6; color: #000; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #355b57; color: #fff; }
.btn-light { background: rgba(255,255,255,0.92); color: var(--text); }
.btn-light:hover { background: #fff; color: var(--primary); }
.btn-big { display: block; padding: 0.85rem 1rem; font-family: "Open Sans", Arial, sans-serif; font-size: 0.95rem; }

/* ── Carrusel (home) ─────────────────────────────────────────────────── */
.hero { position: relative; height: clamp(280px, 48vw, 470px); overflow: hidden; background: #cfd9df; }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: flex-start;
  background-size: cover; background-position: center;
  opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s linear 1s;
}
.hero-slide.active { opacity: 1; visibility: visible; transition: opacity 1s ease; }
.hero-box { align-self: flex-start; padding-top: clamp(1.2rem, 4vw, 2.6rem); }
.hero-box h1, .hero-box h2 {
  font-family: "Helvetica Neue", Inter, Arial, sans-serif; font-weight: 300; color: #303030;
  font-size: clamp(1.5rem, 3.6vw, 2.2rem); margin: 0 0 0.9rem;
  text-shadow: 0 0 12px rgba(255,255,255,0.85), 0 0 3px rgba(255,255,255,0.9);
}
.hero-box p { margin: -0.6rem 0 0.9rem; font-size: 1.05rem; text-shadow: 0 0 10px rgba(255,255,255,0.9); }
.hero-box .btn { border-radius: 999px; padding: 0.95rem 1.8rem; min-width: 171px; font-weight: 600; font-size: 0.78rem; }
.hero-arrow {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; cursor: pointer;
  background: #fff; color: var(--primary); font-size: 1.4rem; line-height: 1; padding: 0 0 3px;
}
.hero-arrow.prev { left: 0.5rem; }
.hero-arrow.next { right: 0.5rem; }
.hero-dots { position: absolute; z-index: 3; bottom: 0.6rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.9rem; }
.hero-dots button { width: 7px; height: 7px; border: 0; background: rgba(255,255,255,0.6); padding: 0; cursor: pointer; }
.hero-dots button.active { background: #fff; }

/* ── Accesos con ícono (home) ────────────────────────────────────────── */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.2rem 0 2.6rem; border-top: 1px solid #c9b2b2; }
.quick a, .quick div { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; text-decoration: none; color: #000; }
.quick a:hover { color: var(--primary); }
.quick svg { width: 34px; height: 34px; }
.quick span { font-family: "Helvetica Neue", Inter, Arial, sans-serif; font-weight: 300; font-size: 0.92rem; line-height: 1.25; max-width: 9rem; }
.quick .upper { font-size: 0.74rem; text-transform: uppercase; }
@media (max-width: 600px) { .quick { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; } }

/* ── Secciones ───────────────────────────────────────────────────────── */
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-alt); }
.page-grey { background: var(--bg-grey); }
.panel { background: #f7f5f4; padding: 2.5rem clamp(1.25rem, 6vw, 4.5rem); }
.title { font-size: 1.45rem; }
.title::before { content: ""; display: block; width: 44px; height: 3px; background: #1d1d1d; margin-bottom: 1.1rem; }
.title-serif { font-family: "Noticia Text", Georgia, serif; font-weight: 700; color: var(--wine); font-size: 1.5rem; }
.title-serif::before { background: var(--wine); }
.title-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.title-row .title { margin: 0; }

/* ── Mapa y tabla de delegaciones ────────────────────────────────────── */
.map-frame { width: 100%; height: 397px; border: 0; display: block; }
.table-tools { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; margin: 1.5rem 0 0; background: #fff; border: 1px solid var(--border); border-bottom: 0; padding: 0.7rem; }
.table-tools input { flex: 1; min-width: 200px; max-width: 320px; padding: 0.5rem 0.8rem; border: 1px solid var(--border); font: inherit; font-size: 0.85rem; }
.table-count { font-size: 0.78rem; color: var(--text-muted); }
.table-wrap { background: #fff; border: 1px solid var(--border); overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
table.data th { text-align: left; padding: 0.6rem 0.8rem; font-weight: 600; background: #f3f5f7; border-bottom: 1px solid var(--border); }
table.data td { padding: 0.5rem 0.8rem; border-top: 1px solid var(--border); border-right: 1px solid var(--border); vertical-align: top; }
table.data td:last-child { border-right: 0; white-space: nowrap; }
table.data tbody tr:hover { background: #f3f5f7; }
@media (max-width: 640px) {
  table.data thead { display: none; }
  table.data tr { display: block; padding: 0.7rem 0.8rem; border-top: 1px solid var(--border); }
  table.data td { display: block; padding: 0.05rem 0; border: 0; white-space: normal !important; }
  table.data td:nth-child(2) { font-weight: 700; font-size: 0.92rem; }
  table.data td:first-child { font-size: 0.72rem; text-transform: uppercase; color: var(--text-muted); }
}

/* ── Documentos PDF ──────────────────────────────────────────────────── */
.pdf-link { display: inline-flex; flex-direction: column; align-items: center; gap: 0.3rem; text-decoration: none; color: var(--text); font-size: 0.72rem; margin-top: 0.8rem; }
.pdf-link svg { width: 52px; height: 64px; }
.pdf-link:hover { color: var(--primary); }
.pdf-view { width: 100%; height: min(1100px, 85vh); border: 1px solid var(--border); background: #fff; }

/* ── Institucional ───────────────────────────────────────────────────── */
.intro { display: grid; grid-template-columns: 1fr 2.6fr; gap: 2rem; align-items: start; }
.intro h1 { font-size: 1.15rem; letter-spacing: 0.06em; text-align: center; line-height: 1.5; }
.intro p { font-family: "Helvetica Neue", Inter, Arial, sans-serif; font-weight: 300; margin: 0; }
@media (max-width: 700px) { .intro { grid-template-columns: 1fr; } }
.services { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; margin: 2.5rem 0; }
.service { background: #dcdcdc; text-align: center; }
.service .pic { width: 100%; height: 86px; object-fit: cover; }
.service p { margin: 0; padding: 0.7rem 0.4rem 1.6rem; font-family: "Helvetica Neue", Inter, Arial, sans-serif; font-weight: 300; font-size: 0.85rem; }
@media (max-width: 700px) { .services { grid-template-columns: repeat(2, 1fr); } }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.5rem; }

/* ── Reseña histórica ────────────────────────────────────────────────── */
.prose { font-size: 0.86rem; line-height: 1.55; }
.prose p { margin: 0; }
.prose h1 { font-family: "Noticia Text", Georgia, serif; font-weight: 700; font-size: 0.9rem; margin: 0 0 1.4em; }
.prose h2 { font-family: inherit; font-weight: 400; font-size: inherit; margin: 0; text-transform: none; }

/* ── Información útil / Contacto ─────────────────────────────────────── */
.two-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 7.5rem 0 3.4rem; max-width: 820px; margin: 0 auto; }
@media (max-width: 640px) { .two-buttons { grid-template-columns: 1fr; gap: 1rem; padding: 3rem 0 2rem; } }
.banner {
  min-height: 268px; display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem;
  background: #e3d3c6 center / cover no-repeat;
}
.banner h1 { margin: 0; padding: 0.7rem 1.6rem; border: 3px solid #fff; color: #fff; font-size: clamp(1.1rem, 3vw, 1.4rem); font-weight: 400; text-shadow: 0 1px 6px rgba(0,0,0,0.25); }
.contact-data { display: grid; grid-template-columns: 1fr 2.8fr; gap: 1.5rem; align-items: start; }
.contact-data .title { font-size: 1.6rem; margin: 0; }
.contact-data p { margin: 0; font-size: 0.82rem; line-height: 1.5; }
@media (max-width: 640px) { .contact-data { grid-template-columns: 1fr; } }

.form { background: #fff; padding: 0.6rem; max-width: 560px; margin-top: 1.5rem; }
.form h2 { font-family: "Noticia Text", Georgia, serif; font-weight: 700; color: var(--wine); font-size: 0.95rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0.3rem; }
.form-grid .col { display: grid; gap: 0.3rem; align-content: start; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
.form input, .form textarea {
  width: 100%; padding: 0.45rem 0.9rem; border: 2px solid #b9b9b9; background: #fff;
  font: inherit; font-size: 0.82rem; color: var(--text);
}
.form.red input, .form.red textarea { border-color: #f0a3a8; }
.form textarea { height: 100%; min-height: 140px; resize: vertical; }
.form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; margin-top: 1rem; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; font-size: 0.82rem; }
.form-msg.ok { color: #1a7f4b; }
.form-msg.err { color: #b3261e; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: #fff; padding: 1.2rem 0 2.2rem; font-size: 0.78rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-tel { font-family: "Helvetica Neue", Inter, Arial, sans-serif; font-size: 0.95rem; margin-bottom: 1rem; }
.footer-tel a { color: inherit; text-decoration: none; }
.site-footer p { margin: 0; line-height: 1.5; max-width: 30rem; }
.site-footer .sss img { width: 180px; height: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide, .btn { transition: none; }
}

/* ── Área interna ────────────────────────────────────────────────────── */
.page-grey > .container > .interno { margin: 3.5rem 0 4rem; min-height: 360px; background: #f9f9f9; }
.interno-head { display: flex; align-items: flex-end; gap: 0.6rem; }
.interno-head svg { width: 62px; height: 62px; color: var(--wine); flex-shrink: 0; }
.interno-head .title { margin: 0; font-size: 2.1rem; }
.interno-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; margin-top: 10rem; }
.interno-links .btn { min-width: 160px; padding: 0.55rem 1rem; font-size: 0.9rem; }
@media (max-width: 640px) { .interno-links { margin-top: 3rem; flex-direction: column; align-items: stretch; } }

/* ── Pantalla de contraseña del Área interna ─────────────────────────── */
.gate { max-width: 340px; margin: 3rem auto 4rem; text-align: center; }
.gate h1 { font-family: "Noticia Text", Georgia, serif; font-weight: 700; font-size: 2rem; margin-bottom: 0.3rem; }
.gate p { font-size: 0.82rem; margin-bottom: 1.6rem; }
.gate input { width: 100%; padding: 0.5rem 0.2rem; border: 0; border-bottom: 1px solid #b9b9b9; font: inherit; font-size: 0.9rem; background: transparent; }
.gate input:focus { outline: none; border-bottom-color: var(--primary); }
.gate .btn { display: block; width: 100%; margin-top: 1.6rem; padding: 0.7rem 1rem; }
.gate .gate-error { color: #b3261e; margin: 0.6rem 0 0; }
