:root {
  --ink: #171728;
  --blush: #fef4f4;
  --cream: #fff5f0;
  --coral: #e08a68;
  --coral-bar: #f4846c;
  --orange: #d74000;
  --sand: #fbe3ba;
  --sand-dark: #f7c777;
  --line: #f7c777;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 90px; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Poppins, Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
}

img, iframe { display: block; max-width: 100%; }
a { color: inherit; }

/* Encabezado */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 81px;
  padding: 12px 28px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}

.brand {
  flex: none;
  font-size: 20px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

#menu { flex: 1; min-width: 0; }

.menu, .submenu { margin: 0; padding: 0; list-style: none; }

.menu {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.menu > li { position: relative; flex: 1 0 auto; max-width: 220px; }

.pill {
  display: block;
  width: 100%;
  padding: 8px 14px;
  border: 1px solid var(--blush);
  border-radius: 100px;
  background: var(--cream);
  color: #c9663f;
  font: inherit;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}

.pill:hover, .pill.is-current, .has-sub.is-open > .pill { border-color: var(--orange); background: #fff; }

.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 290px;
  padding-top: 6px;
  transform: translateX(-50%);
  display: none;
}

.submenu li { background: var(--cream); border: 1px solid #f5d9cc; border-top-width: 0; }
.submenu li:first-child { border-top-width: 1px; border-radius: 12px 12px 0 0; }
.submenu li:last-child { border-radius: 0 0 12px 12px; }

.submenu a {
  display: block;
  padding: 10px 16px;
  color: #b4532e;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.submenu a:hover, .submenu a[aria-current] { background: var(--orange); color: #fff; }
.submenu li:first-child a { border-radius: 11px 11px 0 0; }
.submenu li:last-child a { border-radius: 0 0 11px 11px; }

.has-sub:hover .submenu, .has-sub.is-open .submenu { display: block; }

.fb { flex: none; display: block; width: 26px; height: 26px; color: #000; }
.fb svg { display: block; width: 100%; height: 100%; }
.fb-large { width: 39px; height: 39px; margin: auto 48px; }

.menu-toggle {
  display: none;
  order: 3;
  width: 44px;
  height: 44px;
  padding: 11px 9px;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--ink); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Inicio */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 567px;
  padding: 40px 16px;
  background: var(--blush);
}

.hero img { width: min(414px, 100%); height: auto; mix-blend-mode: multiply; }

.about-band { padding: 0 0 16px; background: var(--blush); }

.about {
  display: grid;
  grid-template-columns: 49% 51%;
  border: 2px solid var(--ink);
  background: #fff;
}

.about-img {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px;
  border-right: 2px solid var(--ink);
}

.about-img img {
  width: 158px;
  height: 158px;
  object-fit: cover;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.about-text { padding: 28px 24px 28px 8px; font-size: 14px; font-weight: 400; line-height: 1.75; }
.about-text p { margin: 0 0 1.6em; }
.about-text p:last-child { margin-bottom: 0; }

.map-section { padding: 40px 12.5% 68px; }
.map-section iframe { width: 100%; height: 375px; border: 0; background: #e5e3df; }

/* Pie */
.footer-grid {
  display: grid;
  grid-template-columns: 25% 75%;
  border: 2px solid var(--line);
  background: var(--sand);
}

.footer-logo { padding: 16px 12px 20px; border-right: 2px solid var(--line); }
.footer-logo img { width: 150px; height: auto; margin: 16px auto 0; mix-blend-mode: multiply; }
.footer-contact { padding: 16px 8px 18px; }

.bar { display: block; width: 110px; height: 10px; background: var(--coral-bar); }
.footer-logo .bar { width: 98px; }

.footer-contact h2 {
  margin: 8px 0 8px;
  font-size: 20px;
  font-style: italic;
  font-weight: 700;
}

.contact-row { display: flex; align-items: center; }
address { font-style: normal; font-size: 14px; font-weight: 400; padding-left: 46px; }
address p { margin: 0 0 9px; line-height: 1.75; }
address a { text-decoration: none; overflow-wrap: anywhere; }
address a:hover { text-decoration: underline; }

.footer-bottom {
  margin: 0;
  padding: 16px 16px 16px 32%;
  background: var(--sand-dark);
  font-size: 14px;
  font-style: italic;
  font-weight: 700;
}

.footer-note {
  margin: 0;
  padding: 8px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  text-align: center;
}

/* Paginas interiores */
.page-section {
  min-height: 60vh;
  padding: 40px clamp(16px, 4vw, 30px) 64px;
  background: var(--blush);
}

.page-section > * { max-width: 1120px; margin-left: auto; margin-right: auto; }

h1 {
  margin-top: 0;
  margin-bottom: 40px;
  font-size: clamp(32px, 6vw, 56px);
  font-style: italic;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.tablist { display: flex; gap: 4px; }

[role="tab"] {
  width: 170px;
  padding: 14px 12px;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: var(--cream);
  color: #000;
  font: inherit;
  font-size: 19px;
  cursor: pointer;
}

[role="tab"][aria-selected="true"] { background: var(--orange); color: #fff; }

.tabpanel, .doc-box { padding: 20px clamp(12px, 2vw, 24px) 32px; background: var(--cream); }

.doc-heading {
  margin: 24px 0 8px;
  font-size: 18px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.35;
}

.doc-heading:first-child { margin-top: 4px; }

.doc-list { margin: 0; padding: 0 0 0 20px; list-style: none; }
.doc-list li { padding: 5px 0; font-size: 15px; font-weight: 500; line-height: 1.45; }
.doc-list a { text-underline-offset: 3px; }
.doc-list a:hover { color: var(--orange); }
.doc-list span { font-weight: 400; }

.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.year-grid a {
  padding: 36px 16px;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 6px 6px 0 var(--ink);
  font-size: 20px;
  font-style: italic;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.year-grid a:hover { background: var(--sand); }

.back { margin-top: -24px; margin-bottom: 24px; }
.empty { font-weight: 400; text-align: center; }

@media (max-width: 960px) {
  .site-header { flex-wrap: wrap; gap: 8px 12px; min-height: 68px; padding: 10px 16px; }
  .brand { flex: 1; min-width: 0; font-size: 17px; }
  .menu-toggle { display: block; }
  #menu { display: none; order: 4; flex-basis: 100%; }
  #menu.is-open { display: block; }
  .menu { flex-direction: column; padding: 8px 0; }
  .menu > li { flex: none; max-width: none; }
  .has-sub:hover .submenu { display: none; }
  .has-sub.is-open .submenu { display: block; }
  .submenu { position: static; width: 100%; transform: none; }
}

@media (max-width: 720px) {
  .hero { min-height: 340px; }
  .about { grid-template-columns: 1fr; }
  .about-img { border-right: 0; border-bottom: 2px solid var(--ink); }
  .about-text { padding: 20px 16px; }
  .map-section { padding: 24px 16px 40px; }
  .map-section iframe { height: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-logo { border-right: 0; border-bottom: 2px solid var(--line); }
  .footer-contact { padding: 16px; }
  .contact-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  address { padding-left: 0; }
  .fb-large { margin: 0; }
  .footer-bottom { padding-left: 16px; text-align: center; }
  [role="tab"] { flex: 1; width: auto; }
}
