@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');
:root {
    --nav-height: 100px;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 100%);
  color: #eee;
  line-height: 1.6;
}

/* HEADER */
header {
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 10;
}


.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
}

.logo {
  width: 60px;
  height: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #eee;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ff8c00;
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 80vh;
  background: radial-gradient(circle at center, #222 0%, #0d0d0d 80%);
}

.hero-content h1 {
  font-size: 3rem;
  color: #ffb84d;
}

.hero-content p {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #ccc;
}

/* SECTIONS */
section {
    padding: 4rem 10%;
    scroll-margin-top: var(--nav-height);
}

h2 {
  color: #ff8c00;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.about p {
  max-width: 900px;
  margin: 1rem auto;
  text-align: justify;
  color: #ccc;
}

/* PORTFOLIO */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.project-card {
    background: #1f1f1f;
    padding: 1rem;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 300px;
}

    .project-card img {
        width: 100%;
        border-radius: 8px;
        display: block;
        transition: transform 0.4s ease;
    }

    .project-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 20px rgba(255, 140, 0, 0.3);
    }

    .project-card:hover img {
        transform: scale(1.05);
    }

/* === Sección del equipo === */
.team {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 60px;
}

.team-member {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    width: 280px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .team-member:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
    }

    .team-member img {
        width: 100%;
        height: 280px;
        object-fit: cover;
        border-radius: 10px;
        margin-bottom: 15px;
    }

    .team-member h3 {
        color: #ff8c00;
        margin-bottom: 5px;
    }

    .team-member p {
        color: #ddd;
        font-size: 0.95rem;
    }

/* Responsive */
@media (max-width: 900px) {
    .team {
        flex-direction: column;
        align-items: center;
    }

    .team-member {
        width: 80%;
    }
}

/* CONTACT */
.contact {
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 2rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  background: #2a2a2a;
  color: #eee;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

.contact-form button {
  align-self: center;
  padding: 0.8rem 2rem;
  background: #ff8c00;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #e67e00;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid #333;
  font-size: 0.9rem;
  color: #777;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    header {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 5px;
    }

        nav ul li {
            margin: 5px 10px;
        }

    .logo {
        width: 60px; /* más chico en mobile */
        margin-bottom: 5px;
    }

    /* Si el logo está dentro del header junto al menú */
    header img {
        height: 50px;
    }
}