*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-main: #050816;
  --bg-panel: #080e1f;
  --bg-panel-soft: #0d1428;
  --accent: #4fd4ff;
  --accent-soft: rgba(79, 212, 255, 0.3);
  --text-main: #f5f7ff;
  --text-soft: #c1c8ff;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 0 20px rgba(3, 12, 40, 0.8);
  --shadow-glow: 0 0 26px rgba(79, 212, 255, 0.4);
}

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1c2840 0, #050816 40%, #02040d 100%);
  color: var(--text-main);
  line-height: 1.5;
  padding: 16px;
  position: relative;
  overflow-x: hidden;
}

/* Fondo con estrellitas */
.bg-stars {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 20%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 80% 30%, rgba(79,212,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 10% 70%, rgba(79,212,255,0.4), transparent);
  opacity: 0.35;
  pointer-events: none;
  z-index: -2;
}

.bg-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(79, 212, 255, 0.15), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(190, 115, 255, 0.13), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

/* Topbar */
.topbar {
  max-width: 1000px;
  margin: 0 auto 20px auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(5, 10, 26, 0.88);
  border: 1px solid rgba(79, 212, 255, 0.35);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 10px;
  backdrop-filter: blur(10px);
  z-index: 5;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--text-soft);
}

.nav {
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-soft);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.nav a:hover {
  border-color: var(--accent-soft);
  color: var(--accent);
}

/* Layout principal */
main {
  max-width: 1000px;
  margin: 0 auto;
}

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  margin-bottom: 24px;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(6, 10, 30, 0.95), rgba(4, 9, 24, 0.98));
  border: 1px solid var(--accent-soft);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.hero-text {
  flex: 1 1 260px;
}

.tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 6px;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(79, 212, 255, 0.5);
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
  text-decoration: none;
}

.btn.primary {
  background: var(--accent);
  color: #020516;
  font-weight: 600;
  box-shadow: var(--shadow-glow);
}

.btn.primary:hover {
  filter: brightness(1.1);
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent-soft);
}

.btn.ghost:hover {
  background: rgba(79, 212, 255, 0.08);
}

.btn.small {
  font-size: 0.8rem;
  padding: 6px 12px;
}

/* Imagen hero */
.hero-img-box {
  flex: 0 1 260px;
  border-radius: var(--radius-lg);
  padding: 10px;
  border: 1px solid rgba(79, 212, 255, 0.4);
  background: radial-gradient(circle at top, rgba(79, 212, 255, 0.16), rgba(3, 7, 18, 0.96));
  box-shadow: var(--shadow-glow);
}

.hero-img-box img {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

/* Paneles */
.panel {
  margin-bottom: 24px;
  padding: 20px 18px;
  border-radius: var(--radius-lg);
  background: rgba(6, 10, 30, 0.96);
  border: 1px solid rgba(101, 134, 255, 0.45);
  box-shadow: var(--shadow-soft);
}

.panel-soft {
  background: var(--bg-panel-soft);
  border-color: rgba(79, 212, 255, 0.35);
}

.panel h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.panel-sub {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 16px;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.card {
  background: rgba(4, 8, 22, 0.95);
  border-radius: var(--radius-md);
  padding: 14px 13px;
  border: 1px solid rgba(79, 212, 255, 0.35);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.7);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Quote */
.quote-block {
  margin-top: 6px;
  padding: 12px 13px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at left, rgba(79, 212, 255, 0.18), rgba(5, 10, 30, 0.98));
  border: 1px solid rgba(79, 212, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quote-text {
  font-size: 0.95rem;
  font-style: italic;
}

/* Galería */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.gallery-item {
  background: rgba(7, 13, 30, 0.96);
  border-radius: var(--radius-md);
  padding: 10px;
  border: 1px solid rgba(101, 134, 255, 0.45);
}

.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 10px;
  margin-bottom: 6px;
}

.gallery-item figcaption {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Nosotras */
.duo {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}

.duo-text {
  flex: 1 1 260px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.duo-text h3 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.duo-text p + p {
  margin-top: 6px;
}

.duo-img {
  flex: 0 1 230px;
  border-radius: var(--radius-md);
  padding: 8px;
  border: 1px solid rgba(79, 212, 255, 0.4);
  background: radial-gradient(circle at top, rgba(79, 212, 255, 0.13), rgba(3, 7, 18, 0.98));
}

.duo-img img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.memory-list h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.memory-list ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.memory-list li + li {
  margin-top: 3px;
}

/* Footer */
.footer {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-soft);
  padding: 12px 0 4px;
  opacity: 0.9;
}

.blink {
  animation: blink 1s steps(1, end) infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.1%, 100% { opacity: 0; }
}

/* Responsive */
@media (max-width: 650px) {
  body {
    padding: 10px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 16px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero {
    padding: 18px 14px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }
}
