:root {
  --bg: #f4f9fe;
  --surface: #ffffff;
  --surface-soft: #eaf4ff;
  --ink: #163149;
  --ink-muted: #385a76;
  --primary: #0a7aca;
  --primary-deep: #065f9e;
  --accent: #15b68e;
  --line: #d0e1f2;
  --shadow: 0 14px 35px rgba(20, 58, 95, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top right, #d8ecff 0%, var(--bg) 45%);
  line-height: 1.55;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

h1,
h2,
h3 {
  font-family: "Urbanist", sans-serif;
  line-height: 1.2;
  margin: 0 0 0.7rem;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.6rem);
}

h1 span {
  color: var(--primary);
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.3rem);
}

p {
  margin: 0;
  color: var(--ink-muted);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 0;
}

.brand {
  text-decoration: none;
  font-family: "Urbanist", sans-serif;
  font-size: 1.14rem;
  font-weight: 800;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 1.2rem;
  padding: 0;
  margin: 0;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.nav a:hover {
  color: var(--primary);
}

.hero {
  padding-bottom: 4rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: start;
  padding-top: 2rem;
}

.kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.85rem;
}

.hero-text p {
  max-width: 60ch;
  font-size: 1.07rem;
}

.hero-actions {
  margin-top: 1.45rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.18rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(140deg, var(--primary), var(--primary-deep));
  color: #fff;
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.hero-card ul {
  margin: 0.8rem 0;
  padding-left: 1rem;
  color: var(--ink-muted);
}

.hero-card li {
  margin-bottom: 0.38rem;
}

.mini-note {
  font-size: 0.93rem;
  color: var(--primary-deep);
  font-weight: 700;
}

.section {
  padding: 4rem 0;
}

.section-soft {
  background: var(--surface-soft);
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-size: 0.77rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.cards-4 {
  margin-top: 1.35rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-3 {
  margin-top: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.profile-grid {
  margin-top: 1.3rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem;
}

.profile-card p {
  margin-bottom: 0.44rem;
}

.image-card {
  display: grid;
  gap: 0.6rem;
}

.placeholder-image {
  width: 100%;
  height: 380px;          /* tamaño fijo del cuadro */
  object-fit: contain;    /* evita zoom/corte */
  object-position: center;
  border-radius: 12px;
  border: 1px dashed #8fb8de;
  background: #ecf5ff;    /* relleno donde sobre espacio */
}

.placeholder-image.image-broken {
  border: 1px dashed #d57a7a;
  background: repeating-linear-gradient(
    -45deg,
    #fff0f0,
    #fff0f0 12px,
    #ffe1e1 12px,
    #ffe1e1 24px
  );
}

.small-note {
  font-size: 0.9rem;
}

.agenda-intro {
  max-width: 74ch;
}

.agenda-actions {
  margin-top: 1.3rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer {
  background: linear-gradient(160deg, #0e3554, #145680);
  color: #edf7ff;
  padding: 3.6rem 0 1.1rem;
}

.contact-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 1.4rem;
}

.footer p,
.footer h2,
.footer strong {
  color: #edf7ff;
}

.contact-grid {
  margin: 1rem 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.copyright {
  text-align: center;
  margin-top: 1.1rem;
  font-size: 0.84rem;
  opacity: 0.9;
}

.admin-link {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 0.6rem 0.9rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.hidden {
  display: none;
}

@media (max-width: 960px) {
  .hero-content,
  .cards-4,
  .cards-3,
  .profile-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    gap: 0.65rem;
  }
}
