:root {
  --color-bg: #ffffff;
  --color-ink: #1c1f26;
  --color-muted: #6b6f78;
  --color-accent: #C81F48;
  --color-accent-text: #ffffff;
  --color-border: #e4e2dc;

  --content-width: 620px;
  --side-padding: clamp(24px, 6vw, 96px);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 0;   /* nuevo, crea el contexto de apilamiento */
  overflow-x: hidden;
}

.ring {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;   /* nuevo */
}

.logo img {
  display: block;
  height: 10em;   /* ajusta esta altura a tu gusto */
  width: auto;
}

header {
  padding: clamp(20px, 4vh, 40px) var(--side-padding) 0;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 var(--side-padding);
}

.hero {
  max-width: var(--content-width);
  animation: rise 0.6s ease-out;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  line-height: 1.25;
  margin: 0 0 20px;
  max-width: 20ch;
}

p.description {
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 50ch;
  margin: 0 0 40px;
}

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

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 6px;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.85;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-accent-text);
}

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

.contact-note {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin: 0;
  flex-basis: 100%;
}

footer {
  padding: clamp(16px, 3vh, 32px) var(--side-padding);
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.8rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    animation: none;
  }
}

@media (max-width: 560px) {
  .ring {
    display: none;
  }

  .actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}