/* 🎨 Variables de colores */
:root {
  --color-primario: #d97b1d;
  --color-base: #023459;
  --color-secundario: #35316c;
  --color-blanco: #ffffff;
  --color-negro: #000000;
}

html {
  scroll-behavior: smooth;
}

body {
  padding-top: 80px; /* Ajusta según la altura del navbar */
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--color-base);
  color: var(--color-blanco);
  line-height: 1.6;
}


/* ===========================
   HERO SECTION
   =========================== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 10%;
  background-color: var(--color-base);
  color: var(--color-blanco);
  gap: 2rem;
}

.hero-content {
  flex: 1;
  max-width: 50%;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: bold;
  line-height: 1.2;
}

.hero h1 .highlight {
  color: yellow;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #e0e0e0;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.btn-primary {
  background-color: var(--color-primario);
  color: var(--color-blanco);
  border: none;
}

.btn-primary:hover {
  background-color: #b86313;
}

.btn-outline {
  border: 2px solid var(--color-blanco);
  color: var(--color-blanco);
  background: transparent;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hero-image {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-badge {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: var(--color-primario);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--color-blanco);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ===========================
   RESPONSIVE (Mobile First)
   =========================== */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 3rem 5%;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    margin-top: 2rem;
    width: 100%;
  }

  .hero-image img {
    width: 90%;
  }

  .hero-badge {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-image img {
    width: 100%;
  }
}

/* ===========================
   SECCIÓN: POR QUÉ NOSOTROS
   =========================== */
.porque-nosotros {
  background-color: #f5f7fa; /* Fondo claro para contraste */
  padding: 4rem 10%;
  text-align: center;
}

.porque-header h2 {
  font-size: 2.2rem;
  color: var(--color-secundario);
  margin-bottom: 0.8rem;
}

.porque-header p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 3rem;
}

.porque-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.porque-card {
  display: flex;
  align-items: flex-start;
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: left;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.porque-card:hover {
  transform: translateY(-5px);
}

.porque-card img {
  width: 50px;
  height: 50px;
  margin-right: 1rem;
}

.card-text h3 {
  font-size: 1.2rem;
  color: var(--color-secundario);
  margin-bottom: 0.5rem;
}

.card-text p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 992px) {
  .porque-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .porque-header h2 {
  font-size: 1.5rem;
}
}

@media (max-width: 576px) {
  .porque-grid {
    grid-template-columns: 1fr;
  }

  .porque-card {
    flex-direction: row;
    align-items: center;
  }

  .card-text h3 {
    font-size: 1.1rem;
  }

  .card-text p {
    font-size: 0.9rem;
  }
}

/* ===========================
   SECCIÓN: SERVICIOS
   =========================== */
.servicios {
  padding: 4rem 10%;
  background-color: var(--color-secundario);
  color: var(--color-blanco);
  text-align: center;
}

.servicios-header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  font-weight: bold;
}

.servicios-header p {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  color: #e0e0e0;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.servicio-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  color: #333;
  box-shadow: 0 3px 12px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease-in-out;
}

.servicio-card:hover {
  transform: translateY(-5px);
}

.servicio-img {
  position: relative;
}

.servicio-img img {
  width: 100%;
  height: auto;
  display: block;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-primario);
  color: var(--color-blanco);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: bold;
}

.servicio-text {
  padding: 1.5rem;
  text-align: left;
}

.servicio-text h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  color: var(--color-secundario);
}

.servicio-text p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #444;
}

.ver-link {
  font-weight: bold;
  color: var(--color-primario);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.ver-link:hover {
  color: #b86313;
}

/* Footer de la sección */
.servicios-footer {
  margin-top: 3rem;
}

.servicios-footer p {
  font-size: 1.1rem;
  color: #fff;
}

.servicios-footer span {
  color: var(--color-primario);
  font-weight: bold;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 992px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .servicios-header h2 {
  font-size: 1.8rem;
}
}

@media (max-width: 576px) {
  .servicios-grid {
    grid-template-columns: 1fr;
  }

  .servicio-text h3 {
    font-size: 1.1rem;
  }

  .servicio-text p {
    font-size: 0.9rem;
  }

  .ver-link {
    font-size: 0.9rem;
  }
}

/* ===========================
   SECCIÓN: REVENDEDOR
   =========================== */
.revendedor {
  background-color: #f5f7fa;
  padding: 4rem 10%;
  text-align: center;
}

.revendedor-header h2 {
  font-size: 2.2rem;
  color: var(--color-secundario);
  margin-bottom: 0.8rem;
}

.revendedor-header p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 3rem;
}

.revendedor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.rev-card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease-in-out;
}

.rev-card:hover {
  transform: translateY(-5px);
}

