:root {
  --background: #f7f8fb;
  --foreground: #22305c;
  --card: #ffffff;
  --primary: #1f3a8a;
  --primary-foreground: #ffffff;
  --secondary: #eef1f8;
  --muted-foreground: #6b7392;
  --border: #dfe3ee;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--background);
}

body {
  font-family: "Nunito Sans", system-ui, -apple-system, sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
.badge,
.btn,
.website p {
  font-family: "Poppins", system-ui, sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Encabezado */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(247, 248, 251, 0.85);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.btn-outline {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
}

.btn-outline:hover {
  background: var(--secondary);
}

.btn-primary {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
}

/* Contenido */
.main {
  flex: 1;
  padding-top: 24px;
  padding-bottom: 40px;
}

/* Slider */
.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.slides {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.slide.is-active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--primary);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(34, 48, 92, 0.7), rgba(34, 48, 92, 0.2), transparent);
}

.slide-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  max-width: 640px;
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #ffffff;
}

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--foreground);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6px);
}

.badge svg {
  color: var(--primary);
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--foreground);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6px);
  transition: opacity 0.2s;
}

.nav-btn:hover {
  opacity: 0.85;
}

.nav-btn.prev {
  left: 12px;
}

.nav-btn.next {
  right: 12px;
}

.dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  height: 10px;
  width: 10px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s;
}

.dot.is-active {
  width: 32px;
  background: #ffffff;
}

/* Mensaje */
.message {
  max-width: 640px;
  margin: 32px auto 0;
  text-align: center;
}

.message h1 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.message p {
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted-foreground);
}

/* Pie de página */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(238, 241, 248, 0.5);
  padding: 32px 0;
}

.contacts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
}

.contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s;
}

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

.contacts svg,
.address svg,
.website svg {
  color: var(--primary);
  flex-shrink: 0;
}

.address {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
}

.website {
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.website p {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
}

.website span {
  font-weight: 400;
  color: var(--muted-foreground);
}

.copyright {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--muted-foreground);
}

/* Responsive */
@media (min-width: 640px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .logo img {
    height: 64px;
  }

  .btn {
    padding: 10px 20px;
  }

  .slides {
    aspect-ratio: 21 / 9;
  }

  .badge {
    font-size: 14px;
  }
}
