:root {
  --primary: #1d4ed8;
  --secondary: #eff6ff;
  --accent: #f59e0b;
  --text: #2d1b0e;
  --bg: #fdf8f4;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(14px, 4vw, 16px);
  margin: 0;
  padding: 0;
}

h1, h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(20px, 4vw, 28px);
}

h2 {
  font-size: clamp(22px, 5vw, 32px);
}

section {
  padding: 16px 0;
}

.card {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

/* Radio oculto obligatorio */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Galería de imágenes pura CSS */
.gallery-container {
  width: 100%;
}

.gallery-main {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  border-radius: 12px;
  background-color: #f1f5f9;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease-in-out;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cambio de imagen activa */
#img-1:checked ~ .gallery-main .slide-1,
#img-2:checked ~ .gallery-main .slide-2,
#img-3:checked ~ .gallery-main .slide-3,
#img-4:checked ~ .gallery-main .slide-4 {
  opacity: 1;
  z-index: 10;
}

/* Miniaturas */
.thumbnails {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.thumbnails label {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  flex: 1;
  aspect-ratio: 1;
  transition: border-color 0.2s ease, transform 0.2s ease;
  background-color: #f1f5f9;
}

.thumbnails label:hover {
  transform: translateY(-2px);
}

.thumbnails label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Estado activo de la miniatura */
#img-1:checked ~ .thumbnails label[for="img-1"],
#img-2:checked ~ .thumbnails label[for="img-2"],
#img-3:checked ~ .thumbnails label[for="img-3"],
#img-4:checked ~ .thumbnails label[for="img-4"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.2);
}

/* Botón CTA principal */
.btn-cta {
  background-color: var(--primary);
  color: #ffffff !important;
  padding: 16px 40px;
  border-radius: 99px;
  font-weight: 700;
  font-size: clamp(16px, 4vw, 18px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  min-height: 44px;
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.3);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
  background-color: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.4);
}