/* RESET */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #F5F6FA;
  color: #1A1A1A;
}

/* HEADER */
.header {
  width: calc(100% - 15px);
  margin: 10px auto;
  padding: 16px 20px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #2C2A6B 70%, #E8ECF7 100%);
  color: white;
}

.header .logo {
  font-size: 20px;
  font-weight: 600;
  padding-left: 20px;
}

.header nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 50px;
}

.header nav a {
  text-decoration: none;
  color: white;
  font-size: 16px;
  font-weight: 400;
}

/* HERO HOME */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 40px;
  gap: 60px;
}

.hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  color: #2C2A6B;
  margin: 0 0 10px 0;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  color: #2C2A6B;
  margin: 0 0 20px 0;
}

.hero-tag {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #6B6B6B;
  margin: 0 0 20px 0;
}

.hero-subtag {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: #6B6B6B;
  margin: 0 0 20px 0;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.btn-primary {
  background: #2C2A6B;
  color: white;
  padding: 14px 26px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.btn-secondary {
  background: #E8ECF7;
  color: #2C2A6B;
  padding: 14px 26px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-right img {
  width: 100%;
  max-width: 520px;
  border-radius: 14px;
  object-fit: cover;
}

/* LOGOS DIVISOR */
.logos-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 40px 0;
  opacity: 0.8;
}

.logos-strip img {
  height: 50px;
  object-fit: contain;
}

/* NÚMEROS */
.numeros {
  text-align: center;
  padding: 50px 20px;
}

.numeros h3 {
  font-size: 28px;
  margin: 0;
}

.numeros p {
  font-size: 18px;
  margin-top: 10px;
}

/* TRATO */
.trato {
  text-align: center;
  padding: 40px 20px;
}

/* SERVICIOS */
.servicios {
  padding: 40px 20px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card h4 {
  margin: 0;
  font-size: 20px;
}

.card p {
  margin-top: 10px;
  font-size: 16px;
}

/* CTA FINAL */
.cta-final {
  text-align: center;
  padding: 40px 20px;
}

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 90px;
  height: 90px;
  z-index: 9999;
  cursor: pointer;
}

.whatsapp-float img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}

.whatsapp-float img:hover {
  transform: scale(1.08);
}

/* BOTÓN FLOTANTE CONÓCENOS */
.float-left {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 90px;
  height: 90px;
  z-index: 9999;
  cursor: pointer;
}

.float-left img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}

.float-left img:hover {
  transform: scale(1.08);
}

/* HERO SERVICIOS */
.hero-servicios {
  position: relative;
  width: 100%;
  height: auto;
  background: url('/assets/img/fondos.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 232px 20px;
}

.hero-servicios-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  color: white;
}

.hero-servicios-content h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.hero-servicios-content p {
  font-size: 1.2rem;
  margin: 5px 0;
}

.hero-highlight {
  margin-top: 20px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #d4af37;
}

.hero-servicios-buttons {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* FOOTER AMAZON */
.footer-amazon {
  background: #232f3e;
  color: #fff;
  padding: 40px 20px;
  font-size: 14px;
}
footer.footer-amazon {
  width: 100%;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
  color: #ddd;
}

.footer-col ul li a {
  color: #ddd;
  text-decoration: none;
}

.footer-col ul li a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #3a4553;
  padding-top: 20px;
  text-align: center;
  color: #ccc;
}

