/* =====================================================
   VARIABLES
===================================================== */
:root {
  --blue-dark: #004b8d;
  --blue-main: #007dc5;
  --blue-light: #00e5ff;
  --gray-light: #eaf4fb;
  --white: #ffffff;
  --text-dark: #333;
  --whatsapp: #25d366;
}

/* =====================================================
   RESET & GLOBAL
===================================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f7f9fb;
  color: var(--text-dark);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

/* =====================================================
   HERO HEADER
===================================================== */
.hero-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 6rem 1rem 5rem;
  background:
    radial-gradient(
      circle at 30% 40%,
      rgba(0, 229, 255, 0.18),
      rgba(0, 75, 141, 0.92) 45%,
      rgba(0, 45, 90, 1) 100%
    );
  color: var(--white);
  position: relative;
  text-align: center;
}

.hero-header::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: 0;
  width: 100%;
  height: 120px;
  background: var(--white);
  border-radius: 50% 50% 0 0;
}

/* =====================================================
   HERO VISUAL
===================================================== */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo {
  position: relative;
  display: inline-flex;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 10px 10px 10px rgba(0, 0, 0, 0.30);
}

.hero-photo img {
  width: 420px;
  max-width: 100%; 
  transform: scale(1.00);
  will-change: transform;
}

/* Fade overlay */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 45, 90, 0.75) 0%,
    rgba(0, 75, 141, 0.45) 40%,
    rgba(0, 125, 197, 0.15) 65%,
    rgba(0, 125, 197, 0) 85%
  );
}

/* =====================================================
   HERO CONTENT
===================================================== */
.hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-logo img {
  width: 30%;
  max-width: 220px;
  filter:
    drop-shadow(0 10px 25px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 30px rgba(0, 229, 255, 0.45));
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.hero-content h1 span {
  color: var(--blue-light);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin: 1.2rem auto 1.6rem;
  max-width: 680px;
  opacity: 0.95;
}

/* =====================================================
   HERO POINTS
===================================================== */
.hero-points {
  list-style: none;
  padding: 0;
  margin-bottom: 2.2rem;
}

.hero-points li {
  margin: 0.6rem 0;
  font-size: 1.05rem;
}

/* =====================================================
   BUTTONS
===================================================== */
.btn-whatsapp {
  display: inline-block;
  background-color: var(--whatsapp);
  color: var(--white);
  padding: 1.2rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
  transform: scale(1.08);
}

/* =====================================================
   EQUIPOS SECTION
===================================================== */
.equipos-section {
  background: linear-gradient(180deg, var(--white), var(--gray-light));
  text-align: center;
  padding: 4rem 1rem;
  border-top: 3px solid var(--blue-main);
  border-bottom: 3px solid var(--blue-main);
}

.equipos-section h2 {
  color: var(--blue-dark);
  font-size: 2.2rem;
  font-weight: 700;
}

.equipos-section p {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* =====================================================
   BRANDS GRID
===================================================== */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.8rem;
  align-items: center;
}

.brand-item {
  background: var(--white);
  border-radius: 14px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
  cursor: pointer;
}

.brand-item img {
  max-height: 50px;
  object-fit: contain;
  opacity: 0.85;
}

.brand-item:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 125, 197, 0.25);
}

.brand-item:hover img {
  opacity: 1;
}

/* =====================================================
   EQUIPMENT SLIDER
===================================================== */
.equipos-horizontal {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  overflow-x: auto;
  padding: 2rem 0;
  scroll-snap-type: x mandatory;
}

.equipo-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  width: 250px;
  min-width: 250px;
  padding: 1.5rem 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  text-align: center;
  scroll-snap-align: center;
}

.equipo-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 125, 197, 0.2);
}

.equipo-item img {
  height: 220px;
  object-fit: contain;
}

.equipo-item h3 {
  color: var(--blue-dark);
  font-size: 1.11rem;
  margin-top: 0.6rem;
}

/* =====================================================
   ABOUT US
===================================================== */
.about-us {
  background: linear-gradient(135deg, #e3f2fd, #ffffff);
  padding: 4rem 1rem;
  text-align: center;
}

.about-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.about-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  max-width: 300px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-10px);
}

/* =====================================================
   TESTIMONIOS FACEBOOK
===================================================== */
.testimonials-section {
  background: linear-gradient(180deg, #ffffff, #eef6fc);
  border-top: 3px solid var(--blue-main);
  border-bottom: 3px solid var(--blue-main);
  text-align: center;
}

.testimonial-card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
  padding: 1rem;
  max-width: 540px;
  margin: 2rem auto;
  position: relative;
}

.testimonial-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue-main), var(--blue-light));
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-weight: 600;
}

.testimonials-section h2 {
  color: var(--blue-dark);
  font-size: 2.2rem;
  font-weight: 700;
}

.testimonials-section p {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* Fila testimonio */
.testimonial-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 3rem;
  background: #fff;
  border-radius: 22px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

/* Imagen trabajo */
.testimonial-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 6px 15px rgba(0,0,0,.25);
}

/* Comentario */
.testimonial-comment {
  text-align: center;
}

.testimonial-comment img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,.15);
}

.stars {
  display: block;
  margin-top: 0.8rem;
  color: #ffc107;
  font-size: 1.3rem;
}

.author {
  font-weight: 700;
  margin-top: 0.4rem;
}

.source {
  font-size: 0.9rem;
  color: #777;
}

.facebook-cta{   
  background-color: var(--blue-main);
  color: var(--white);
  padding: 1.2rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}
/* =====================================================
   FACEBOOK EMBED
===================================================== */
.fb-embed {
  position: relative;
  width: 100%;
  height: 620px;
  overflow: hidden;
  border-radius: 12px;
  background: #f0f2f5;
}

.fb-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =====================================================
   SCROLL ANIMATIONS
===================================================== */
.section {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease, transform 1s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}


/* =====================================================
   FOOTER
===================================================== */
footer {
  background-color: var(--blue-dark);
  color: var(--white);
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
}

/* =====================================================
   WHATSAPP FLOAT
===================================================== */
.whatsapp-wrapper {
  position: fixed;
  bottom: 105px;
  right: 25px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.whatsapp-label {
  background: var(--whatsapp);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 10px;
}

.whatsapp-float {
  background-color: var(--whatsapp);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 25px rgba(37, 211, 102, 0.45),
    0 0 0 rgba(37, 211, 102, 0.0);
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Animación suave tipo respiración */
@keyframes whatsappPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.65);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  }
}

.whatsapp-float {
  animation: whatsappPulse 3s ease-in-out infinite;
}


/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .hero-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 1rem 4.5rem;
  }

  .hero-visual {
    display: none;
  }

  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonial-row {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 768px) {

  .equipos-horizontal {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    overflow: visible;
    padding: 1.5rem 0;
  }

  .equipo-item {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .equipo-item img {
    height: 180px;
  }

}

@media (max-width: 480px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-logo img {
    width: 160px;
    max-width: 160px;
  }

  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }
  .hero-header::after {
    height: 80px;
    bottom: -40px;
  }
  .whatsapp-wrapper {
    bottom: 80px;
    right: 15px;
  }
}
