:root {
  --green: #03747c;
  --green-dark: #025a61;
  --text: #333;
  --muted: #666;
  --bg: #f4f4f4;
  --white: #fff;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--green);
}

img {
  max-width: 100%;
  height: auto;
}

header.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.logo img {
  height: 48px;
  width: auto;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

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

nav a:hover,
nav a[aria-current="page"] {
  color: var(--green);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.hero {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.hero img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

/* Banner rotatorio (portada) */
.banner {
  position: relative;
  height: min(300px, 42vw);
  min-height: 180px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
  pointer-events: none;
}

.banner-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.banner-nav:hover {
  background: rgba(3, 116, 124, 0.85);
}

.banner-prev {
  left: 0.5rem;
}

.banner-next {
  right: 0.5rem;
}

.banner-dots {
  position: absolute;
  bottom: 0.65rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  z-index: 2;
}

.banner-dots button {
  width: 0.55rem;
  height: 0.55rem;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.banner-dots button.is-active {
  background: var(--green);
  transform: scale(1.2);
}

.panel {
  background: var(--white);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.panel h1,
.panel h2,
.panel h3 {
  margin-top: 0;
  color: var(--green-dark);
}

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

@media (min-width: 700px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-body {
  padding: 1rem;
  flex: 1;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--green-dark);
}

.card p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.split {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 700px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

footer.site-footer {
  background: #2a2a2a;
  color: #ccc;
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: 0.9rem;
}

footer a {
  color: #9fd9de;
}
