body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

.main {
    background-color: rgb(243, 248, 254);
    min-height: calc(90vh - 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 65px;

}
.card {
    max-width: 700px;
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
    max-width: 900px;
    width: 100%;
}
.features .feature {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.titulo{
    font-size: 50px;
}

.texto-gradiente {
  background: linear-gradient(90deg, #3b82f6 0%, #9333ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.boton{
    background-color: rgb(204, 51, 204); 
    width: 100px;
    height: 45px;
    border: none;
    border-radius: 30px;
    color: white;
    transition: transform 0.2s; 
}

a.boton {
  display: inline-block;
  background-color: rgb(204, 51, 204);
  width: 120px;
  height: 45px;
  border: none;
  border-radius: 30px;
  color: white;
  text-align: center;
  line-height: 45px;
  font-size: 18px;
  text-decoration: none;      
  transition: transform 0.2s;
  cursor: pointer;
  margin-top: 10px;
}

a.boton:hover {
  transform: scale(1.08);
  background-color: #9333ea;
  text-decoration: none;     
}

.boton:hover{
    transform: scale(1.08);
}

/* ----------------- css para el boton de direccion e inputs ---------------------- */

.boton-direccion {
  background: linear-gradient(90deg, #3b82f6, #9333ea, #3b82f6);
  background-size: 200% 100%;
  background-position: left;
  width: 60px;
  height: 20px;
  color: white;
  border: none;
  border-radius: 10px;
  transition: background-position 0.5s ease-in-out;
}

.boton-direccion:hover {
  background-position: right;
}

/* Flex para los dropdowns */
.direccion-flex {
  display: flex;
  gap: 0;
  width: 100%;
}

/* Wrapper para ícono + select */
.direccion-input-wrap {
  position: relative;
  flex: 1;
}

/* Ícono dentro del select */
.direccion-input-wrap .material-symbols-outlined {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #3b82f6;
  pointer-events: none;
  z-index: 2;
}

/* Estilo base para los dropdowns */
.input-busqueda {
  border-radius: 0;
  padding-left: 44px;
  font-size: 1rem;
  height: 44px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(162,89,230,0.08);
  border: 1px solid #e5e7eb;
  transition: border-color 0.2s;
  width: 100%;
}

/* Redondeo izquierdo para el primero */
.direccion-left {
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
  border-right: none;
}

/* Redondeo derecho para el segundo */
.direccion-right {
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
}

/* Elimina doble borde entre los selects */
.direccion-input-wrap:not(:last-child) .input-busqueda {
  border-right: none;
}

/* Panel de fondo */
#direccionPanel {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 8px;
  box-shadow: 0 2px 8px rgba(162,89,230,0.06);
}

/* ----------------------------------------Estilos para el nav--------------------------------------------- */
  .header-empresa-custom {
    background: #f7f8fa;
    color: #444;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1050;
  }
  .header-title {
    font-size: 20px;
    color: rgb(204, 51, 204);
    letter-spacing: 0.5px;
  }
  .header-initiative {
    color: #888;
    font-size: 17px;
    margin-left: 8px;
  }
  .header-link img {
    height: 28px;
    vertical-align: middle;
    filter: grayscale(0.2);
    transition: filter 0.2s;
  }
  .header-link:hover img {
    filter: grayscale(0) drop-shadow(0 0 2px rgb(204, 51, 204));
  }
  .header-divider {
    display: inline-block;
    border-left: 2px solid #e0e0e0;
    margin: 0 16px;
  }

/* ----------------------------------Estilos iconos tarjetas---------------------------------- */
.icon-file {
    background: linear-gradient(90deg, #3b82f6 0%, #9333ea 100%);
    color: #fff;
    border-radius: 16px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.icon-search {
    background: linear-gradient(90deg, #3b82f6 0%, #9333ea 100%);
    color: #fff;
    border-radius: 16px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.icon-brand {
    background: linear-gradient(90deg, #3b82f6 0%, #9333ea 100%);
    color: #fff;
    border-radius: 16px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.search-info {
    margin-bottom: 80px;
    margin-left: 15px;
    margin-right: 15px;
}

.tarjeta-info:hover{
    transform: scale(1.00);
    transition: transform 0.5s, box-shadow 0.5s;
    box-shadow: 0px 0px 18px 0px rgba(59, 130, 246, 0.13);
    border-radius: 20px;
    overflow: hidden; 
}

.tarjeta-busqueda:hover{
    transform: scale(1.00);
    transition: transform 0.5s, box-shadow 0.5s;
    box-shadow: 0px 0px 18px 0px rgba(59, 130, 246, 0.13);
    border-radius: 20px;
}
.tarjeta-notificaciones:hover{
    transform: scale(1.00);
    transition: transform 0.5s, box-shadow 0.5s;
    box-shadow: 0px 0px 18px 0px rgba(59, 130, 246, 0.13);
    border-radius: 20px;
}

/* -------------------------------------------- Footer -------------------------------------------- */

  .footer-empresa-custom {
    background: #f7f8fa;
    color: #444;
    border-top: 1px solid #e0e0e0;
    font-size: 16px;
  }
  .footer-title {
    font-weight: 600;
    color: rgb(204, 51, 204);
    font-size: 18px;
  }
  .footer-desc {
    color: #555;
    font-size: 16px;
  }
  .footer-initiative {
    color: #888;
    font-size: 15px;
  }
  .footer-link img {
    height: 28px;
    vertical-align: middle;
    transition: filter 0.2s;
    filter: grayscale(0.2);
  }
  .footer-link:hover img {
    filter: grayscale(0) drop-shadow(0 0 2px rgb(204, 51, 204));
  }
  .footer-social .footer-icon {
    color: #a259e6;
    font-size: 22px;
    transition: color 0.2s;
  }
  .footer-social .footer-icon:hover {
    color: rgb(204, 51, 204);
  }

/* --------------------------------------- Estilos para el popover  ------------------------------------------*/

.popover-card-tip {
  background: #fff;
  color: #333;
  border-radius: 16px;
  border: 1.5px solid #6c2eb7;
  box-shadow: 0 4px 16px rgba(108,46,183,0.10);
  font-size: 15px;
  max-width: 300px;
  padding: 0;
}

.popover-header-tip {
  background: #f3eaff;
  color: #6c2eb7;
  border-radius: 16px 16px 0 0;
  font-weight: 600;
  padding: 8px 16px 6px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.popover-header-tip .material-symbols-outlined {
  font-size: 20px;
  color: #6c2eb7;
  margin-right: 4px;
  display: flex;
  align-items: center;
}

.popover-body-tip {
  padding: 12px 16px 10px 16px;
  color: #444;
  font-size: 15px;
  margin-bottom: 0;
}

.popover-card-tip .popover-body {
  padding: 0;
}
/* badge */
.badge-custom {
  display: inline-block;
  min-width: 140px;
  max-width: 160px;
  text-align: center;
  background: rgb(204, 51, 204);
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  box-shadow: 0 2px 8px rgba(162,89,230,0.08);
  border: none;
  transition: background 0.2s;
  vertical-align: middle;
}
.badge-custom i {
  margin-right: 4px;
}
/* ----------------------------------------Responsividad------------------------------------------- */

@media screen and (max-width: 768px) {

    .title {
        font-size: 10px;
    }
    
    .subtitle {
        font-size: 10px;
    }

    .logo-nav {
        width: 25px;
        height: 25px;
        font-size: 15px;
    }

    .card {
        margin-left: 10px;
        margin-right: 10px;
    }

    .titulo {
        font-size: 30px;
        margin: 15px;
    }

    .sub-titulo {
        font-size: 15px;
        margin: 25px;
    }

    .main{
        padding: 60px;
    }


}

@media screen and ( max-width: 480px ) { 

    .titulo {
        font-size: 25px;
        margin: 15px;
    }

    .sub-titulo {
        font-size: 12px;
        margin: 25px;
    }

    .search-inside-icon{
        font-size: 10px;
    }

    .input-busqueda {
        padding-left: 30px;
        font-size: 12px;
        
    }

    .features {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .features .feature {
        padding: 15px;
    }

    .main{
        padding: 50px;
    }
    
}

@media screen and (max-width: 1024px) {
    .header-titles.text-end {
        align-items: center;
        text-align: center;
    }
    
    .tarjeta-info:hover,
    .tarjeta-busqueda:hover,
    .tarjeta-notificaciones:hover {
        transform: none; /* Deshabilitar hover effects en touch devices */
    }
}

/* Mejoras para accesibilidad y touch devices */
@media (hover: none) and (pointer: coarse) {
    .tarjeta-info:hover,
    .tarjeta-busqueda:hover,
    .tarjeta-notificaciones:hover {
        transform: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}