* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #0f1115;
  color: #ffffff;
  line-height: 1.6;
}

/* BOTÓN WHATSAPP */
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
}

.btn-whatsapp:hover {
  background: #1ebd5a;
}
/* HERO CON FONDO */
.hero-bg { 
 height: 90vh;
 background-image: url("/img/fondo.png");
 display: flex; 
 align-items: center;
 padding: 0 10%; position: relative; 
 background-position: center 55%;
}


/* Oscurecer un poco el fondo para mejor lectura */
/* Degradado inferior */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 17, 21, 0) 55%,
    #0F1115 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 500px;
}

.hero-content h1 {
  font-size: 42px;
  margin-bottom: 25px;
}

.btn-contacto {
  display: inline-block;
  background: #9ca3af; /* plomo */
  color: #111;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-contacto:hover {
  background: #d1d5db;
}

.hero-subtext {
  margin-top: 20px;
  font-size: 15px;
  color: #e5e7eb;
  line-height: 1.5;
}



/* ABOUT - SOBRE NOSOTROS */
.about {
  padding: 80px 10%;
  background-color: #0F1115;
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  font-size: 32px;
  margin-bottom: 30px;
}

.about p {
  color: #cfcfcf;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .about {
    padding: 60px 6%;
  }

  .about h2 {
    font-size: 26px;
  }

  .about p {
    font-size: 15px;
  }
}





/* WHY */
.why {
  padding: 80px 10%;
  text-align: center;
}

.why h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}


.why-card {
  background: #161a22;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #222;
}

.why-card h4 {
  color: #25D366;
  margin-bottom: 10px;
}

/* PROJECTS */
/* PROJECTS - VIDEOS */
.projects {
  padding: 80px 10%;
}

.projects h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 32px;
}

.projects-videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.video-card {
  background: #161a22;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #222;
}

.video-card video {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.video-card video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}


.video-card p {
  color: #cfcfcf;
  font-size: 15px;
  line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .projects-videos {
    grid-template-columns: 1fr;
  }
}


/* CTA */
.cta {
  padding: 80px 10%;
  text-align: center;
  background: radial-gradient(circle at top, #1a1f2b, #0f1115);
}

.cta h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.cta p {
  color: #cfcfcf;
  margin-bottom: 30px;
}
/* CTA WHATSAPP LOGO */
.cta-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 25px;
}

.cta-whatsapp img {
  width: 70px;
  height: 70px;
  transition: transform 0.3s ease;
}

.cta-whatsapp:hover img {
  transform: scale(1.15);
}


/* FOOTER */
footer {
  padding: 20px;
  text-align: center;
  color: #777;
  font-size: 14px;
}






/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float img {
  width: 34px;
  height: 34px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.45);
}


/* =====================================
   AJUSTES GENERALES MOBILE
===================================== */

@media (max-width: 768px) {

  body {
    font-size: 15px;
  }

  section {
    padding-left: 6%;
    padding-right: 6%;
  }

  h2 {
    font-size: 26px;
  }
}


/* =====================================
   HERO MOBILE – IMPACTO VISUAL
===================================== */

@media (max-width: 768px) {

  .hero-bg {
    position: relative;
    height: 100vh;
    padding: 0 7%;

    background-image: url("/img/fondo-vertical.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;

    animation: heroMove 20s ease-in-out infinite alternate;
    overflow: hidden;
  }

  /* Blur general del fondo */
  .hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    background: rgba(255, 255, 255, 0.06);
    z-index: 1;
  }

  /* Difuminado inferior sin línea */
  .hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(15, 17, 21, 0) 50%,
      rgba(15, 17, 21, 0.9) 85%,
      #0F1115 100%
    );
    z-index: 2;
  }

  .hero-content {
    position: relative;
    z-index: 3;
    max-width: 100%;
    text-align: left;
  }

  .hero-content h1 {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
  }

  .hero-subtext {
    margin-top: 17px;
    font-size: 16px;
    color: #0e0f0f;
  }

  .btn-contacto {
    margin-top: 20px;
    background: #9ca3af;
    color: #fff;
    padding: 16px 34px;
    font-size: 16px;
    border-radius: 10px;
  }

  .btn-contacto:active {
    background: #9ca3af;
    color: #111;
  }
}


/* =====================================
   WHY & PROJECTS MOBILE
===================================== */

@media (max-width: 768px) {

  .why {
    padding: 60px 6%;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .why-card {
    padding: 24px;
  }

  .projects {
    padding: 60px 6%;
  }

  .projects h2 {
    font-size: 26px;
  }

  .video-card {
    padding: 20px;
  }
}


/* =====================================
   CTA MOBILE
===================================== */

@media (max-width: 768px) {

  .cta {
    padding: 70px 6%;
  }

  .cta h2 {
    font-size: 26px;
    line-height: 1.3;
  }

  .cta-whatsapp img {
    width: 60px;
    height: 60px;
  }
}


/* ANIMACIÓN SUAVE DEL HERO */
@keyframes heroMove {
  0% {
    background-position: center top;
    transform: scale(1);
  }
  100% {
    background-position: center bottom;
    transform: scale(1.1);
  }
}