.footer-bottom a {
  color: #fff;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

 /* AJUSTES DE BOTONES FLOTANTES Y FOOTER EN MÓVIL */
@media (max-width: 600px) {

  .whatsapp-float,
  .float-left {
    width: 70px;
    height: 70px;
  }

  .footer-row {
    flex-direction: column;
    text-align: center;
  }

}

/* SEGUNDO SCROLL */
/* SEGUNDO SCROLL */
.scroll2 {
  background: url('/assets/img/fondos.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.scroll2-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

.scroll2-row.reverse {
  flex-direction: row-reverse;
}

.scroll2-img {
  width: 45%;
  max-width: 500px;
  border-radius: 14px;
  object-fit: cover;
}

.scroll2-text {
  width: 45%;
  max-width: 500px;
}

.scroll2-text h2 {
  font-size: 32px;
  color: #2C2A6B;
  margin-bottom: 15px;
}

.scroll2-text p {
  font-size: 18px;
  color: #444;
  margin-bottom: 20px;
}

.scroll2-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 14px 26px;
  border-radius: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .scroll2-row,
  .scroll2-row.reverse {
    flex-direction: column;
    text-align: center;
  }

  .scroll2-img,
  .scroll2-text {
    width: 100%;
  }
}

/* SCROLL 3 */
.scroll3 {
  background: #ffffff;
  padding: 80px 20px;
}

.scroll3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.scroll3-card {
  background: white;
  padding: 30px 20px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.scroll3-card img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 15px;
}

.scroll3-card h4 {
  font-size: 20px;
  color: #2C2A6B;
  margin-bottom: 10px;
}

.scroll3-card p {
  font-size: 16px;
  color: #444;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .scroll3-grid {
    grid-template-columns: 1fr;
  }
}

/* CHAT */
.scroll4 {
  background: #E9EAEE;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
}

.chat-window {
  background: white;
  width: 820px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background: #2C2A6B;
  color: white;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  padding: 4px;
}

.chat-info h3 {
  margin: 0;
  font-size: 18px;
}

.online-status {
  font-size: 14px;
  color: #7CFF7C;
}

.chat-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-bubble {
  background: #E8ECF7;
  padding: 12px 16px;
  border-radius: 14px;
  max-width: 85%;
  color: #2C2A6B;
  font-weight: 500;
}

#chatInput {
  width: 100%;
  height: 90px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  resize: none;
  font-size: 15px;
}

.urgencia-box {
  background: #ffe5e5;
  border-left: 5px solid #cc0000;
  padding: 15px;
  border-radius: 10px;
}

.urgencia-title {
  font-size: 17px;
  font-weight: 700;
  color: #b30000;
}

.hidden {
  display: none;
}

#formBox input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}

#formBox button {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
}

.firma-digito {
  text-align: center;
  padding: 12px;
  font-size: 13px;
  color: #777;
}

.firma-digito a {
  color: #2C2A6B;
  font-weight: 600;
}
/* AJUSTE TEXTO PORTADA QUIÉNES SOMOS */
.hero-servicios-content h1,
.hero-servicios-content p {
  color: #000; /* texto negro */
  text-shadow: 
    0 0 2px #2C2A6B,
    0 0 4px #2C2A6B; /* borde azul sutil */
}
.lang-switcher {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-left: 30px;
}

.lang-switcher img {
  width: 30px;
  height: 30px;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid #fff;
  transition: transform 0.2s ease;
}

.lang-switcher img:hover {
  transform: scale(1.15);
}
.logo img {
  height: 60px;   /* Ajusta la altura */
  width: auto;    /* Mantiene proporción */
}
.scroll2-text {
  text-align: center;
  margin-bottom: 80px;
}
/* EVITAR SCROLL HORIZONTAL GLOBAL */
html, body {
  overflow-x: hidden;
}

/* HEADER: QUE NO SE SALGA EN MÓVIL */
.header {
  width: 100%;
  box-sizing: border-box;
}

/* HERO: IMAGEN RESPONSIVE Y SIN DESBORDAR */
.hero-right img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
}

/* LOGOS DIVISOR: QUE NO ROMPA EL ANCHO */
.logos-strip {
  flex-wrap: wrap;
  padding: 20px 10px;
}

.logos-strip img {
  max-width: 100%;
  height: 40px;
}

/* EXTRA POR SI ALGÚN CONTENEDOR SE PASA */
* {
  box-sizing: border-box;
}
/* LOGO RESPONSIVE + SIN RECORTES EN MÓVIL */
/* FIX HEADER EN MÓVIL: logo + banderas visibles */
/* RESTAURAR HEADER EN MÓVIL */
@media (max-width: 600px) {

  .header {
    width: 100%;
    padding: 12px 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  /* LOGO visible siempre */
  .header .logo {
    padding-left: 0;
    margin: 0;
    flex-shrink: 0;
  }

  .header .logo img {
    max-width: 60px;
    width: 100%;
    height: auto;
    display: block;
  }

  /* MOSTRAR NAV otra vez */
  .header nav {
    display: flex !important;
    gap: 20px;
  }

  /* BANDERAS visibles */
  .lang-switcher {
    display: flex !important;
    gap: 10px;
    flex-shrink: 0;
  }

  .lang-switcher img {
    width: 20px;
    height: 20px;
  }
}

/* EVITAR SCROLL HORIZONTAL GLOBAL */
html, body {
  overflow-x: hidden;
}

/* IMÁGENES 100% RESPONSIVE */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* LOGOS DIVISOR: evitar desbordamiento */
.logos-strip {
  flex-wrap: wrap;
  padding: 20px 10px;
  justify-content: center;
}
.footer-legal {
  margin-top: 15px;
  font-size: 14px;
  color: #ccc;
  text-align: center;
  line-height: 1.6;
}

.footer-legal a {
  color: #fff;
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 18, 32, 0.95);
  color: #fff;
  padding: 20px;
  border-top: 2px solid #d4af37;
  display: none;
  z-index: 99999;
  backdrop-filter: blur(6px);
}