.rev-card img {
  width: 55px;
  height: 55px;
  margin-bottom: 1rem;
}

.rev-card h3 {
  font-size: 1.2rem;
  color: var(--color-secundario);
  margin-bottom: 0.5rem;
}

.rev-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
}

/* Caja extra con los elementos incluidos */
.revendedor-extra {
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.revendedor-extra h4 {
  font-size: 1.4rem;
  color: var(--color-primario);
  margin-bottom: 1rem;
}

.revendedor-extra ul {
  list-style: none;
  padding: 0;
}

.revendedor-extra li {
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.6rem;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 992px) {
  .revendedor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .revendedor-grid {
    grid-template-columns: 1fr;
  }

  .rev-card {
    padding: 1.5rem;
  }

  .revendedor-header h2 {
    font-size: 1.8rem;
  }

  .revendedor-header p {
    font-size: 1rem;
  }

  .revendedor-extra {
    padding: 1.5rem;
  }
}

/* ===========================
   SECCIÓN: CTA
   =========================== */
.cta-section {
  background-color: var(--color-secundario); /* Azul oscuro */
  color: var(--color-blanco);
  text-align: center;
  padding: 5rem 10%;
}

.cta-content h2 {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #e2e2e2;
}

.btn-cta {
  background-color: var(--color-primario);
  color: var(--color-blanco);
  padding: 1rem 2.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
  display: inline-block;
}

.btn-cta:hover {
  background-color: #b86313;
  transform: translateY(-3px);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .btn-cta {
    font-size: 1rem;
    padding: 0.9rem 1.8rem;
  }
}

@media (max-width: 480px) {
  .cta-content h2 {
    font-size: 1.6rem;
  }

  .cta-content p {
    font-size: 0.95rem;
  }
}

/* ===========================
   SECCIÓN CONTACTO (FONDO CLARO)
   =========================== */
.contacto {
    padding: 4rem 10%;
    background-color: #f8f9fa;
    text-align: center;
}

.contacto-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #023459;
}

.contacto-header p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #666;
}

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contacto-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contacto-card:hover {
    transform: translateY(-5px);
}

.contacto-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacto-icon img {
    width: 40px;
    height: 40px;
}

.contacto-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #023459;
}

.contacto-card p {
    color: #666;
    margin-bottom: 0.5rem;
}

.contacto-resaltado {
    font-weight: bold;
    color: #023459 !important;
    font-size: 1.1rem;
    margin: 1rem 0 !important;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    display: inline-block;
    border: none;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

.btn-telefono {
    background-color: #007bff;
    color: white;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    display: inline-block;
    border: none;
}

.btn-telefono:hover {
    background-color: #0056b3;
}

.btn-email {
    background-color: #6f42c1;
    color: white;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    display: inline-block;
    border: none;
}

.btn-email:hover {
    background-color: #563d7c;
}

/* Redes Sociales */
.redes-sociales {
    margin-top: 3rem;
}

.redes-sociales h3 {
    margin-bottom: 1.5rem;
    color: #023459;
}

.redes-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.redes-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.redes-link:hover {
    transform: scale(1.1);
}

.redes-link img {
    width: 40px;
    height: 40px;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 992px) {
    .contacto {
        padding: 3rem 5%;
    }
    
    .contacto-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 4rem;
    }
}

@media (max-width: 576px) {
    .contacto-header h2 {
        font-size: 2rem;
    }
    
    .redes-icons {
        gap: 1rem;
    }
    
    .redes-link img {
        width: 35px;
        height: 35px;
    }
}

/* ===========================
   SECCIÓN MÉTODOS DE PAGO
   =========================== */
.metodos-pago {
  padding: 4rem 10%;
  background-color: #f8f9fa;
  text-align: center;
}

.pago-header h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--color-base);
}

.pago-header p {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  color: #666;
}

.pago-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.pago-item {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.pago-item:hover {
  transform: translateY(-5px);
}

.pago-item img {
  height: 50px;
  margin-bottom: 1rem;
}

.pago-item p {
  font-weight: 600;
  color: var(--color-base);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 992px) {
  .contacto, .metodos-pago {
    padding: 3rem 5%;
  }
  
  .contacto-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto 4rem;
  }
}

@media (max-width: 576px) {
  .contacto-header h2, .pago-header h2 {
    font-size: 2rem;
  }
  
  .redes-icons {
    gap: 1rem;
  }
  
  .redes-link img {
    width: 35px;
    height: 35px;
  }
  
  .pago-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Sección de Llamado a la Acción (CTA) */
#cta {
  padding: 60px 20px;
  background-color: #023459;
  color: white;
  text-align: center;
}

#cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

