:root {
  --color-accent: #00ffff;
  --color-warning: #ffaa00;
  --color-bg-dark: #0d0f1a;
  --color-bg: #101010;
  --color-light: #f5f5f5;
  --color-light-alt: #eeeeee;
  --color-paragraph: #cccccc;
  --color-border: #1f1f1f;
}


/* ==== RESET GLOBAL ==== */
html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 100px; /* Ajusta según la altura de tu header */
}


html, body {
  margin: 0 !important;
  padding: 0 !important;
  height: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Manrope', sans-serif;
  background: radial-gradient(circle at center, var(--color-bg-dark), #080808);
  position: relative;
}

main {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ==== HEADER RESPONSIVE ==== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: radial-gradient(circle at center, #0f111a, #050509);
  padding: 1.2rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.btn-header-wrapper {
  margin-left: 1rem;
}

.btn-header {
  padding: 0.4rem 1.1rem;
  font-size: 0.9rem;
  height: auto;
  line-height: 1;
  border-radius: 6px;
}

/* Estilo especial para "Contáctame" */
.special-link {
  color: var(--color-accent);
  font-weight: bold;
  border: 1px solid var(--color-accent);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  font-size: 1rem;
  text-decoration: none;
}

.special-link:hover {
  background-color: var(--color-warning);
  color: #000 !important; /* Forzamos el negro */
  border-color: var(--color-warning);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-accent);
  text-decoration: none;
  transition: transform 0.2s ease;
}
.logo:hover {
  transform: scale(1.05);
}
.logo img {
  width: 36px;
  height: 36px;
}

/* Texto degradado */
.gradient-text {
  background: linear-gradient(to right, var(--color-accent), var(--color-warning));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* NAV DESKTOP */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: var(--color-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--color-warning);
}

/* CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  color: #000 !important;
  font-weight: bold;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  height: 48px;
  line-height: 1;
}
.btn-cta:hover {
  background-color: var(--color-warning);
  color: #000;
}

.cta-final {
  padding: 5rem 2rem;
  text-align: center;
  background: radial-gradient(circle at center, var(--color-bg-dark), #080808); /* Igual que body */
  color: var(--color-light);
  border-top: 1px solid var(--color-border);
}



.cta-titulo {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--color-accent), var(--color-warning));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-texto {
  font-size: 1.1rem;
  color: #ccc;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.cta-botones {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-final .btn-cta,
.cta-final .btn-secondary {
  margin-top: 1rem;
}

/* ==== HAMBURGUER MENU ==== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #f0f0f0;
  border-radius: 2px;
  transition: 0.3s;
}
.nav-toggle {
  display: none;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    z-index: 102;
    margin-left: auto;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0f111a;
    display: none;
    flex-direction: column;
    padding: 1rem 2rem;
    animation: fadeIn 0.3s ease-in-out;
    z-index: 101;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links li {
    width: 100%;
    text-align: left;
  }

  .nav-toggle:checked + .hamburger + .nav {
    display: flex;
  }

  .nav-links a,
  .special-link {
    padding: 0.8rem 0;
    display: block;
    width: 100%;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Asegura centro vertical si necesario */
    width: 100%;             /* Ocupa el ancho disponible */
    padding: 0 1rem;         /* Espaciado lateral controlado */
    box-sizing: border-box;
  }
  
  .btn-cta,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    text-align: center;
    margin: 0 auto; /* 🔥 este fuerza el centrado horizontal */
  }
  
  

  .footer-text,
  .footer-brand {
    font-size: 0.9rem;
  }

  .social-icons img {
    width: 24px;
    height: 24px;
  }
}

/* ==== FOOTER ==== */
.footer {
  margin-top: 3rem;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid #2d2d2d;
  background-color: #0a0a0a;
}

.footer-text {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 0.5rem;
}

.footer-brand {
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-accent);
}

.footer-brand span {
  background: linear-gradient(to right, var(--color-accent), var(--color-warning));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.social-icons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-icons img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
  filter: brightness(1.2);
}

.social-icons img:hover {
  transform: scale(1.2);
  filter: brightness(2);
}

.footer-line {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-warning), var(--color-accent));
  background-size: 200% 100%;
  animation: lineMove 4s linear infinite;
}

@keyframes lineMove {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
