/* ======= VARIABLES DE COLOR ======= */
:root {
  --bg-dark: #0b0f11;
  --bg-gradient: linear-gradient(180deg, #0b0f11 0%, #111518 100%);
  --neon-green: #00ff9d;
  --text-light: #e5e5e5;
  --text-muted: #9aa0a6;
  --border-glow: 0 0 10px rgba(0, 255, 157, 0.3);
  --transition: all 0.3s ease;
}

/* ======= RESET GENERAL ======= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-gradient);
  color: var(--text-light);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

/* ======= NAVBAR ======= */
.navbar {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 157, 0.2);
}

.nav-link {
  color: var(--text-light) !important;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--neon-green) !important;
}

/* ======= EFECTO NEÓN ======= */
.neon-text {
  color: var(--neon-green);
  text-shadow:
    0 0 0px var(--neon-green),
    0 0 0px var(--neon-green),
    0 0 0px var(--neon-green);
}

/* ======= HERO ======= */
.hero {
  height: 90vh;
  background: radial-gradient(circle at top left, rgba(0, 255, 157, 0.05), transparent 60%),
              radial-gradient(circle at bottom right, rgba(0, 255, 157, 0.05), transparent 60%);
}

.hero h1 {
  font-weight: 700;
  letter-spacing: 1px;
}

.hero p {
  color: var(--text-muted);
}

/* ======= BOTONES ======= */
.btn-outline-success {
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: var(--border-glow);
  transition: var(--transition);
}

.btn-outline-success:hover {
  background-color: var(--neon-green);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.6);
}

/* ======= CARRUSEL ======= */
#proyectos {
  background: radial-gradient(circle at top left, rgba(0, 255, 157, 0.05), transparent 60%);
}

.carousel-inner img {
  object-fit: cover;
  height: 500px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(68%) sepia(98%) saturate(315%) hue-rotate(90deg) brightness(110%) contrast(100%);
  width: 3rem;
  height: 3rem;
}

.carousel-control-prev,
.carousel-control-next {
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  transform: scale(1.1);
}

/* ======= SERVICIOS ======= */
#servicios {
  background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
  position: relative;
  overflow: hidden;
}

#servicios::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 40%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0,255,157,0.1) 0%, transparent 70%);
  z-index: 0;
}

.service-card {
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(0, 255, 157, 0.1);
  border-radius: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.05);
  position: relative;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 157, 0.4);
  box-shadow: 0 0 25px rgba(0, 255, 157, 0.2);
}

.service-card .icon {
  font-size: 2.5rem;
}

.text-neon {
  color: #00ff9d;
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.7);
}

/* ======= SOBRE MÍ ======= */
#sobremi {
  background: radial-gradient(circle at center, #0a0a0a 0%, #000 100%);
  color: #d1d5db;
  position: relative;
  overflow: hidden;
}

#sobremi::before {
  content: "";
  position: absolute;
  bottom: -20%;
  right: 10%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 255, 157, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.sobre-mi-box {
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid rgba(0, 255, 157, 0.1);
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.05);
  max-width: 800px;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.sobre-mi-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0, 255, 157, 0.2);
}

.neon-text {
  color: #00ff9d;
  text-shadow: 0 0 12px rgba(0, 255, 157, 0.6);
}


/* ======= AJUSTES CARRUSEL ======= */

/* Bordes redondeados consistentes */
#carouselSnakeTech img {
  border-radius: 10px;
}

/* Ocultar carrusel en móviles y mostrar imagen estática */
@media (max-width: 768px) {
  #carouselSnakeTech {
    display: none;
  }
  .carousel-static {
    display: block !important;
  }
}

/* En pantallas grandes ocultar la versión estática */
@media (min-width: 769px) {
  .carousel-static {
    display: none !important;
  }
}

/* ======= CONTACTO ======= */
#contacto {
  background: linear-gradient(180deg, #000 0%, #0b0f11 100%);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

#contacto::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  width: 250px;
  height: 250px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0,255,157,0.1) 0%, transparent 70%);
  z-index: 0;
}

.contact-box {
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid rgba(0, 255, 157, 0.15);
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.05);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.contact-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0, 255, 157, 0.2);
}

/* Inputs */
.form-neon {
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(0, 255, 157, 0.2);
  color: var(--text-light);
  border-radius: 10px;
  padding: 12px;
  transition: var(--transition);
}

.form-neon:focus {
  outline: none;
  border-color: var(--neon-green);
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

/* Etiquetas */
.form-label {
  font-weight: 500;
  color: var(--neon-green);
}

/* Checkbox */
.form-check-input {
  accent-color: var(--neon-green);
  cursor: pointer;
}

.carousel-item img {
  width: 100%;
  height: 50vh; /* puedes ajustar: 60vh, 80vh, etc. */
  object-fit: cover; /* recorta sin deformar */
  object-position: center;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.4);
}

