/* --- VARIABLES Y SCOPE --- */
.tabs_nav {
    --flutter-blue: #C8FF66;
    --text-gray: #5f6368;
    /* --bg-light: #f1f3f4; */
    
    padding: 40px 20px;
    /* background-color: var(--bg-light); */
    /* font-family: 'Google Sans', Arial, sans-serif; */
}

/* --- NAVEGACIÓN (PILLS) --- */
.tabs_nav .tabs-nav {
    display: flex;
    justify-content: center; 
    gap: 12px;
    margin-bottom: 40px;
    padding: 10px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
}

.tabs_nav .tabs-nav::-webkit-scrollbar { display: none; }

.tabs_nav .tab-pill {
    flex: 0 0 auto; 
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 50px;
    border: none;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-gray);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tabs_nav .tab-pill.active {
    background: rgba(255,255,255,0.2)!important;
    color: var(--flutter-blue);
}

.tabs_nav .pill-icon {
    font-size: 0.75rem;
    background: rgb(146, 145, 146);
    padding: 2px 8px;
    border-radius: 10px;
    color: #fff;
}

.tabs_nav .tab-pill.active .pill-icon {
    background: rgba(255,255,255,0.2)!important;
    color: var(--flutter-blue);
}

/* --- TARJETA DE CONTENIDO --- */
.tabs_nav .tab-card {
    display: none;
    max-width: 1440px;
    margin: 0 auto;
    border-radius: 16px;
    padding: 30px;
}

.tabs_nav .tab-card.active {
    display: block;
    animation: slideFromBottom 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.tabs_nav .card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: center;
}

/* --- ELEMENTOS INTERNOS Y ANIMACIONES --- */
.tabs_nav .circle-bg {
    background: #e8f0fe;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
    /* Animación propia de la bola con delay */
    animation: revealCircle 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.2s; 
}

.tabs_nav .circle-bg img { 
    width: 80%; 
    height: auto; 
    animation: floatImage 3s ease-in-out infinite alternate;
}

.tabs_nav .card-info {
    padding: 0 20px;
    /* Animación propia del texto con más delay */
    animation: revealText 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.4s; 
}

.tabs_nav .card-image-small img {
    width: 100%;
    max-width: 180px;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* --- TEXTOS Y BOTONES --- */
.tabs_nav .text-blue { color: var(--flutter-blue); font-size: 1.8rem; margin-bottom: 15px; }
.tabs_nav .card-info p { color: var(--text-gray); line-height: 1.6; margin-bottom: 25px; }

.tabs_nav .btn-dartpad {
    background: var(--flutter-blue);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    transition: background 0.2s;
}

/* --- KEYFRAMES (ÚNICOS) --- */
@keyframes slideFromBottom {
    0% { opacity: 0; transform: translateY(80px); filter: blur(5px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes revealCircle {
    0% { opacity: 0; transform: translateY(120px) scale(0.4) rotate(-10deg); }
    100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}

@keyframes revealText {
    0% { opacity: 0; transform: translateY(40px) translateX(20px); filter: blur(10px); }
    100% { opacity: 1; transform: translateY(0) translateX(0); filter: blur(0); }
}

@keyframes floatImage {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* --- RESPONSIVE --- */
@media (max-width: 800px) {
    .tabs_nav .tabs-nav { justify-content: flex-start; padding: 10px 20px; }
    .tabs_nav .card-grid { grid-template-columns: 1fr; text-align: center; }
    .tabs_nav .card-image-small { display: none; }
    .tabs_nav .card-image-main { order: 1; }
    .tabs_nav .card-info { order: 2; }
    .tabs_nav .circle-bg { width: 180px; height: 180px; }
    .tabs_nav .text-blue { font-size: 1.5rem; }
}