/* =========================
   RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #0d0d0d;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* =========================
   NAVBAR & NAVIGATION
========================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-right-container {
  display: flex;
  align-items: center;
  gap: 25px;
}

.logo {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 2px;
  color: #cfa14a;
}

.navbar nav a {
  color: #fff;
  margin: 0 15px;
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.navbar nav a:hover { color: #cfa14a; }

.socials a {
  color: #fff;
  margin-left: 15px;
  font-size: 16px;
  transition: color 0.3s, transform 0.3s;
  display: inline-block;
}

.socials a:hover { 
  color: #cfa14a; 
  transform: translateY(-2px);
}

/* --- Menu Toggle Minimalista (2 barras) --- */
.menu-toggle {
  display: none;
  width: 25px;
  height: 14px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1100;
  transition: transform 0.3s ease;
}

.menu-toggle .bar {
  width: 100%;
  height: 1.5px;
  background-color: #cfa14a;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  transform: translateY(-6px) rotate(-45deg);
}

/* =========================
   HERO SECTION
========================= */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}

.hero h1 {
  font-size: clamp(40px, 10vw, 100px);
  letter-spacing: 8px;
  font-weight: 200;
  text-transform: uppercase;
}

.section { padding: 120px 10%; }

/* =========================
   PROJECTS GRID
========================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16 / 9;
  background: #111;
}

.project img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1), filter 0.8s;
}

.project:hover img { 
  transform: scale(1.05); 
  filter: grayscale(0%);
}

.project .overlay {
  position: absolute; inset: 0;
  background: rgba(207, 161, 74, 0.15);
  display: flex; justify-content: center; align-items: center;
  opacity: 0; transition: opacity 0.4s;
}

.project:hover .overlay { opacity: 1; }

/* =========================
   ABOUT & ACHIEVEMENTS (Versión Final)
========================= */
.about { 
  display: flex; 
  gap: 80px; 
  align-items: flex-start; 
}

.about-text { flex: 1.2; }

.about-photo { 
  flex: 0.8; 
  position: relative;
}

.about-photo::after {
  content: "";
  position: absolute;
  top: 20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(207, 161, 74, 0.3);
  z-index: -1;
}

.about-photo img { 
  width: 100%; 
  border-radius: 2px;
  filter: grayscale(100%);
  transition: filter 0.6s ease;
}

.about-photo img:hover { filter: grayscale(0%); }

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 300;
}

.about-text h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #cfa14a;
  margin: 40px 0 20px 0;
  display: block;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.info-card {
  border-left: 1px solid #cfa14a;
  padding: 10px 0 10px 20px;
  transition: transform 0.3s ease;
}

.info-card:hover { transform: translateX(8px); }

.info-card h4 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 5px;
}

.info-card p {
  font-size: 0.85rem;
  color: #888;
}

/* =========================
   CONTACT FORM
========================= */
.contact-form {
  max-width: 600px;
  margin: 40px auto 0;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #333;
  margin-bottom: 30px;
  padding: 15px 0;
  color: #fff;
  font-family: inherit;
  transition: border-color 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-bottom-color: #cfa14a;
}

.contact-form button {
  background: #cfa14a;
  color: #000;
  border: none;
  padding: 18px 40px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-form button:hover {
  background: #fff;
  letter-spacing: 4px;
}

/* =========================
   ANIMATIONS (Reveal)
========================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE (Mobile First)
========================= */
@media (max-width: 900px) {
  .about { flex-direction: column-reverse; gap: 60px; }
  .about-photo { width: 100%; max-width: 400px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .navbar { padding: 0 20px; }
  .menu-toggle { display: flex; }
  
  .navbar nav {
    display: flex !important;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%; /* Pantalla completa en móvil para impacto */
    height: 100vh;
    background: #0d0d0d;
    flex-direction: column;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1050;
    box-shadow: -10px 0 20px rgba(0,0,0,0.5);
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .navbar nav.active { right: 0; }

  .navbar nav a {
    font-size: 1rem; /* Más pequeño es más elegante */
    font-weight: 300;
    margin: 15px 0;
    opacity: 0.8;
    transition: opacity 0.3s;
  }
  
  .navbar nav a:hover {
    opacity: 1;
    color: #cfa14a;
  }

  .info-grid { grid-template-columns: 1fr; gap: 20px; }
  
  .hero h1 { font-size: 45px; letter-spacing: 4px; }
}