#cta p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta-btn {
  background-color: #d97b1d;
  color: white;
  padding: 15px 30px;
  font-size: 1.2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: #35316c;
}

@media (max-width: 576px) {
  #cta h2 {
  font-size: 1.6rem;

}
}

/* Métodos de Pago Discretos */
.payment-methods-discreet {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0.6;
}

.payment-method img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.payment-method img:hover {
  opacity: 1;
}

.payment-method {
  background-color: white;
  width: 60px;
  height: 60px;
  border-radius: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.payment-method:hover {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.payment-method img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--color-base);
  padding: 0.8rem 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.navbar-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo img {
  height: 70px;
  margin-top: 5px;
}

/* Links de navegación */
.navbar-menu {
  display: flex;
  gap: 2rem;
}

.navbar-menu a {
  color: var(--color-blanco);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar-menu a:hover {
  color: var(--color-primario);
}

/* Botón hamburguesa (oculto en escritorio) */
.navbar-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.3rem;
}

.navbar-toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-blanco);
  border-radius: 2px;
}

section {
  scroll-margin-top: 80px;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .navbar-menu {
    position: absolute;
    top: 70px;
    right: 0;
    background: var(--color-base);
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    width: 220px;
    display: none;
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-toggle {
    display: flex;
  }
}

/* =========================
   ANIMACIONES & MOVIMIENTO
   Agregar al final de css/style.css
   ========================= */

/* --- Preferencias de accesibilidad --- */
@media (prefers-reduced-motion: reduce) {
  .animated-shapes,
  .hero-image img,
  .hero-badge,
  .btn,
  .servicio-card,
  .porque-card,
  .rev-card,
  .contacto-card,
  .chat-window .chat-message {
    animation: none !important;
    transition: none !important;
  }
}

/* --- Reveal system (scroll: fade/slide) --- */
.in-view {
  opacity: 1 !important;
  transform: none !important;
  will-change: auto !important;
}

.hero-content,
.hero-image,
.porque-card,
.servicio-card,
.rev-card,
.contacto-card,
.chatbot-info,
.cta-content,
.chat-window,
.servicios-footer {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms cubic-bezier(.2,.8,.2,1), transform 700ms cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}

/* Slight directional variations (if needed) */
.reveal-left  { transform: translateX(-18px); }
.reveal-right { transform: translateX(18px); }

/* --- Hero specific (entrance + parallax friendly) --- */
.hero-content.in-view {
  transition-delay: 120ms;
}
.hero-image.in-view {
  transition-delay: 220ms;
}

/* --- Floating shapes (optional) --- */
.animated-shapes {
  position: fixed;
  inset: auto 0 0 0;
  pointer-events: none;
  z-index: 2;
  height: 0;
}
.animated-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.16;
  filter: blur(18px);
  transform-origin: center;
  mix-blend-mode: screen;
}
.shape-1 { width: 220px; height: 220px; left: 6%; bottom: 6%; background: rgba(217,123,29,0.95); animation: float 8s ease-in-out infinite; }
.shape-2 { width: 160px; height: 160px; right: 8%; bottom: 8%; background: rgba(53,49,108,0.95); animation: float 10s ease-in-out infinite; animation-delay: .8s; }
.shape-3 { width: 120px; height: 120px; left: 40%; bottom: 18%; background: rgba(2,52,89,0.95); animation: float 12s ease-in-out infinite; animation-delay: 1.2s; }

@keyframes float {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

/* --- Hero badge (contador + pulso) --- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--color-primario);
  color: #fff;
  padding: .55rem .95rem;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(2,52,89,0.18);
  transform-origin: center;
  animation: pulse-badge 3.6s ease-in-out infinite;
}
.hero-badge .count {
  font-variant-numeric: tabular-nums;
}

/* reduce pulse intensity on mobile to avoid distraction */
@keyframes pulse-badge {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* --- Buttons: micro-interactions and shimmer --- */
.btn {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}
.btn-primary {
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-primary:hover,
.btn-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(217,123,29,0.18);
}

/* subtle shimmer line on focus (a11y) */
.btn:focus::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 4px rgba(217,123,29,.08);
  pointer-events: none;
}

/* --- Cards hover (elevate + subtle tilt) --- */
.servicio-card,
.porque-card,
.rev-card,
.contacto-card {
  transition: transform .35s cubic-bezier(.2,.9,.3,1), box-shadow .35s ease;
  will-change: transform;
}
.servicio-card:hover,
.porque-card:hover,
.rev-card:hover,
.contacto-card:hover {
  transform: translateY(-8px) rotateX(0.6deg);
  box-shadow: 0 20px 40px rgba(2,52,89,0.12);
}

/* --- Chat demo: messages & typing --- */
.chat-window {
  background: #fff;
  color: #222;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.chat-window .chat-message {
  opacity: 0;
  transform: translateY(8px) scale(.995);
  transition: opacity 360ms ease, transform 360ms cubic-bezier(.2,.8,.2,1);
  max-width: 78%;
  padding: .6rem .9rem;
  border-radius: 10px;
  font-size: .95rem;
  line-height: 1.3;
}
.chat-window .chat-message.bot {
  background: #f2f2f2;
  color: #222;
  align-self: flex-start;
}
.chat-window .chat-message.user {
  background: var(--color-primario);
  color: #fff;
  align-self: flex-end;
}
.chat-window .chat-message.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Typing indicator (3 dots) */
.typing-indicator {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: .4rem .6rem;
  border-radius: 10px;
  background: #f1f1f1;
  width: 58px;
}
.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bbb;
  display: inline-block;
  animation: typing-dot 1s infinite linear;
}
.typing-indicator span:nth-child(2) { animation-delay: .12s; }
.typing-indicator span:nth-child(3) { animation-delay: .24s; }
@keyframes typing-dot {
  0% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(-5px); opacity: 1; }
  100% { transform: translateY(0); opacity: .5; }
}

