/* =========================
RESET
========================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial, sans-serif;
}

body{
  background:#f5f7fa;
  color:#1f2937;
}

/* =========================
HEADER
========================= */
.header{
  background:#111827;
  position:fixed;
  width:100%;
  top:0;
  z-index:1000;
}

.navbar{
  max-width:1200px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 18px;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}

.logo img{
  width:85px;
  height:85px;
}

.logo img:hover{
  transform:scale(1.05);
}

.logo span{
  color:#facc15;
  font-size:22px;
  font-weight:700;
  letter-spacing:.5px;
}



.menu{
  display:flex;
  list-style:none;
  gap:25px;
}

.menu a{
  color:white;
  text-decoration:none;
  font-weight:bold;
}

.menu a:hover{
  color:#facc15;
}

/* =========================
HERO
========================= */

.hero{
  min-height:100vh;
  background:linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,.15)), url("../img/hero.jpg");
  background-size:cover;
  background-position:center;
  display:flex;
  align-items:center;
  padding:80px 20px;
}

.hero-contenido{
  max-width:900px;
  margin:auto;
  text-align:center;
  color:white;
}

.hero h1{
  font-size:52px;
  margin-bottom:20px;
}

.hero p{
  font-size:22px;
  margin-bottom:30px;
}

.btn,
button{
  background:#facc15;
  color:#111827;
  padding:14px 24px;
  border:none;
  border-radius:30px;
  font-weight:bold;
  cursor:pointer;
  text-decoration:none;
}

/* =========================
SECCIONES
========================= */

section{
  padding:80px 20px;
  max-width:1200px;
  margin:auto;
}

h2{
  text-align:center;
  font-size:36px;
  margin-bottom:25px;
}

.nosotros p{
  text-align:center;
  max-width:800px;
  margin:auto;
  font-size:18px;
}

.beneficios{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
  margin-top:40px;
}

.beneficios div{
  background:white;
  padding:20px;
  border-radius:12px;
  box-shadow:0 5px 15px rgba(0,0,0,.08);
  text-align:center;
}

.grid-servicios{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:25px;
}

.card{
  background:white;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 8px 20px rgba(0,0,0,.1);
  transition:.3s;
}

.card:hover{
  transform:translateY(-8px);
}

.card img{
  width:100%;
  height:300px;
  object-fit:cover;
}

.card h3{
  padding:20px 20px 10px;
  font-size:22px;
}

.card p{
  padding:0 20px 25px;
  line-height:1.6;
}

.portafolio{
  text-align:center;
}

.galeria{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
  margin-top:35px;
}

.galeria div{
  background:#111827;
  color:white;
  padding:50px 20px;
  border-radius:14px;
  font-size:20px;
  font-weight:bold;
}

.pasos{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:25px;
}

.pasos div{
  background:white;
  padding:30px;
  border-radius:15px;
  box-shadow:0 5px 15px rgba(0,0,0,.08);
  text-align:center;
}

.pasos span{
  display:inline-block;
  background:#facc15;
  color:#111827;
  width:45px;
  height:45px;
  line-height:45px;
  border-radius:50%;
  font-weight:bold;
  margin-bottom:15px;
}

.contacto form{
  max-width:650px;
  margin:auto;
  display:flex;
  flex-direction:column;
  gap:15px;
}

input,
select,
textarea{
  padding:15px;
  border:1px solid #ddd;
  border-radius:10px;
  font-size:16px;
}

textarea{
  min-height:130px;
  resize:none;
}

.whatsapp{
  position:fixed;
  right:25px;
  bottom:25px;

  background:#25D366;
  color:white;

  display:flex;
  align-items:center;
  gap:10px;

  padding:14px 22px;

  border-radius:50px;

  text-decoration:none;

  font-weight:600;

  box-shadow:0 8px 20px rgba(0,0,0,.25);

  transition:.3s;
}

.whatsapp:hover{
  transform:translateY(-3px);
  background:#20ba5a;
}

.whatsapp span{
  font-size:24px;
}

.whatsapp p{
  margin:0;
}

/* =========================
PIE DE PÁGINA
========================= */

footer{
background:#0f172a;
color:#e5e7eb;
text-align:center;
padding:50px 20px;
border-top:4px solid #facc15;
}

footer h3{
color:#facc15;
font-size:28px;
margin-bottom:15px;
}

footer p{
margin:8px 0;
font-size:15px;
color:#cbd5e1;
}



footer a{
  color:#cbd5e1;
  text-decoration:none;
}

footer a:hover{
  color:#facc15;
}

/* =========================
REDES SOCIALES
========================= */

.redes{
display:flex;
justify-content:center;
align-items:center;
gap:15px;
flex-wrap:wrap;
margin:25px 0;
}

.redes a{
display:flex;
align-items:center;
justify-content:center;

min-width:130px;
padding:12px 20px;

background:rgba(255,255,255,0.05);

color:white;
text-decoration:none;
font-weight:600;

border:1px solid rgba(255,255,255,0.1);
border-radius:50px;

transition:all .3s ease;
}

.redes a:hover{
background:#facc15;
color:#111827;
transform:translateY(-3px);
box-shadow:0 8px 20px rgba(250,204,21,.35);
}

/* =========================
COPYRIGHT
========================= */

footer p:last-child{
margin-top:25px;
padding-top:20px;
border-top:1px solid rgba(255,255,255,0.1);
font-size:14px;
color:#94a3b8;
}

@media (max-width:1200px){

  .navbar{
    padding:10px 20px;
  }

}

@media(max-width:768px){

  .navbar{
    flex-direction:column;
    gap:10px;
    padding:10px;
  }

  .logo img{
    width:65px;
    height:65px;
  }

  .logo span{
    font-size:18px;
  }

  .menu{
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;
  }

  .hero{
    min-height:90%;
    padding:130px 20px 60px;
  }

  .hero-contenido{
    max-width:100%;
  }

  .hero h1{
    font-size:34px;
    line-height:1.2;
  }

  .hero p{
    font-size:18px;
    line-height:1.5;
  }

  .btn{
    display:inline-block;
    padding:12px 24px;
  }
}

@media(max-width:480px){

  .logo img{
    width:55px;
    height:55px;
  }

  .logo span{
    display:block;
    font-size:15px;
    font-weight:700;
  }

  .navbar{
    align-items:center;
  }

  .logo{
    align-self:center;
  }

  .hero{
    min-height:70%;
    padding:120px 20px 60px;
  }

  .hero h1{
    font-size:26px;
    line-height:1.2;
  }

  .hero p{
    font-size:16px;
    line-height:1.5;
  }

  .btn{
    display:inline-block;
    padding:8px 18px;
  }

  .menu{
    gap:8px;
    width:100%;
    justify-content:center;
  }

  .menu a{
    font-size:14px;
  }

  h2{
  text-align:center;
  font-size:32px;
  margin-bottom:25px;
}

}

@keyframes pulse{
  0%{
    box-shadow:0 0 0 0 rgba(37,211,102,.7);
  }

  70%{
    box-shadow:0 0 0 15px rgba(37,211,102,0);
  }

  100%{
    box-shadow:0 0 0 0 rgba(37,211,102,0);
  }
}

.whatsapp{
  animation:pulse 2s infinite;
}

#inicio,
#servicios,
#portafolio,
#contacto{
  scroll-margin-top:110px;
}