.cookie-content {
  max-width: 900px;
  margin: auto;
}

.cookie-buttons {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.cookie-buttons button {
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 600;
}

#accept-cookies {
  background: #1e8f3a;
  color: white;
}

#reject-cookies {
  background: #8f1e1e;
  color: white;
}

#config-cookies {
  background: #d4af37;
  color: black;
}
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 18, 32, 0.95);
  color: #fff;
  padding: 20px;
  border-top: 2px solid #d4af37;
  display: none;
  z-index: 99999;
  backdrop-filter: blur(6px);
}

.cookie-content {
  max-width: 900px;
  margin: auto;
}

.cookie-buttons {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.cookie-buttons button {
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 600;
}

#accept-cookies {
  background: #1e8f3a;
  color: white;
}

#reject-cookies {
  background: #8f1e1e;
  color: white;
}

#config-cookies {
  background: #d4af37;
  color: black;
}
/* CENTRAR TODA LA SECCIÓN DE SERVICIOS */
.servicios-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  text-align: center; /* CENTRA TÍTULOS Y TEXTOS */
  justify-items: center; /* CENTRA CADA CARD */
}

/* CENTRAR CADA TARJETA */
.servicios-grid .card {
  display: flex;
  flex-direction: column;
  align-items: center; /* CENTRA IMAGEN Y TEXTO */
  text-align: center;
}

/* CENTRAR IMÁGENES */
.servicios-grid .card img {
  display: block;
  margin: 0 auto 12px auto;
  max-width: 90px;
}
/* CENTRAR IMÁGENES Y TEXTO DE LA SECCIÓN SCROLL3 (SERVICIOS) */
.scroll3-grid {
  justify-items: center;
  text-align: center;
}

.scroll3-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.scroll3-card img {
  margin: 0 auto 15px auto !important;
  display: block;
}
/* AJUSTE FINO: REDUCIR ESPACIO ENTRE IMAGEN Y TEXTO EN SERVICIOS */
.scroll3-card img {
  margin-bottom: 5px !important; /* antes 15px */
}

.scroll3-card h4 {
  margin-top: 5px !important; /* evita salto grande */
}

.scroll3-card p {
  margin-top: 5px !important; /* une más el texto */
}
/* MOSTRAR MENÚ EN TODAS LAS PÁGINAS MENOS LA HOME */
@media (max-width: 600px) {
  body:not(.home) .header nav {
    display: flex !important;
    gap: 20px;
  }
}

/* Reducir tamaño del texto del menú en móvil */
@media (max-width: 600px) {
  .main-menu a {
    font-size: 12px !important; /* Ajusta a tu gusto: 10px, 11px, 12px */
    font-weight: 500;
  }
}
/* ORDENAR HEADER EN MÓVIL:
   1) Logo arriba
   2) Banderas en medio
   3) Menú abajo
*/
@media (max-width: 600px) {

  /* El header pasa a columna */
  .header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 10px;
  }

  /* Logo arriba */
  .header .logo {
    order: 1;
  }

  .header .logo img {
    max-width: 360px;
  }

  /* Banderas en el centro */
  .lang-switcher {
    order: 2;
    display: flex;
    gap: 10px;
    justify-content: center;
  }

  .lang-switcher img {
    width: 22px;
    height: 22px;
  }

  /* Menú abajo */
  .main-menu {
    order: 3;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .main-menu a {
    font-size: 12px;
    font-weight: 600;
  }
}
.logo img {
    max-width: 180px;
    height: auto;
}

@media (max-width: 768px) {
    .logo img {
        max-width: 140px;
        margin: 0 auto;
        display: block;
    }
}
