:root {
  --yellow: #fec700;
  --gray: #7a7a7a;
  --gray-dark: #434549;
  --blue: #0042aa;
  --bg: #ffffff;
  --bg-alt: #f5f5f4;
  --header-h: 88px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--gray-dark);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }

.container { width: min(1100px, 100% - 32px); margin-inline: auto; }

/* Encabezado y navegación */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .96);
  border-bottom: 3px solid var(--yellow);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { width: 84px; height: auto; }

.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: var(--gray-dark); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-left: 3px solid transparent;
}
.site-nav a:hover, .site-nav a:focus-visible { border-left-color: var(--yellow); color: #000; }

.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-button { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .brand img { width: 66px; }
  .menu-toggle { pointer-events: auto; width: 44px; height: 44px; right: 16px; top: 14px; z-index: 2; cursor: pointer; }
  .menu-button { display: block; width: 44px; height: 44px; position: relative; cursor: pointer; }
  .menu-button span, .menu-button span::before, .menu-button span::after {
    position: absolute; left: 10px; width: 24px; height: 3px; background: var(--gray-dark); content: ""; transition: transform .2s;
  }
  .menu-button span { top: 20px; }
  .menu-button span::before { left: 0; top: -8px; }
  .menu-button span::after { left: 0; top: 8px; }
  .menu-toggle:checked + .menu-button span { background: transparent; }
  .menu-toggle:checked + .menu-button span::before { transform: translateY(8px) rotate(45deg); }
  .menu-toggle:checked + .menu-button span::after { transform: translateY(-8px) rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 3px solid var(--yellow); padding: 8px 16px 16px;
  }
  .menu-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 12px; }
}

/* Portada */
.hero {
  background: linear-gradient(rgba(255,255,255,.88), rgba(255,255,255,.94)), url("../img/panorama.jpg") center / cover;
  padding: clamp(56px, 10vw, 120px) 0;
  text-align: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero-logo { width: min(320px, 70vw); }
.hero-tagline { max-width: 560px; font-size: 1.2rem; margin: 0; }

.button {
  display: inline-block; background: var(--yellow); color: var(--gray-dark); font-weight: 700;
  text-decoration: none; padding: 12px 28px; border-radius: 999px; transition: background .2s;
}
.button:hover { background: #ffd83d; }

/* Secciones */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; color: var(--gray-dark);
  margin: 0 0 40px; padding-bottom: 12px; border-bottom: 4px solid var(--yellow); display: inline-block;
}

.card {
  background: var(--gray); color: #fff; border-radius: 18px; padding: 24px 28px; margin: 0;
  text-align: center; font-weight: 400; font-size: 1.05rem;
  box-shadow: 0 14px 18px -12px rgba(0,0,0,.35);
}

/* Quiénes somos */
.mv { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.mv-item h3 {
  color: var(--blue); font-weight: 400; font-size: 1.6rem; text-align: center; letter-spacing: .04em;
  text-transform: uppercase; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 4px solid var(--yellow);
}

/* Objetivos */
.goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.goal { background: #fff; padding: 28px 24px; border-left: 5px solid var(--yellow); display: flex; flex-direction: column; gap: 20px; }
.goal img { height: 90px; width: auto; object-fit: contain; align-self: flex-start; }
.goal p { margin: 0; font-size: 1.1rem; }

/* Cómo lo hacemos */
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; padding-bottom: 40px; border-bottom: 4px solid var(--yellow); }
.how .card { display: flex; align-items: center; justify-content: center; min-height: 110px; }
.icon-row { display: flex; justify-content: center; align-items: center; gap: clamp(24px, 6vw, 72px); flex-wrap: wrap; margin-top: 48px; }
.icon-row img { height: clamp(64px, 10vw, 110px); width: auto; }

/* En Parkhaus */
.values {
  display: grid; gap: 24px 32px; align-items: center; justify-items: center;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: ". top ." "left logo right" ". bottom .";
}
.values-logo { grid-area: logo; width: 180px; }
.bubble {
  position: relative; background: var(--gray); color: #fff; border-radius: 18px; padding: 16px 22px; margin: 0;
  text-align: center; max-width: 260px; font-weight: 400;
}
.bubble::after { content: ""; position: absolute; border: 12px solid transparent; }
.bubble-top { grid-area: top; }
.bubble-top::after { top: 100%; left: 50%; transform: translateX(-50%); border-top-color: var(--gray); }
.bubble-bottom { grid-area: bottom; }
.bubble-bottom::after { bottom: 100%; left: 50%; transform: translateX(-50%); border-bottom-color: var(--gray); }
.bubble-left { grid-area: left; justify-self: end; }
.bubble-left::after { left: 100%; top: 50%; transform: translateY(-50%); border-left-color: var(--gray); }
.bubble-right { grid-area: right; justify-self: start; }
.bubble-right::after { right: 100%; top: 50%; transform: translateY(-50%); border-right-color: var(--gray); }

@media (max-width: 700px) {
  .values { grid-template-columns: 1fr; grid-template-areas: "logo" "top" "left" "right" "bottom"; }
  .bubble-left, .bubble-right { justify-self: center; }
  .bubble::after { display: none; }
}

/* Antecedentes */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin-bottom: 40px; }
.stats div { border-left: 5px solid var(--yellow); padding: 4px 16px; }
.stats strong { display: block; font-size: 2rem; color: var(--blue); font-weight: 700; line-height: 1.2; }
.stats span { font-size: .95rem; }
.prose { max-width: 820px; text-align: justify; hyphens: auto; }

/* Contacto */
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 32px; font-size: 1.1rem; }
.contact-list dt { font-weight: 500; }
.contact-list dd { margin: 0; }

/* Pie de página */
.site-footer { text-align: center; padding: 32px 16px; font-size: .85rem; }
.site-footer p {
  display: inline-block; margin: 0; padding: 4px 16px; border-left: 3px solid var(--yellow); border-right: 3px solid var(--yellow);
}

@media (max-width: 600px) {
  .prose { text-align: left; }
}
