/* Reset y base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Roboto', sans-serif;
  color: #fff;
  background: #000;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Contenedor general */
.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2ecc71;
  margin-left: 1rem; /* Ajuste: espacio izquierdo */
}

/* NAV LINKS */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2ecc71;
  transition: width 0.3s;
}
.nav-links a:hover::after {
  width: 100%;
}

/* BOTÓN PRESUPUESTO */
.btn-nav {
  background: #2ecc71;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s;
}
.btn-nav:hover {
  background: #27ae60;
}

/* MENU MÓVIL */
.mobile-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 1rem; /* Ajuste: espacio derecho */
}
.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }
  .btn-nav {
    display: none;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0,0,0,0.9);
    flex-direction: column;
    width: 200px;
    padding: 1rem;
  }
  .nav-links.open {
    display: flex;
  }
}

/* HERO */
#hero {
  background: url('../img/hero.jpg') center/cover no-repeat;
  padding: 8rem 0 4rem; /* espaciado suficiente sin 100vh */
  margin-top: 70px;     /* compensar header fijo */
  text-align: center;
}
#hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
#hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}
.btn-hero {
  background: #2ecc71;
  color: #000;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}

/* SECTIONS */
.section {
  padding: 4rem 0;
}
.section h2 {
  font-size: 2rem;
  color: #2ecc71;
  text-align: center;
  margin-bottom: 2rem;
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 2rem;
}
.card {
  background: rgba(255,255,255,0.05);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s, background 0.3s;
}
.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.card:hover {
  background: rgba(46,204,113,0.2);
  transform: translateY(-5px);
}

/* ABOUT */
#about p {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* CONTACT */
#contact form {
  display: grid;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}
#contact input,
#contact textarea {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
}
#contact button {
  background: #2ecc71;
  color: #000;
  font-weight: 700;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.whatsapp {
  text-align: center;
  margin-top: 1rem;
}
.whatsapp a {
  color: #2ecc71;
  font-weight: 700;
}

/* FOOTER */
footer {
  background: rgba(0,0,0,0.8);
  padding: 2rem 0;
  text-align: center;
}

/* Quitar scroll duplicado */
html, body {
  overflow-y: auto;
}
body > * {
  overflow: visible;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #2ecc71;
  color: #000;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  animation: bounce 2s infinite;
  transition: background 0.3s;
}

.btn-contact i {
  font-size: 1.5rem;
}

.btn-contact.instagram-btn {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
}

.btn-contact:hover {
  filter: brightness(1.1);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}