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

body {
  font-family: 'Roboto', sans-serif;
  background-color: #0a0a0a;
  color: #e0e0e0;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 12px 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(8px);
  transition: background 0.3s, padding 0.3s;
  z-index: 1000;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  padding: 10px 30px;
}

.logo {
  color: #00ffff;
  font-size: 1.3rem;
  font-weight: 600;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: #e0e0e0;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #00ffff;
}

/* ===== Banner ===== */
.banner {
  position: relative;
  overflow: hidden;
  height: 75vh;
  background: linear-gradient(135deg, #001f1f, #0a0a0a);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.banner-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1.2s ease forwards;
}

.banner-content h1 {
  font-size: 1.9rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: #00ffff;
  text-shadow: 0 0 10px #00cccc, 0 0 20px #00ffff;
  animation: glowPulse 3s ease-in-out infinite;
}

.banner-content p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #b0b0b0;
  text-shadow: 0 0 5px #00cccc;
}

.btn {
  background: #00ffff;
  color: #0a0a0a;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.3s;
}

.btn:hover {
  background: #00cccc;
  transform: scale(1.05);
  box-shadow: 0 0 10px #00ffff;
}

/* ===== Canvas de fondo sináptico ===== */
#synapse-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,255,255,0.05), transparent 60%);
  z-index: 1;
  pointer-events: none;
}

/* ===== Animaciones ===== */
@keyframes glowPulse {
  0%, 100% {
    text-shadow: 0 0 10px #00cccc, 0 0 20px #00ffff, 0 0 30px #00cccc;
  }
  50% {
    text-shadow: 0 0 20px #00ffff, 0 0 40px #00cccc, 0 0 60px #00ffff;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ===== Secciones ===== */
.section {
  padding: 70px 10%;
  text-align: center;
}

.section h2 {
  color: #00ffff;
  margin-bottom: 20px;
  font-size: 1.9rem;
}

.section p {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  color: #ccc;
}

/* ===== Sobre mí ===== */
.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.doctor-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #00ffff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.about-text {
  max-width: 600px;
  text-align: left;
}

.about-text p {
  margin-bottom: 15px;
}

/* ===== Cards (Publicaciones) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.card {
  background: #121212;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px #00ffff;
}

.card h3 {
  color: #00ffff;
  margin-bottom: 10px;
}

/* ===== Contacto ===== */
.contacto form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contacto input,
.contacto textarea {
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #1a1a1a;
  color: #e0e0e0;
  font-size: 0.95rem;
}

.contacto button {
  background: #00ffff;
  color: #0a0a0a;
  border: none;
  padding: 10px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  font-size: 0.95rem;
}

.contacto button:hover {
  background: #00cccc;
  transform: scale(1.05);
  box-shadow: 0 0 10px #00ffff;
}

/* ===== Footer ===== */
footer {
  background: #0f0f0f;
  text-align: center;
  padding: 20px;
  color: #777;
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .navbar {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 25px;
  }

  nav ul {
    flex-direction: column;
    background: rgba(10, 10, 10, 0.95);
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 20px;
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  .banner {
    height: 70vh;
  }

  .banner-content h1 {
    font-size: 1.6rem;
  }

  .banner-content p {
    font-size: 0.9rem;
  }
}
