  /* ========================================
   RESET Y CONFIGURACIÓN GENERAL
======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
}

body {
  background-color: #F7F9FC;
  color: #2C3E50;
  padding-top: 80px; /* Espacio para el header fijo */
}

/* ========================================
   HEADER Y NAVEGACIÓN
======================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 87, 160, 0.8);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  backdrop-filter: blur(6px);
  height: 80px;
}

.logo img {
  height: 40px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: white;
  border-radius: 3px;
}

nav.menu {
  display: flex;
  justify-content: center;
  flex: 1;
  gap: 2rem;
  position: relative;
}

nav.menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav.menu a:hover {
  color: #E43338;
}

.menu-item {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(0, 87, 160, 0.95);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  min-width: 180px;
  z-index: 999;
}

.menu-item:hover .submenu,
.menu-item.show-submenu .submenu {
  display: block;
}

.submenu li {
  list-style: none;
  margin-bottom: 0.4rem;
  position: relative;
  padding-left: 1rem;
}

.submenu li::before {
  content: '\2022';
  color: #E43338;
  position: absolute;
  left: 0;
  top: 0;
}

.submenu li a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.submenu li a:hover {
  color: #E43338;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icono-red-local {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.icono-red-local:hover {
  filter: invert(34%) sepia(96%) saturate(700%) hue-rotate(-5deg) brightness(0.98);
}

/* Responsive header */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav.menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(0, 87, 160, 0.95);
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    display: none;
  }

  nav.menu.active {
    display: flex;
  }

  .social-icons {
    display: none;
  }

  .menu-item .submenu {
    position: static;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
  }

  .menu-item.show-submenu .submenu {
    display: block;
  }

  .submenu li a {
    padding-left: 0.5rem;
  }
}


/* ===================================================
   SLIDER (SOLO EN INDEX)
   =================================================== */

.slider {
  width: 100vw;
  height: calc(100vh - 80px);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

body.index .slider {
  height: 100vh;
  margin-top: 0; /* Elimina margen en el index */
}

.slider-container {
  display: flex;
  width: 600%;
  animation: slide 30s infinite;
}

.slide {
  flex: 0 0 100vw;
  height: 100%;
  position: relative;
  background-color: #000;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.15));
}

@keyframes slide {
  0%   { transform: translateX(0); }
  16%  { transform: translateX(0); }
  20%  { transform: translateX(-100vw); }
  36%  { transform: translateX(-100vw); }
  40%  { transform: translateX(-200vw); }
  56%  { transform: translateX(-200vw); }
  60%  { transform: translateX(-300vw); }
  76%  { transform: translateX(-300vw); }
  80%  { transform: translateX(-400vw); }
  96%  { transform: translateX(-400vw); }
  100% { transform: translateX(0); }
}

@media (max-width: 768px) {
  .slider,
  .slide {
    height: 85vh;
  }

  .slide img {
    object-fit: contain;
  }
}



/* ========================================
   SECCIÓN DE SOLUCIONES (Página Inicio)
=========================================== */
.soluciones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.solucion {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;

  /* Corrección altura */
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
}

.solucion:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.solucion img {
  width: auto;
  max-width: 100%;
  max-height: 320px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.solucion h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #0057A0;
  font-weight: 600;
}

.solucion p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
}


/* ===================================================
   PÁGINA: NOSOTROS
   =================================================== */

.nosotros {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: auto;
  color: #2C3E50;
}

.nosotros h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #0057A0;
  text-align: center;
}

.nosotros h3 {
  font-size: 1.3rem;
  color: #0057A0;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.nosotros p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* Misión y Visión */
.mision-vision {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
  margin-bottom: 3rem;
}

.mision-vision > div {
  flex: 1;
  min-width: 280px;
}

/* Valores */
.valores ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.valores li {
  margin-bottom: 0.7rem;
  font-weight: 500;
  position: relative;
  padding-left: 1.2rem;
}

.valores li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #E43338;
  font-size: 1.1rem;
}

/* Imagen del equipo */
.nosotros-imagen img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 2rem auto 0;
}

/* Responsive */
@media (max-width: 768px) {
  .mision-vision {
    flex-direction: column;
  }

  .nosotros h2 {
    font-size: 1.6rem;
  }

  .nosotros h3 {
    font-size: 1.15rem;
  }

  .nosotros p {
    text-align: left;
  }
}


/* ===================================================
   PÁGINA: CONTACTO
   =================================================== */
/
/* Contenedor general */
.contacto-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: flex-start;
  color: #2C3E50;
}

/* Información de contacto */
.contacto-info {
  flex: 1 1 40%;
}

.contacto-info h2 {
  font-size: 1.8rem;
  color: #0057A0;
  margin-bottom: 1rem;
}

