/* Estilos generales */
    /* Fuente para toda la página */
    body {
        font-family: 'Azonic';
        src: url('fonts/Azonix.otf') format('truetype');
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }

 /* Importar fuente */
@font-face {
    font-family: 'Azonic';
    src: url('fonts/Azonix.otf') format('truetype');
}

/* Estilo del header */
header {
    background-image: url('header.png');
    width: 97,05vw; /* Asegura que ocupe todo el ancho de la ventana */
    height: 230px; /* Ajusta la altura al valor que necesites */
    background-size: 100% 100%; /* Mantiene la imagen ajustada sin cortar */
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 20px;
    text-align: center;
}

/* Contenedor para los logos */
.logo-container {
    display: flex;
    justify-content: left;
    align-items: center;
    padding: 25px;
    margin-top: -4px;
}

/* Estilo general para todas las imágenes en el contenedor */
.logo-container img {
    width: 150px; /* Tamaño por defecto */
    height: auto;
    border-radius: 25%;
    object-fit: contain;
    background-color: transparent;
    margin-left: 80px;
    margin-bottom: -10px; /* Márgen inferior que mueve las palabras de las funciones */
}

/* Ajuste específico para la primera imagen dentro del contenedor */
.logo-container img:first-child {
    width: 195px; 
    margin-left: 100px;
}

/* Ajuste específico para la segunda imagen dentro del contenedor */
.logo-container img:nth-child(2) {
    width: 160px; 
}

/* Ajuste para unir las imágenes */
.logo-izquierdo0 {
    margin-right: -68px;
}

.logo-derecho0 {
    margin-left: -68px;
}

/* Apartado de funciones */
.funciones {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 30px;
    padding: 10px 0;
    color: #333;
    margin-left: 55px;
}

/* Estilo para los enlaces de funciones */
.funcion {
    font-family: 'Azonic', sans-serif;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    text-decoration: none;
    color: #000000;
    position: relative;
    transition: all 0.3s ease;
}

.funcion:hover {
    font-size: 20px;
}

/* Línea debajo al pasar el cursor */
.funcion:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000000;
}

/* === 📱 RESPONSIVO HEADER: reorganiza sin alterar tamaños base === */
@media (max-width: 768px) {
  header {
      height: auto; /* Permite que el contenido se adapte sin romper */
      padding: 20px;
      background-size: cover;
      background-position: center;
      text-align: center;
  }

  .logo-container {
      flex-wrap: wrap; /* Permite que los logos se acomoden sin apilarse */
      justify-content: center;
      align-items: center;
      padding: 25px;
      margin-top: 0;
      gap: 20px;
  }

  .logo-container img {
      width: 150px; /* Se mantiene el tamaño original */
      margin-left: 0;
      margin-bottom: 10px;
  }

  .logo-container img:first-child {
      width: 195px;
      margin-left: 0;
  }

  .logo-container img:nth-child(2) {
      width: 160px;
  }

  .logo-izquierdo0,
  .logo-derecho0 {
      margin: 0;
  }

  .funciones {
      flex-wrap: wrap; /* Evita que desaparezcan en pantallas pequeñas */
      justify-content: center;
      align-items: center;
      gap: 30px;
      margin-left: 0;
      padding: 10px 0;
      text-align: center;
  }

  .funcion {
      font-size: 18px; /* Se mantiene el tamaño original */
  }

  .funcion:hover {
      font-size: 20px;
  }
}

@media (max-width: 480px) {
  .logo-container img {
      width: 150px;
  }

  .logo-container img:first-child {
      width: 195px;
  }

  .logo-container img:nth-child(2) {
      width: 160px;
  }

  .funcion {
      font-size: 18px;
  }

  .funcion:hover {
      font-size: 20px;
  }
}


