.footer-grid div.medios-pago {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
/* Medios de Pago Footer */
.footer-grid div img[alt="Visa"],
.footer-grid div img[alt="Mastercard"],
.footer-grid div img[alt="Yape"],
.footer-grid div img[alt="Otros"] {
  width: 48px;
  height: 48px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
  margin-bottom: 8px;
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #ffffff;
  margin-top: 100px;
  color: #222;
}


/* HEADER */
.site-header {
  position: fixed;
  top: 0px;
  width: 100%;
  z-index: 1010;
}

.top-bar {
  background: #0056b3;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;  /* ✅ ESTO ES CLAVE */
  align-items: center;             /* Para centrar verticalmente */
}

.top-bar img {
  cursor: pointer;
}

.header {
  background: #ffffff;
  padding: 12px 16px;
  margin-top: 60px; /* BAJA el header 20px hacia abajo */
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 86, 179, 0.07);
   /* 🔧 Esto hace que se mantenga visible al hacer scroll */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.logo {
  font-size: 2rem;
  color: #0056b3;
  display: flex;
  align-items: center;
  font-weight: bold;
}

.logo img {
  margin-right: 10px;
}

.navbar {
  position: relative;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #0056b3;
}

.main-menu {
  list-style: none;
  display: flex;
  gap: 24px;
}

.main-menu li a {
  text-decoration: none;
  color: #0056b3;
  font-weight: 500;
  font-size: 1rem;
}

/* SUBTÍTULO */
.subtitle {
  text-align: center;
  padding: 32px 16px;
  background: #f2f2f2;
}

.subtitle h1 {
  font-size: 2rem;
  color: #0056b3;
  margin-bottom: 16px;
  margin-top: 60px; /* BAJA el header 20px hacia abajo */
}

/* SERVICIOS */
.contenedor-servicios {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 40px 20px 20px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.servicio-col {
  flex: 1 1 320px;
  max-width: 350px;
  display: flex;
  justify-content: center;
}

.servicio-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 86, 179, 0.07);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.servicio-img-wrapper {
  width: 280px;
  height: 280px;
  padding: 10px;
  background: white;
  border: 2px solid #0056b3;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.servicio-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.servicio-card h2 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 12px;
  text-align: center;
}

.servicio-card ul {
  padding-left: 5px;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* VIDEO */
.video-section {
  background: #a3d4ff;
  padding: 50px 20px;
  text-align: center;
}

.video-title {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 40px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.video-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 86, 179, 0.1);
}

.video-card h3 {
  color: #0056b3;
  margin-bottom: 10px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.15);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* MAPA */
.mapa-contenedor {
  display: flex;
  justify-content: center;
  margin: 40px auto;
  padding: 10px;
  max-width: 900px;
}

.mapa-contenedor iframe {
  width: 100%;
  max-width: 850px;
  height: 400px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mapa-contenedor iframe:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 86, 179, 0.4);
}

/* WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: white;
  padding: 10px 16px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.whatsapp-icon {
  background: #128C7E;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 10px;
}

.whatsapp-icon img {
  width: 24px;
  height: 24px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .main-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 48px;
    right: 0;
    width: 200px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .main-menu.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .contenedor-servicios {
    flex-wrap: wrap;
    gap: 20px;
  }

  .servicio-col {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .servicio-img-wrapper {
    width: 100%;
    height: auto;
  }

  .servicio-img {
    width: 100%;
    height: auto;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}

:root {
  --primary: #007bff;
  --primary-dark: #0056b3;
  --background: #f4f8fc;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --transition: 0.3s ease;
  --spacing: 0.5rem;
}

/* Reset */
a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  text-decoration: underline;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: var(--background);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Botón volver al inicio */
.boton-arriba-derecha {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 1000;
}
.boton-arriba-derecha a {
  background: var(--primary);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: bold;
  box-shadow: var(--shadow);
  transition: background var(--transition);
}
.boton-arriba-derecha a:hover {
  background: var(--primary-dark);
}

/* Contenedor general */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--spacing);
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, #007bff, #00bfff);
  color: var(--white);
  border-radius: var(--radius);
  padding: 3rem var(--spacing);
  margin-bottom: 3rem;
  text-align: center;
}
.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
}

/* Títulos */
h2 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  text-align: center;
}

/* Cards (Servicios y Testimonios) */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 250px;
  box-shadow: var(--shadow);
  flex: 1 1 220px;
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  color: var(--primary-dark);
}
.card p {
  font-size: 1rem;
  color: #333;
}

/* Testimonios */
.testimonial {
  font-style: italic;
}

.article.card.testimonial {
  font-size: 1rem;
  color: #555;
  width: 50%;
  height: 50px;
  margin-bottom: 1rem;
}

.container cards-section {
  width: 50px;
  height: 10px;
  border-radius: 50%;
  margin-top: 1rem;
}
.testimonial strong {
  display: block;
  margin-top: 1rem;
  color: var(--primary);
  font-style: normal;
}
.card .testimonial img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
}

.servicio-imge {
  width: 50%;
  height: auto;
  border-radius: var(--radius);
  margin-top: 1rem;
}

/* FAQ */
.faq-section {
  margin-top: 3rem;
}
.faq-item {
  background: var(--white);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.2rem;
}
.faq-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--primary-dark);
}
.faq-item p {
  margin: 0;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: var(--white);
  padding: 2rem var(--spacing);
  
  margin-top: 3rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-grid div {
  min-width: 220px;
}
#contacto h4 {
  margin-bottom: 0.5rem;
}
#contacto p {
  margin: 0.2rem 0;
}
.copyright {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #e6f0ff;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .cards {
    flex-direction: column;
    align-items: center;
  }
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

.Qsomos {
  max-width: 1000px;
  margin: 60px auto;
  padding: 30px 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.Qsomos h2 {
  font-size: 2em;
  margin-bottom: 15px;
  color: #007bff;
  text-align: center;
}

.Qsomos p {
  font-size: 1.05em;
  color: #333333;
  line-height: 1.7;
  text-align: justify;
}

.testimonial-box {
  background: #f5f5dc;
  color: #000000;
  padding: 20px 30px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.testimonial-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #00bfff;
}

.testimonial-text p {
  margin-bottom: 10px;
  font-style: italic;
  line-height: 1.5;
}

.testimonial-text strong {
  color: #00bfff;
  display: block;
  text-align: right;
}

.cards.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Responsive para testimonios */
@media (max-width: 768px) {
  .testimonial-box {
    flex-direction: column;
    text-align: center;
  }

  .testimonial-text strong {
    text-align: center;
  }
}

.top-bar {
  display: flex;
  justify-content: space-between; /* separa left y right */
  align-items: center;
  padding: 10px 20px;
}

.top-bar-right a {
  
  margin-left: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 9px 15px;
  text-decoration: none;
  color: #000;
  border-radius: var(--radius);
  min-width: 120px; /* Ajusta según necesites */
  justify-content: center; /* Centra el texto o ícono */
  text-align: center;
}
.top-bar-right a span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
  display: inline-block;
}

.top-bar-right img {
  width: 35px;
  background: #353131;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.top-bar-right img:hover {
  transform: scale(1.1);
}