/* --- Navbar compact on scroll --- */
.navbar {
  transition: padding .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.navbar--scrolled {
  padding: .45rem 5%;
  background: rgba(2,52,89,0.96);
  box-shadow: 0 10px 30px rgba(0,0,0,0.16);
  backdrop-filter: blur(4px);
}

/* --- small helper: make reveal immediate when JS adds in-view --- */
.hero-content.in-view,
.hero-image.in-view,
.porque-card.in-view,
.servicio-card.in-view,
.rev-card.in-view,
.contacto-card.in-view,
.chatbot-info.in-view,
.cta-content.in-view,
.servicios-footer.in-view {
  opacity: 1;
  transform: none;
}

/* --- responsive tweaks --- */
@media (max-width: 768px) {
  .shape-2, .shape-3 { display: none; } /* reduce clutter on small screens */
  .hero-badge { font-size: .95rem; padding: .45rem .7rem; }
  .typing-indicator { width: 46px; }
}


/* Justificar textos solo en móviles */
@media (max-width: 768px) {
  .justify {
    text-align: justify;
  }
}

/* ===== Pack Revendedor ===== */
.pack-section {
  background: linear-gradient(135deg, #023459, #35316c);
  padding: 80px 20px;
  text-align: center;
}

.pack-container {
  display: flex;
  justify-content: center;
}

.pack-card {
  background: #fff;
  border-radius: 15px;
  max-width: 500px;   /* 📌 Más delgado en PC */
  width: 100%;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  overflow: hidden; /* Para que la franja de abajo quede pegada */
  border: 2px solid #d97b1d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pack-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.pack-header {
  padding: 25px 20px 10px;
}

.pack-title {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: #d97b1d;
  font-weight: bold;
}

.pack-header h3 {
  font-size: 1.2rem;
  color: #023459;
  border-bottom: 2px solid #eee;
  padding-bottom: 8px;
}

.pack-features {
  list-style: none;
  padding: 20px;
  margin: 0;
  text-align: left;
}

.pack-features li {
  font-size: 1.05rem;
  margin: 10px 0;
  padding: 8px 0;
  border-bottom: 1px dashed #ddd;
  color: #333;
}

.pack-features li:last-child {
  border-bottom: none;
}

/* === Franja de precio === */
.pack-price-bar {
  background: #d97b1d;
  color: white;
  padding: 25px 0;
  font-weight: bold;
  font-size: 2rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.pack-price-bar .currency {
  font-size: 1.2rem;
}

.pack-price-bar .amount {
  font-size: 2.8rem;
}

.pack-price-bar .unit {
  font-size: 1rem;
  font-weight: normal;
}

/* 📱 Responsivo */
@media (max-width: 768px) {
  .pack-card {
    max-width: 100%;
  }

  .pack-title {
    font-size: 1.5rem;
  }

  .pack-price-bar {
    font-size: 1.6rem;
  }
}
/* 📌 Contenedor del grid + pack */
.revendedor-content {
  display: flex;
  flex-direction: column; /* 📱 Móvil primero */
  align-items: center;
  margin-top: 2rem;
}

@media (min-width: 992px) {
  .revendedor-content {
    display: flex;
    flex-direction: row; /* lado a lado en PC */
    align-items: flex-start;
    justify-content: center;
    gap: 3rem;
  }

  /* 📌 Grid de 2x2 en PC */
  .revendedor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    flex: 1;
  }

  .pack-container {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .pack-card {
    max-width: 400px; /* más delgado en escritorio */
  }
}
