.floating-btn-container {
    position: fixed;
    right: 0;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    z-index: 1001;
    font-family: 'Montserrat', sans-serif
}

.floating-btn {
    background-color: transparent;
    border: none;
    cursor:pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
    margin: 0 !important;
}

.button-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly
}

.button-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 0 !important;
}

.button-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    background: transparent;
    border-radius: 0 10px 10px 0;
    padding: 5px;
    /* box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2) */
}

.button-text:hover {
  transform: scale(1.25);
}

/* Animación del borde */
@keyframes gradientAI {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.floating-panel {
    position: fixed;
    right: -400px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 280px;
    background-color: #fff;
    border-radius: 10px 0 0 10px;
    -webkit-box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    -webkit-transition: right 0.4s ease;
    -moz-transition: right 0.4s ease;
    -o-transition: right 0.4s ease;
    -ms-transition: right 0.4s ease;
    transition: right 0.4s ease
}

.panel-header {
    padding: 10px 10px 0;
    text-align: right
}

.close-panel {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666
}

.panel-body {
    padding: 0 20px 30px
}

.panel-grid {
    display: grid;
    gap: 20px
}

.panel-item {
    display: -webkit-box;
    display: -moz-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: box;
    display: flex;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    -o-box-orient: vertical;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -moz-box-align: center;
    -o-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    text-align: center;
    border-radius: 8px;
    -webkit-transition: -webkit-transform 0.3s ease;
    -moz-transition: -moz-transform 0.3s ease;
    -o-transition: -o-transform 0.3s ease;
    -ms-transition: -ms-transform 0.3s ease;
    transition: transform 0.3s ease
}

.panel-item:hover {
    -webkit-transform: translateY(-5px);
    -moz-transform: translateY(-5px);
    -o-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    transform: translateY(-5px)
}

.item-circle {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;

  /* flotación + micro giro */
  animation: ia-float 3.4s ease-in-out infinite;
  will-change: transform;
}

.item-circle::before{
  content:"";
  position:absolute;
  inset:-8px;
  border-radius:999px;
  background: conic-gradient(
    from 0deg,
    rgba(255,109,64,.0),
    rgba(255,109,64,.85),
    rgba(120,180,255,.65),
    rgba(190,120,255,.60),
    rgba(255,109,64,.85),
    rgba(255,109,64,.0)
  );
  filter: blur(.2px);
  animation: ia-ring 4.4s linear infinite;
  opacity: .95;
}

/* “corte” para que se vea como borde */
.item-circle::after{
  content:"";
  position:absolute;
  inset: 3px;
  border-radius:999px;
  background:#fff;
  opacity: 1;
}

/* imagen encima */
.item-circle img{
  position: relative;
  z-index: 1;
  width: 100px;
  height: 100px;
  object-fit: contain;

  /* micro parallax */
  animation: ia-parallax 3.4s ease-in-out infinite;
  will-change: transform;
}

/* al hover, más “vivo” */
.item-circle:hover {
  animation-duration: 2.6s;
}
.item-circle:hover {
  animation-duration: 2.2s;
}
.item-circle:hover {
  animation-duration: 2.6s;
}

.item-title {
    font-size: 14px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600
}

.item-button {
    display: inline-block;
    padding: 6px 25px;
    border-radius: 20px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase
}

.ia-btn {
    background-color: #e67e22
}

.active {
    right: 0
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    pointer-events: auto
}

.overlay .active {
    display: block
}

@media (max-height:620px) {
    .floating-panel {
        max-height: 100vh !important;
        overflow-y: auto !important
    }

    .panel-header {
        position: sticky !important;
        top: 0 !important;
        background-color: #fff !important;
        padding: 0 10px !important;
        z-index: 2 !important
    }

    .close-panel {
        font-size: 30px !important;
        padding: 0 10px !important
    }

    .floating-button-container {
        top: 50% !important
    }
}

@media (max-width:400px) {
    .floating-panel {
        max-height: 85vh !important
    }

    .panel-grid {
        display: -webkit-box !important;
        display: -moz-box !important;
        display: -webkit-flex !important;
        display: -ms-flexbox !important;
        display: box !important;
        display: flex !important;
        -webkit-box-lines: single;
        -moz-box-lines: single;
        -o-box-lines: single;
        -webkit-flex-wrap: nowrap !important;
        -ms-flex-wrap: nowrap !important;
        flex-wrap: nowrap !important;
        padding-bottom: 10px !important;
        overflow-x: auto !important;
        overflow-y: visible !important
    }

    .panel-item {
        min-width: 120px !important;
        margin-right: 0 !important;
        overflow-x: auto !important;
        overflow-y: visible !important
    }
}