/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #0f0f14;
  color: #fff;
  line-height: 1.6;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container.small {
  max-width: 900px;
}

/* TITULOS */
h1,
h2,
h3 {
  letter-spacing: 0.5px;
}

/* BOTONES */
.btn {
  background: #ff4ecd;
  padding: 12px 25px;
  border-radius: 25px;
  color: white;
  text-decoration: none;
  transition: 0.3s ease;
  display: inline-block;
}

.btn:hover {
  background: #ff2fbf;
  transform: scale(1.05);
}

/* NAVBAR */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(15, 15, 20, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  position: relative; /* 🔥 IMPORTANTE para el menú */
}

.logo {
  color: #ff4ecd;
  font-size: 1.5rem;
}

/* LINKS DESKTOP */
.nav-links {
  display: flex; /* 🔥 esto te faltaba */
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  position: relative;
  transition: 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: #ff4ecd;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* HAMBURGUESA */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: white;
  transition: transform 0.3s ease;
}

.menu-toggle.active {
  transform: rotate(90deg);
}

/* MOBILE */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(10px);

    flex-direction: column;
    align-items: center;

    display: none;
    padding: 20px 0;
  }

  .nav-links a {
    margin: 12px 0;
    font-size: 1.1rem;
  }

  .nav-links.active {
    display: flex;
  }
}

/* HERO */
.hero {
  position: relative;
  height: 90vh;
  margin-top: 70px;
  background: url("https://images.unsplash.com/photo-1555066931-4365d14bab8c")
    center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 20, 0.75);
}

.hero-content {
  position: relative;
  max-width: 900px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero p {
  margin-bottom: 20px;
  color: #ccc;
}

/* SECCIONES GENERALES */
section {
  padding: 80px 0;
}

/* SERVICES */
.services {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.services::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #0f0f14);
}

.services h2 {
  font-size: 1.6rem;
}

@media (max-width: 768px) {
  .services h2 {
    font-size: 1.4rem;
  }
}

.section-intro {
  max-width: 600px;
  margin: 10px auto 40px;
  color: #aaa;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: #1a1a22;
  padding: 25px;
  border-radius: 15px;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 35px rgba(255, 78, 205, 0.25);
}

/* DEGRADADO */
.services::after {
  content: "";
  position: absolute;
  bottom: -1px;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #cd11b4);
}

.services p {
  color: white;
  margin-top: 20px;
}

/* BENEFITS */
.benefits {
  background: #14141c;
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

/* PROCESS */
.process {
  background: #f8f8fb;
  color: #333;
  text-align: center;
}

.process p {
  margin-top: 20px;
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.step {
  max-width: 220px;
}

.step span {
  display: inline-block;
  background: #ff4ecd;
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 40px;
  margin-bottom: 10px;
  font-weight: bold;
}

/* ABOUT */
.about {
  background: #f8f8fb;
  color: #333;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}

.about img {
  width: 100%;
  max-width: 280px;
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
    padding: 0 20px; /* 🔥 clave */
  }
}

/* PORTFOLIO */
.portfolio {
  text-align: center;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.project img {
  width: 100%;
  border-radius: 10px;
  transition: 0.3s;
}

.project img:hover {
  transform: scale(1.03);
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #ff4ecd, #7a5cff);
  text-align: center;
}

.cta h2 {
  margin-bottom: 15px;
}

.cta p {
  margin-bottom: 20px;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px 0;
  background: #0a0a0f;
  color: #aaa;
}

/* WHATSAPP */
.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: white;
  font-size: 24px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: 0.3s ease;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.whatsapp-btn::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.5);
  animation: pulse 1.5s infinite;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== FIX RESPONSIVE SERVICIOS ===== */
@media (max-width: 768px) {
  section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-intro {
    padding: 0 10px;
    font-size: 0.95rem;
  }

  .cards {
    grid-template-columns: 1fr; /* 1 sola columna */
    gap: 15px;
  }

  .card {
    padding: 20px;
    margin-bottom: 10px;
  }

  .card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .card p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