.contacto-info p {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.contacto-info ul {
  list-style: none;
  padding-left: 0;
}

.contacto-info li {
  font-weight: 500;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.2rem;
}

.contacto-info li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #E43338;
  font-size: 1.1rem;
}

/* Mapa de ubicación */
.mapa {
  margin-top: 1.5rem;
  border: 2px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
}

/* Formulario */
.formulario-contacto {
  flex: 1 1 50%;
  padding: 2rem;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.formulario-contacto h2 {
  margin-bottom: 1rem;
  color: #E43338;
  font-size: 1.6rem;
  text-align: center;
}

.formulario-contacto form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.formulario-contacto input,
.formulario-contacto textarea {
  padding: 0.8rem;
  border: 1px solid #ccd9e6;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  background-color: #f7f9fc;
  resize: vertical;
}

.formulario-contacto textarea {
  min-height: 120px;
}

.formulario-contacto button {
  padding: 0.8rem 1.2rem;
  background-color: #E43338;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.formulario-contacto button:hover {
  background-color: #ba2529;
}

/* Botón volver */
.btn-volver {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.6rem;
  background-color: #0057A0;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.btn-volver:hover {
  background-color: #003e75;
}

/* Responsive */
@media (max-width: 768px) {
  .contacto-section {
    flex-direction: column;
  }

  .formulario-contacto {
    padding: 1.5rem;
  }

  .formulario-contacto h2 {
    font-size: 1.4rem;
  }
}


/* ===================================================
   TARJETA DIGITAL – ESTILOS Y FUNCIONES
   =================================================== */

.seccion-tarjeta-digital {
  padding: 2rem 1rem 5rem;
  max-width: 1400px;
  margin: auto;
  background: #f7f9fc;
}

.contenedor-principal {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contenido-lateral {
  flex: 1 1 58%;
  min-width: 340px;
}

.mockup-preview {
  flex: 1 1 38%;
  min-width: 280px;
  max-width: 380px;
  position: relative;
}

.plantilla-carrusel {
  margin-bottom: 2rem;
}

.carrusel {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  overflow: hidden;
}

.flecha {
  background: #0057A0;
  color: #fff;
  border: none;
  padding: 0.4rem 0.7rem;
  font-size: 1.4rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.25s;
}
.flecha:hover {
  background: #003e75;
}

.plantillas {
  display: flex;
  overflow-x: auto;
  gap: 0.6rem;
  padding: 0.5rem 0;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.plantillas::-webkit-scrollbar {
  display: none;
}

.plantillas img {
  width: 100px;
  height: 120px; /* ← AJUSTADO para evitar imágenes recortadas */
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #ccc;
  transition: transform 0.25s ease, border 0.25s ease;
}
.plantillas img:hover {
  transform: scale(1.05);
  border-color: #0057A0;
}
.plantilla-mini.activa {
  outline: 2px solid #E43338;
  transform: scale(1.07);
}


/* ===================================================
   CARRUSEL DE SOLUCIONES SUPERIOR (reutilizable)
   =================================================== */
/* ... Carrusel horizontal para navegación entre soluciones ... */

.carrusel-soluciones-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  overflow: hidden;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.carrusel-soluciones {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.5rem 0;
  scrollbar-width: none; /* Firefox */
  flex: 1;
}
.carrusel-soluciones::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.solucion-icono {
  flex: 0 0 auto;
  background-color: #f0f6fb;
  color: #0057A0;
  border: 1px solid #d0e6f6;
  padding: 0.7rem 1.2rem;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.solucion-icono:hover {
  background-color: #0057A0;
  color: #ffffff;
}

.soluciones-flecha {
  background-color: #0057A0;
  color: white;
  border: none;
  padding: 0.4rem 0.7rem;
  font-size: 1.4rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
.soluciones-flecha:hover {
  background-color: #003e75;
}

/* Responsive */
@media (max-width: 768px) {
  .carrusel-soluciones-wrapper {
    padding: 0.5rem 1rem;
    gap: 0.3rem;
  }
  .soluciones-flecha {
    font-size: 1.2rem;
    padding: 0.3rem 0.5rem;
  }
}


/* ===================================================
   FOOTER GENERAL
   =================================================== */

.footer {
  background-color: #002B45;
  color: #DDE6ED;
  padding: 3rem 2rem 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer h3 {
  margin-bottom: 1rem;
  color: #00BFA6;
  font-size: 1.1rem;
}

.footer-container p {
  max-width: 320px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-form input[type="email"] {
  padding: 0.6rem;
  width: 100%;
  max-width: 300px;
  margin-bottom: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
}

.footer-form button {
  padding: 0.6rem 1.2rem;
  border: none;
  background-color: #E43338;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}
.footer-form button:hover {
  background-color: #b5282c;
}

.footer-redes {
  text-align: left;
}

.footer-redes .iconos {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.footer-redes .icono-red-local {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}
.footer-redes .icono-red-local:hover {
  filter: invert(34%) sepia(96%) saturate(700%) hue-rotate(-5deg) brightness(0.98);
}

.footer-copy {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #ccc;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-redes .iconos {
    justify-content: flex-start;
  }
}

/* ===================================================
   RESPONSIVE (ADAPTACIONES PARA TABLET Y MÓVIL)
   =================================================== */

@media (max-width: 992px) {
  /* Header y menú */
  header {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .menu {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    margin-top: 1rem;
  }

  .social-icons {
    margin-top: 1rem;
  }

  /* Slider de inicio */
  .slider .slide h2 {
    font-size: 2rem;
  }

  .slider .slide p {
    font-size: 1rem;
    max-width: 90%;
  }

  /* Sección de soluciones */
  .soluciones {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  /* Sección Tarjeta Digital */
  .contenedor-principal {
    flex-direction: column;
  }

  .formulario-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .campo-doble {
    flex-direction: column;
  }

  .mockup-preview {
    order: -1;
    max-width: 100%;
  }

  .contenido-mockup h3 {
    font-size: 1rem;
  }

  .contenido-mockup p {
    font-size: 0.9rem;
  }

  .contenido-mockup .iconos {
    font-size: 1rem;
    gap: 0.5rem;
  }

  /* Carrusel de soluciones */
  .carrusel-soluciones-wrapper {
    padding: 0.5rem 1rem;
    gap: 0.3rem;
  }

  .soluciones-flecha {
    font-size: 1.2rem;
    padding: 0.3rem 0.5rem;
  }

  /* Página de contacto */
  .contacto-section {
    flex-direction: column;
  }

  .formulario-contacto {
    padding: 1.5rem;
  }

  .formulario-contacto h2 {
    font-size: 1.4rem;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .footer-redes .iconos {
    justify-content: flex-start;
  }

  .footer-copy {
    text-align: center;
    font-size: 0.85rem;
  }
}

/* === CONTACTO (DOS COLUMNAS) === */

.contacto-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.contacto-info {
  flex: 1 1 55%;
  min-width: 300px;
}

.contacto-info h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #003e75;
}

.contacto-info p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #333;
}

.contacto-info ul {
  list-style: none;
  padding: 0;
}

.contacto-info li {
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: #444;
}

.contacto-info li img {
  width: 20px;
  margin-right: 0.6rem;
}

.contacto-formulario {
  flex: 1 1 40%;
  min-width: 280px;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.contacto-formulario h3 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  color: #e53e3e;
}

.contacto-formulario input,
.contacto-formulario textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.contacto-formulario button {
  background-color: #e53e3e;
  color: #fff;
  padding: 0.8rem 1.4rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contacto-formulario button:hover {
  background-color: #c53030;
}

.mapa iframe {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 10px;
}
/* ========================================
   PÁGINA: CONTACTO (Formulario + Mapa)
======================================== */

.contacto-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: flex-start;
  color: #2C3E50;
}

.contacto-info {
  flex: 1 1 40%;
}

.contacto-info h2 {
  font-size: 1.8rem;
  color: #0057A0;
  margin-bottom: 1rem;
}

.contacto-info p {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.contacto-info ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.contacto-info li {
  font-weight: 500;
  margin-bottom: 0.7rem;
  position: relative;
  padding-left: 1.2rem;
}

.contacto-info li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #E43338;
  font-size: 1.1rem;
}

/* Mapa integrado */
.mapa {
  border: 2px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1rem;
}

/* Formulario */
.formulario-contacto {
  flex: 1 1 50%;
  padding: 2rem;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.formulario-contacto h2 {
  margin-bottom: 1rem;
  color: #E43338;
  font-size: 1.6rem;
  text-align: center;
}

.formulario-contacto form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.formulario-contacto input,
.formulario-contacto textarea {
  padding: 0.8rem;
  border: 1px solid #ccd9e6;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  background-color: #f7f9fc;
  resize: vertical;
}

.formulario-contacto textarea {
  min-height: 120px;
}

.formulario-contacto button {
  padding: 0.8rem 1.2rem;
  background-color: #E43338;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.formulario-contacto button:hover {
  background-color: #ba2529;
}

/* Botón volver (opcional) */
.btn-volver {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.6rem;
  background-color: #0057A0;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.btn-volver:hover {
  background-color: #003e75;
}

/* ========================================
   RESPONSIVE PARA CONTACTO
======================================== */
@media (max-width: 768px) {
  .contacto-section {
    flex-direction: column;
  }

  .formulario-contacto {
    padding: 1.5rem;
  }

  .formulario-contacto h2 {
    font-size: 1.4rem;
  }

  .contacto-info h2 {
    font-size: 1.6rem;
  }

  .contacto-info p,
  .contacto-info li {
    font-size: 0.95rem;
  }
}

