:root{
  --primary:#222085;
  --accent:#2E08DB;
  --muted:#f2f4fb;
  --text:#222;
  --maxw:1100px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  padding-top: 90px; /* Ajusta según la altura real de tu header */
  margin:0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:var(--text);
  background:#fff;
  -webkit-font-smoothing:antialiased;
}

.fila-img {
    display: flex;
    justify-content: space-between; /* separación */
    gap: 20px; /* espacio entre imágenes */
}

.fila-img img {
    width: 50%;   /* ajusta a lo que necesites */
    border-radius: 10px;
}

.container{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 18px;
}
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;

    /* Tu degradado, pero transparente */
    background: linear-gradient(
        90deg,
        rgba(34, 32, 133, 1),   /* var(--primary) con opacidad */
        rgba(46, 8, 219, 1)     /* var(--accent) con opacidad */
    );

    backdrop-filter: blur(8px); /* Efecto vidrio */
    -webkit-backdrop-filter: blur(8px);

    color: #fff;
    padding: 14px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}


.site-header {
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

/* Header transparente al hacer scroll */
.site-header.header-transparente {
    background: linear-gradient(
        90deg,
        rgba(34, 32, 133, 0.75),
        rgba(46, 8, 219, 0.75)
    );
    backdrop-filter: blur(10px);
}

/* Header */
/* .site-header{
  background:linear-gradient(90deg,var(--primary),var(--accent));
  color:#fff;
  padding:14px 0;
} */
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.brand{display:flex;align-items:center;text-decoration:none;color:inherit}
.brand-logo{width:64px;height:auto;margin-right:12px;border-radius:6px}
.brand-text h1{margin:0;font-size:1.05rem}
.brand-text .slogan{margin:0;font-size:0.82rem;opacity:0.9}
.main-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:20px}
.main-nav a{color:#fff;text-decoration:none;font-weight:600}
.main-nav a.active{opacity:0.95;text-decoration:underline}
.nav-toggle{display:none;background:transparent;border:0;color:#fff;font-size:1.2rem}

/* HERO */
.hero{
  background: linear-gradient(90deg, rgba(34,32,133,0.08), rgba(46,8,219,0.06));
  padding:40px 0;
}
.hero-inner{display:flex;align-items:center;gap:30px;flex-wrap:wrap}
.hero-content{flex:1;min-width:300px}
.hero-content h2{font-size:1.8rem;margin:0 0 8px}
.hero-content p{margin:0 0 16px;color:#333}
.hero-media img{max-width:420px;width:100%;height:auto;display:block}

/* CTAs */
.btn{
  display:inline-block;padding:10px 16px;border-radius:6px;background:var(--primary);color:#fff;text-decoration:none;font-weight:600;margin-right:10px;
}
.btn.ghost{background:transparent;border:2px solid var(--primary);color:var(--primary)}

/* Features */
.features{padding:28px 0}
.features h2{text-align:center;margin-bottom:16px}
.features h3{text-align:center;margin-bottom:16px}
.grid-3{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}
.card{background:#fff;border-radius:8px;padding:18px;box-shadow:0 6px 18px rgba(34,32,133,0.06);text-align:center}
.card img{max-width:120px;margin-bottom:10px}
.grid-3 {
    display: flex;
    flex-wrap: wrap;           /* permite que pasen a la siguiente línea */
    justify-content: center;   /* centra las cards en cada fila */
    gap: 30px;                 /* espacio entre cards */
    margin-top: 20px;
}
.grid-3 .card {
    width: 300px; /* o el tamaño que uses */
}
/* Asegura que el texto esté separado de las imágenes */
.mybusinesspos-text {
    width: 100%;
}

/* Contenedor de imágenes en fila para escritorio */
.fila-img {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.fila-img img {
    width: 100%;
    max-width: 350px; /* tamaño de cada imagen */
    height: auto;
    border-radius: 10px;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

/* Opcional: estilizar cada tarjeta */
.service-item {
  background: white;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.service-item img.Serv {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}
/* --- Responsive --- */
@media (max-width: 768px) {
    .fila-img {
        flex-direction: column;
        align-items: center;
    }

    .fila-img img {
        max-width: 100%;
    }
}

.mybusinesspos-text {
    width: 100%;
    max-width: 800px;      /* Ajusta el ancho según tu gusto */
    margin: 0 auto;        /* Centra horizontalmente */
    text-align: center;    /* Centra títulos y párrafos */
}


/* Columna de texto */
.containermybusinesspos .mybusinesspos {
    flex: 1;
}

/* Columna de imágenes */
.hero-media {
    flex: 1;
}

.fila-img {
    display: flex;
    gap: 20px;
}

.fila-img img {
    width: 100%;
    max-width: 250px;
    border-radius: 10px;
}


/* ------- 📱 DISEÑO RESPONSIVO PARA CELULAR -------- */
@media (max-width: 768px) {

    .containermybusinesspos {
        flex-direction: column;   /* ⬅ TEXTO arriba, IMÁGENES abajo */
        text-align: center;
    }

    .fila-img {
        flex-direction: column;   /* ⬅ Las imágenes una abajo de otra en celular */
        align-items: center;
    }

    .fila-img img {
        max-width: 300px;         /* tamaños más grandes en celular */
        width: 90%;
    }
}





/* Clients */
.clients{padding:24px 0;background:var(--muted)}
.clients-row{display:flex;gap:20px;align-items:center;justify-content:center;flex-wrap:wrap}
.clients-row img{width:120px;opacity:0.9;filter:grayscale(0.0)}

/* Services list */
.services-list{padding:30px 0}
.service-item{padding:18px;border-bottom:1px solid #eee}
.page-header{padding:30px 0}

/* Footer */
.site-footer{background:#0f1a3a;color:#fff;padding:18px 0}
.footer-inner{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;line-height: 0.4; }

/* Form */
.contact-form form{display:flex;flex-direction:column;gap:12px;max-width:700px}
.contact-form input,.contact-form textarea{padding:10px;border-radius:6px;border:1px solid #ddd}

.contact-form input,
.contact-form textarea {
    width: 450px;
    max-width: 100%; /* evita que se rompa en pantallas pequeñas */
}
.service-item{
  .Serv{width:128px;height:auto;margin-right:12px;border-radius:6px}
}

/* Responsive */
/* ----- MENÚ MÓVIL ----- */
@media (max-width: 820px) {
    .main-nav {
        display: none; /* Oculto por defecto en móvil */
        flex-direction: column;
        background: rgba(34, 32, 133, 0.95); /* degradado oscuro con transparencia */
        position: absolute;
        top: 70px; /* justo debajo del header */
        left: 0;
        width: 100%;
        padding: 10px 0;
        text-align: center;
        z-index: 9998;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 12px;
        padding: 0;
        margin: 0;
    }

    .main-nav a {
        font-size: 1.1em;
        padding: 10px;
        display: block;
        width: 100%;
    }

    .nav-toggle {
        display: block;
        cursor: pointer;
        font-size: 28px;
    }
}



.whatsapp-icon {
  position: fixed;
  bottom: 40px;
  right: 40px;
  text-decoration: none;
  z-index: 100;
}

.whatsapp-icon img {
  width: 100px;       /* tamaño del ícono */
  height: 100px;
  transition: transform 0.2s;
}

.whatsapp-icon img:hover {
  transform: scale(1.1); /* efecto al pasar el mouse */
}

/* ==== POPUP ==== */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: #fff;
  padding: 25px 35px;
  border-radius: 10px;
  text-align: center;
  width: 90%;
  max-width: 400px;
}

.popup-content h3 {
  margin-top: 0;
  color: #2E08DB;
}

.popup-content button {
  margin-top: 15px;
  background: #2E08DB;
  color: white;
  padding: 8px 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.popup-content button:hover {
  background: #1a0594;
}

/* ---- Sección mapa y cómo llegar ---- */
.mapa {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.mapa-wrapper {
  width: 100%;
  height: 350px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.mapa-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.como-llegar {
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(34,32,133,0.04);
}

.como-llegar h4 { margin-top: 0; color: var(--primary); }
.como-llegar ul { padding-left: 18px; margin: 8px 0; }
.como-llegar li { margin-bottom: 8px; }

.btn-maps {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
}
.btn-maps:hover { background: #1a0594; }

/* Responsive: apilar en pantallas pequeñas */
@media (max-width: 900px) {
  .mapa { grid-template-columns: 1fr; }
  .mapa-wrapper { height: 300px; }
}

/* MENÚ DESKTOP (por defecto visible) */
.main-nav {
    display: flex;
    opacity: 1;
    transform: none;
    transition: all 0.25s ease;
}

/* ANIMACIÓN SOLO EN MÓVIL */
@media (max-width: 820px) {
    .main-nav {
        display: none;
        flex-direction: column;
        opacity: 0;
        transform: translateY(-10px);
    }

    .main-nav.show {
        display: flex;
        opacity: 1;
        transform: translateY(0px);
    }
}

/* --- Sección de clientes --- */
.clients-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding: 40px 0;
  justify-items: center;
}

/* Contenedor individual */
.clients-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 25px;
  width: 100%;
  max-width: 250px;
  height: 180px;

  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);

  overflow: hidden;
  text-decoration: none;

  transition: transform .30s ease, box-shadow .35s ease;
  opacity: 0;
  transform: translateY(20px);

  animation: fadeUp .7s forwards ease-out;
}

/* Animación */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Imagen */
.clients-row img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(35%);
  transition: transform .3s ease, filter .3s ease;
}

/* Hover */
.clients-row a:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.clients-row a:hover img {
  filter: grayscale(0%);
  transform: scale(1.12);
}

/* --- ANIMACIÓN EN CASCADA AUTOMÁTICA --- */
.clients-row a:nth-child(1) { animation-delay: .05s; }
.clients-row a:nth-child(2) { animation-delay: .15s; }
.clients-row a:nth-child(3) { animation-delay: .25s; }
.clients-row a:nth-child(4) { animation-delay: .35s; }
.clients-row a:nth-child(5) { animation-delay: .45s; }
.clients-row a:nth-child(6) { animation-delay: .55s; }
.clients-row a:nth-child(7) { animation-delay: .65s; }
.clients-row a:nth-child(8) { animation-delay: .75s; }
.clients-row a:nth-child(9) { animation-delay: .85s; }
.clients-row a:nth-child(10) { animation-delay: .95s; }
.clients-row a:nth-child(11) { animation-delay: 1.05s; }
.clients-row a:nth-child(12) { animation-delay: 1.15s; }

/* .clients-row a p {
  margin-top: 10px;
  font-size: 15px;
  text-align: center;
} */

.clients-row a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  text-decoration: none;
  transition: transform .30s ease, box-shadow .35s ease;

  width: 100%;
  max-width: 250px;

  min-height: 180px;
  height: auto;
  font-size: 13px;
}
.clients-row img {
  display: block;
  width: 100%;
  object-fit: contain;
}

.clients-row a p {
  margin: 10px 0 0 0;
  width: 100%;
  text-align: center;
}

/* Centrar todo el bloque */
.giro-section {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.giro-container {
  max-width: 600px;        /* Ajusta el ancho si lo deseas */
  text-align: center;       /* Centra el h2 */
}

/* Estilo del título */
.giro-container h2 {
  margin-bottom: 20px;
  font-size: 26px;
}

/* Estilo de la lista con íconos */
.lista-iconos {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  text-align: left;         /* Para que la lista quede alineada aunque el bloque esté centrado */
  display: inline-block;    /* Centra verticalmente la lista */
}

/* Ícono personalizado */
.lista-iconos li {
  margin: 6px 0;            /* MENOS espacio entre renglones */
  padding-left: 28px;
  position: relative;
  font-size: 18px;
}

/* Icono con CSS (tipo check o bullet elegante) */
.lista-iconos li::before {
  content: "✔";             /* Puedes cambiarlo por •, →, ✦, ✓ */
  position: absolute;
  left: 0;
  top: 0;
  color: #0a84ff;           /* Azul elegante */
  font-size: 16px;
  line-height: 1.2;
}

/* ===== HERO RESPONSIVE FIX ===== */
@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column;      /* Texto arriba, imagen abajo */
        text-align: center;          /* Centra el texto */
    }

    .hero-media {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

    .hero-media img {
        max-width: 320px;            /* Tamaño grande en celular */
        width: 90%;                  /* Para que no ocupe todo-todo */
        height: auto;
    }
}