/* Sección principal */
.equipo-ventas {
  margin: 0;
  padding: 0;
  background-image: url('fondoasesores.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* Título */
.equipo-ventas h2 {
  font-size: 40px;
  color: #c42121;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 65px;
  margin-bottom: 40px;
  text-align: center;
  text-transform: uppercase;
  position: relative;
}

.equipo-ventas h2::after {
  content: '';
  display: block;
  width: 600px;
  height: 4px;
  background-color: #c42121;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* Grid de fichas */
.fichas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 0 60px 80px;
  justify-items: center;
  width: 100%;
}

/* Ficha */
.ficha {
  width: 100%;
  max-width: 320px;
  height: 400px;
  background-color: #f3f3f3;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(196, 33, 33, 0.6);
  perspective: 1200px;
  overflow: hidden;
}

.ficha-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.ficha:hover .ficha-inner {
  transform: rotateY(180deg);
}

/* Caras */
.cara {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 18px;
  box-sizing: border-box;
}

/* Frente */
.frente {
  background-color: #fbfbfb;
}

.frente img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  margin-bottom: 8px;
}

.frente p {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-top: 6px;
}

.icono {
  color: #c42121;
  margin-right: 6px;
}

/* Reverso */
.reverso {
  background-color: #fbfbfb;
  transform: rotateY(180deg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c42121 #e0e0e0;
}

/* Estilo para scrollbar en WebKit */
.reverso::-webkit-scrollbar {
  width: 6px;
}

.reverso::-webkit-scrollbar-thumb {
  background-color: #c42121;
  border-radius: 3px;
}

.reverso::-webkit-scrollbar-track {
  background-color: #e0e0e0;
}

.reverso h4 {
  font-size: 18px;
  color: #c42121;
  margin-bottom: 12px;
  text-align: center;
  width: 100%;
}

/* Contenedor de listas */
.rutas-listas {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Lista única centrada */
.rutas-listas ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ítems de la lista */
.rutas-listas li {
  position: relative;
  font-size: 14px;
  color: #444;
  margin-bottom: 5px;
  line-height: 1.45;
  padding-left: 18px;
  text-align: left;
  width: 100%;
}

/* Viñeta personalizada industrial */
.rutas-listas li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: #c42121;
  font-size: 14px;
  line-height: 1.45;
}

/* Animación de entrada más elegante */
.reverso ul {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.ficha:hover .reverso ul {
  opacity: 1;
  transform: scale(1);
}

/* === 📱 RESPONSIVO PARA LA SECCIÓN .EQUIPO-VENTAS (TABLET Y MÓVIL) === */
@media (max-width: 768px) {
  .equipo-ventas {
    padding: 0 20px;
    min-height: auto;
    background-position: center center;
    text-align: center;
  }

  .equipo-ventas h2 {
    font-size: 40px; /* Se mantiene tu tamaño original */
    margin-top: 50px;
    margin-bottom: 30px;
  }

  .equipo-ventas h2::after {
    width: 80%; /* Se adapta al ancho disponible */
    height: 4px;
  }

  .fichas-grid {
    grid-template-columns: repeat(2, 1fr); /* Dos columnas en tablet */
    gap: 40px;
    padding: 0 30px 60px;
  }

  .ficha {
    max-width: 320px;
    height: 400px;
  }

  .frente img {
    height: 330px;
  }

  .frente p {
    font-size: 16px;
  }

  .reverso h4 {
    font-size: 18px;
  }

  .rutas-listas li {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .equipo-ventas h2 {
    font-size: 36px;
    margin-top: 40px;
    margin-bottom: 25px;
  }

  .equipo-ventas h2::after {
    width: 90%;
  }

  .fichas-grid {
    grid-template-columns: 1fr; /* Una columna en móvil */
    gap: 30px;
    padding: 0 20px 50px;
  }

  .ficha {
    max-width: 100%;
    height: 400px;
  }

  .frente img {
    height: 300px;
  }

  .frente p {
    font-size: 15px;
  }

  .reverso h4 {
    font-size: 17px;
  }

  .rutas-listas li {
    font-size: 13.5px;
  }
}
  

/* Estilos del footer */
footer {
    background: linear-gradient(to bottom, #333, #444); /* Fondo degradado */
    color: #fff;
    padding: 20px 0;
    border-top: 3px solid #F08080; /* Línea superior distintiva */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* Centra las columnas horizontalmente */
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 15px;
}

/* Ajuste de columnas */
.footer-column {
    flex: 1;
    min-width: 250px;
    max-width: 350px; /* Limita el ancho para mayor balance visual */
    text-align: center; /* Alinea el contenido al centro */
}

/* Ajuste del menú */
.menu-column {
    margin-left: 130px; /* Empuja el menú un poco a la derecha */
}

/* Iconos de contacto */
.contact-info p i {
    color: #F08080; /* Mismo color que los íconos de redes sociales */
    font-size: 1.5em;
    margin-right: 8px;
    display: inline-block;
}

/* Alinear título de Contacto más centrado */
.contact-info h3 {
    text-align: center; /* Centrar el título */
    padding-bottom: 25px; /* Separación del título con la información de contacto */
    margin-left: 70px;
}

/* Espaciado uniforme de la información de contacto */
.contact-info p {
    display: flex;
    align-items: center;
    justify-content: center; /* Alineación similar a las otras columnas */
    gap: 10px;
    white-space: nowrap;
    margin-bottom: 10px; /* Espacio entre cada dato */
}

/* Asegurar que la info de contacto esté en una sola línea */
.contact-info p {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
    white-space: nowrap; /* Evita que el texto se divida en dos líneas */
}

/* Estilos del título en cada columna */
.footer-column h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #F08080;
}

/* Ajustes de lista */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #F4A89A;
    text-decoration: underline;
}

/* Ajustes de redes sociales */
.social-media li {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.social-media li a i {
    font-size: 1.5em;
    margin-right: 8px;
    color: #F08080;
    display: inline-block;
}

/* Estilos del footer-bottom */
.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    border-top: 1px solid #555;
    padding-top: 10px;
    color: #ddd;
}

/* === 📱 RESPONSIVO PARA LA SECCIÓN FOOTER (TABLET Y MÓVIL) === */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column; /* Apila las columnas verticalmente */
    align-items: center; /* Centra el contenido */
    gap: 20px; /* Se mantiene tu separación original */
    padding: 0 15px;
  }

  .footer-column {
    max-width: 100%; /* Permite que cada columna ocupe el ancho disponible */
    text-align: center;
  }

  .menu-column {
    margin-left: 0; /* Elimina el desplazamiento lateral en móvil */
  }

  .contact-info h3 {
    margin-left: 0; /* Centra el título sin desplazamiento */
    padding-bottom: 25px;
  }

  .contact-info p {
    justify-content: center; /* Centra los ítems de contacto */
    flex-wrap: wrap; /* Permite que se acomoden si el espacio es limitado */
    text-align: center;
  }

  .footer-column ul {
    margin-top: 30px;
  }

  .footer-column ul li {
    margin-bottom: 10px;
  }

  .social-media li {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 0 10px;
  }

  .footer-column h3 {
    font-size: 1.1em;
  }

  .footer-bottom {
    font-size: 0.85em;
    padding-top: 10px;
  }

  .contact-info p {
    gap: 8px;
    font-size: 0.95em;
  }

  .social-media li a i {
    font-size: 1.4em;
  }
}