:root {
  --bg-dark: #111;
  --bg-panel: #1f1f1f;
  --accent: #009688;
  --text-light: #eee;
  --text-muted: #bbb;
}

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

body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
}
/* Logo responsive en nav */
.logo-desktop {
    display: inline;
    height: 50px;
    width: auto;
    margin-left: 2rem;
}
.logo-mobile {
    display: none;
    height: 50px;
    width: auto;
    margin-left: 2rem;
}

@media (max-width: 600px) {
    .logo-desktop {
        display: none !important;
    }
    .logo-mobile {
        display: inline !important;
    }
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.flex {
  display: flex;
  align-items: center;
}

header {
  position: fixed;
  width: 100%;
  background: var(--bg-panel);
  padding: 1rem 0;
  z-index: 10;
}

.logo {
  flex: 1; font-size: 1.5rem; font-weight: bold; color: var(--accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text-light);
  transition: color .3s;
}

nav a:hover {
  color: var(--accent);
}

#hero {
  display: flex;
  min-height: 100vh;
  align-items: center;
  padding-top: 80px; /* altura header */
}

.hero-content {
  justify-content: space-between;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: .5rem;
}

.hero-text h2 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-text p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #111;
  padding: .75rem 1.5rem;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  transition: background .3s;
}

.btn:hover {
  background: #00796b;
}

.hero-img img,
#about .about-content img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,.7);
  transition: transform .3s;
}

.hero-img img:hover,
#about .about-content img:hover {
  transform: scale(1.05);
}

#about {
  padding: 4rem 0 0 0;
}

.about-content {
  gap: 2rem;
}

#projects {
  padding: 0m 0;
}

.project-card {
  background: var(--bg-panel);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,.5);
  flex: 1;
  margin: .5rem;
  transition: transform .3s;
}

.project-card:hover {
  transform: translateY(-10px);
}

#contact {
  padding: 4rem 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
}

input, textarea {
  padding: 1rem;
  background: #222;
  border: none;
  border-radius: 8px;
  color: var(--text-light);
}

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

/* Icono hamburguesa Bootstrap en modo oscuro */
.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
