:root {
  --bg: #0f0f0f;
  --bg-card: #1a1a1a;
  --text: #e0e0e0;
  --muted: #b0b0b0;
  --accent: #ff8c00;
}

[data-theme="light"] {
  --bg: #f5f5f5;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --muted: #555;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", sans-serif;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  background: var(--bg);
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
}

nav {
  display: flex;
  gap: 1.5rem;
}

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

.header-actions {
  display: flex;
  gap: 1rem;
}

#themeToggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.btn-contact {
  background: var(--accent);
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4rem 2rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero-icon {
  font-size: 140px;
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

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

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

main {
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: auto;
}

/* SOBRE */
.about {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 12px;
  border: 2px solid var(--accent);
  text-align: center;
  margin-bottom: 3rem;
}

/* SERVICIOS */
.services {
  text-align: center;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 16px;
  position: relative;
  border: 2px solid transparent;
  transition: 0.4s;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255,140,0,0.15), transparent 60%);
  opacity: 0;
  transition: 0.4s;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* CONTACTO */
.contact {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  border: 2px solid var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border-radius: 6px;
  border: none;
}

.form-success {
  display: none;
  margin-top: 1.5rem;
  color: var(--accent);
  font-weight: 600;
}

/* ANIMACIONES */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}

/* ====== REVEAL ====== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ====== SERVICES PRO ====== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid transparent;
  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(255,140,0,0.2);
}

.service-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ====== VTUBERS ====== */
.vtubers {
  margin-top: 4rem;
  text-align: center;
}

.vtuber-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.vtuber-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 18px;
  border: 1px solid var(--accent);
}

.avatar {
  font-size: 4rem;
}

.status {
  margin: 0.5rem 0;
  font-weight: 600;
}

.live {
  color: #00ff88;
}

.offline {
  color: var(--muted);
}

.tags {
  font-size: 0.9rem;
  color: var(--muted);
}

.postulate {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ====== FORM SUCCESS ====== */
.form-success {
  display: none;
  margin-top: 1rem;
  color: #00ff88;
  font-weight: 600;
}

/* ====== MOBILE ====== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-icon {
    font-size: 100px;
    margin-top: 1rem;
  }
}

/* =======================
   VTUBERS
======================= */
.vtubers {
  text-align: center;
  margin-bottom: 3rem;
}

.vtuber-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.vtuber-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 18px;
  border: 2px solid transparent;
  transition: 0.4s;
}

.vtuber-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 15px 35px rgba(0,0,0,0.35);
}

.avatar {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.status {
  font-weight: 600;
  margin: 0.3rem 0;
}

.status.live {
  color: #00ff88;
}

.status.offline {
  color: var(--muted);
}

.tags {
  font-size: 0.9rem;
  color: var(--muted);
}

.vtuber-card.postulate {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* =======================
   MOBILE
======================= */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-icon {
    font-size: 100px;
    margin-top: 1rem;
  }

  .button-group {
    justify-content: center;
    flex-wrap: wrap;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  header {
    position: relative;
  }

  main {
    padding-top: 2rem;
  }
}

/* =======================
   DETALLES FINALES
======================= */

/* Títulos más elegantes */
h1, h2, h3 {
  letter-spacing: 0.5px;
}

/* Subrayado sutil en títulos */
h2 span {
  position: relative;
}

h2 span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: var(--accent);
  border-radius: 10px;
}

/* Hover links */
nav a {
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(255,140,0,0.5);
  transform: translateY(-2px);
}

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

p {
  line-height: 1.6;
}

main section {
  margin-bottom: 4rem;
}

body, header, .service-card, .contact, .about, .vtuber-card {
  transition: background 0.3s, color 0.3s;
}