/* AMD Services - VibraTune / Alara Matte Graphite & Titanium Gray Theme */
:root {
    --amd-primary: #F59E0B;
    --amd-primary-hover: #D97706;
    --amd-base-titanium: #14161B; /* Fondo matte oscuro elegante tipo VibraTune */
    --amd-card-matte: #1D2027; /* Tarjetas y paneles elevados */
    --amd-card-active: #22252F;
    --amd-pill-bg: #2D313B; /* Píldora de precio dentro de tarjeta */
    --amd-filter-bg: #1E2027; /* Píldora de categoría inactiva */
    --amd-filter-active: #FFFFFF; /* Píldora activa blanca nítida */
    --amd-filter-text: #111827;
    --amd-border: rgba(255, 255, 255, 0.08);
    --amd-text: #F9FAFB;
    --amd-text-muted: #9CA3AF;
    --amd-radius: 24px;
    --amd-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65);
}

/* El shortcode exterior SIEMPRE se mantiene invisible y sin marco según indicación del cliente */
.amd-configurator-container.amd-vibratune-theme {
    max-width: 480px;
    margin: 1rem auto;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--amd-text);
    box-shadow: none !important;
    overflow: visible !important;
    position: relative;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .amd-configurator-container.amd-vibratune-theme {
        max-width: 520px;
        margin: 2rem auto;
    }
}

/* ========================================================
   CONTENEDOR PRINCIPAL INTERIOR (MATTE TITANIUM APP)
   ======================================================== */
.amd-main-box {
    padding: 0 1.25rem !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--amd-text);
    position: relative;
    overflow: visible !important;
    box-sizing: border-box;
}

/* HEADER MINIMALISTA */
.amd-mini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.amd-brand-mini {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #FFFFFF;
}

.amd-brand-logo-svg {
    height: 30px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(237, 162, 3, 0.25));
}

.amd-brand-tag {
    font-weight: 400;
    color: var(--amd-text-muted);
    font-size: 1.08rem;
    margin-left: -0.1rem;
}

/* ========================================================
   PÍLDORAS DE FILTRADO HORIZONTAL (All | JBL | Bose)
   ======================================================== */
.amd-user-greeting-area {
    margin-bottom: 1.5rem;
    padding: 0 0.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.amd-greeting-text {
    flex-grow: 1;
    padding-right: 15px;
}

.amd-qr-scan-btn {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    margin-top: -45px;
    margin-right: -10px;
}

.amd-qr-scan-btn svg {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
}

.amd-qr-scan-btn:hover,
.amd-qr-scan-btn:active,
.amd-qr-scan-btn:focus {
    transform: scale(1.1);
    opacity: 1 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
}

.amd-qr-scan-btn:hover svg,
.amd-qr-scan-btn:active svg,
.amd-qr-scan-btn:focus svg {
    stroke: #EDA203 !important;
}

.amd-greeting-title {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    margin: 0 0 0.2rem 0 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.5px;
}

.amd-greeting-subtitle {
    font-size: 0.95rem !important;
    color: #9CA3AF !important;
    font-weight: 400 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

/* ========================================================
   PEEK HERO BANNER SLIDER HORIZONTAL (CON VISTA PREVIA)
   ======================================================== */
.amd-peek-slider-container {
    margin: 0 -1.25rem 1rem -1.25rem;
    position: relative;
    overflow: visible !important;
}

.amd-peek-slider-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1.5rem 1.25rem 3rem 1.25rem !important;
    margin: -1.5rem 0 -2rem 0;
    scrollbar-width: none;
}
.amd-peek-slider-track::-webkit-scrollbar { display: none; }

.amd-hero-peek-card {
    width: 78%;
    max-width: 320px;
    min-height: 430px;
    aspect-ratio: 3 / 4;
    flex-shrink: 0;
    scroll-snap-align: center;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    background-size: cover;
    background-position: top center;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.amd-hero-peek-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.38);
}

.amd-hero-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(13, 15, 24, 0) 0%, rgba(13, 15, 24, 0.1) 35%, rgba(13, 15, 24, 0.88) 65%, rgba(13, 15, 24, 0.98) 100%);
    z-index: 1;
}

.amd-hero-badge-top {
    position: absolute;
    top: 1.35rem;
    left: 1.35rem;
    z-index: 3;
}

.amd-hero-badge {
    background: #FFFFFF;
    color: #111827;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.38rem 1rem;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.amd-hero-portrait-content {
    position: absolute;
    left: 1.35rem;
    bottom: 2.35rem !important;
    right: 15px !important;
    z-index: 3;
    display: flex;
    flex-direction: column;
}

.amd-hero-title-light {
    font-size: 1.35rem !important;
    font-weight: 200 !important;
    color: #FFFFFF !important;
    line-height: 0.92 !important;
    margin: 0 0 -0.05rem 0 !important;
    opacity: 0.96;
    letter-spacing: -0.3px;
    white-space: nowrap !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.amd-hero-title-bold {
    font-size: 1.85rem !important;
    font-weight: 900 !important;
    color: #FFFFFF !important;
    line-height: 0.9 !important;
    margin: 0 0 0.4rem 0 !important;
    letter-spacing: -0.5px;
    white-space: nowrap !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.amd-hero-sub-top {
    font-size: 0.83rem !important;
    color: #9CA3AF !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    max-width: 66%;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

.amd-hero-sub-bottom {
    font-size: 0.86rem !important;
    color: #D1D5DB !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    max-width: 66%;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

/* ESQUINA DORADA DIAGONAL DE PRECIO (TIPO TU EMPRESA INTELIGENTE) */
.amd-hero-corner-price {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 4;
    background: #EDA203;
    color: #111827;
    border-top-left-radius: 36px;
    padding: 0.85rem 1.05rem 0.7rem 1.25rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: -8px -8px 24px rgba(0, 0, 0, 0.4);
}

.amd-corner-label {
    font-size: 0.65rem !important;
    font-weight: 800;
    color: #111827 !important;
    line-height: 1;
    opacity: 0.85;
    margin-bottom: 0.05rem;
}

.amd-corner-num {
    font-size: 1.5rem !important;
    font-weight: 900;
    color: #111827 !important;
    line-height: 0.92;
    letter-spacing: -0.5px;
}

.amd-corner-cur {
    font-size: 0.72rem !important;
    font-weight: 850;
    color: #111827 !important;
    line-height: 1;
    text-transform: uppercase;
    margin-top: 0.08rem;
}

.amd-pill-iva {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.85;
    margin-left: 0.25rem;
}

/* ========================================================
   MODAL OVERLAY ("KAREN" / POPUP CARD)
   ======================================================== */
.amd-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(13, 15, 20, 0.88) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    z-index: 999999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease !important;
}

.amd-modal-overlay.active {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
}

.amd-modal-box {
    width: 100% !important;
    max-width: 480px !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    position: relative !important;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.amd-modal-overlay.active .amd-modal-box {
    transform: scale(1) translateY(0);
}

.amd-modal-close {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    color: #FFFFFF !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    font-size: 1.3rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 50 !important;
    transition: all 0.2s !important;
}

.amd-modal-close:hover {
    background: rgba(245, 158, 11, 0.3) !important;
    color: #F59E0B !important;
}

.amd-pure-css-slider {
    width: 100%;
    margin: 1rem 0 2rem 0;
}

.amd-bottom-banner-card {
    position: relative;
    width: 100%;
    aspect-ratio: 12 / 5;
    background-color: transparent;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.amd-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amd-banner-img-1 {
    z-index: 1; 
}

.amd-banner-img-2 {
    z-index: 2;
    animation: amd-fade-2 10s infinite;
}

@keyframes amd-fade-2 {
    0%, 40% { opacity: 0; }
    50%, 90% { opacity: 1; }
    100% { opacity: 0; }
}

.amd-banner-text-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
/* ========================================================
   SERVICE DETAIL VIEW (NEW PAGE)
   ======================================================== */
.amd-detail-box {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 1.5rem;
    overflow-y: auto; /* PERMITE SCROLL SI EL TEXTO EMPUJA EL GRÁFICO FUERA DE LA PANTALLA */
    overflow-x: hidden;
    margin-top: -1rem; /* Compensa el margen del contenedor padre en móvil */
    background-color: transparent; /* Permite ver el gris de la página original */
}

@media (min-width: 768px) {
    .amd-detail-box {
        margin-top: -2rem; /* Compensa el margen del contenedor padre en desktop */
    }
}

.amd-detail-bg-container {
    position: absolute;
    top: -20%; /* Mueve TODO el contenedor hacia arriba de forma equilibrada */
    left: 0;
    width: 100%;
    height: 100%; /* Mantiene su tamaño original, sin reventar porque el padre no crecerá */
    z-index: 0;
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

#amd-detail-dynamic-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Evita que se corte la cabeza en pantallas cortas */
}

#amd-detail-dynamic-vid {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    object-position: top center;
    transform: scaleX(-1); /* Efecto espejo */
}





.amd-back-button {
    background: rgba(255, 255, 255, 0.15); /* Mismo estilo transparente que badges */
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    color: #e5e7eb; /* Mismo gris suavecito que badges */
    border-radius: 20px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amd-back-button:hover {
    background: rgba(255, 255, 255, 0.25);
}

.amd-back-button svg {
    stroke: currentColor !important; /* Hereda el color suave e5e7eb */
}

.amd-detail-content-area {
    margin-top: 4rem;
}

.amd-detail-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.amd-detail-glass-card {
    background: rgba(30, 32, 40, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem;
    color: #a0a4b8;
    min-height: 400px;
}

/* ========================================================
   DETAIL VIEW TEXT CONTENT
   ======================================================== */
.amd-detail-bottom-wrapper {
    position: absolute;
    top: 300px; /* Anclado desde ARRIBA (Top) en escritorio */
    bottom: auto;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column; 
}

.amd-detail-text-content {
    padding: 0 1.5rem; 
    text-align: left;
    box-sizing: border-box;
}

.amd-detail-category {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    color: #D1D5DB !important;
    letter-spacing: 0.8px;
    margin-bottom: 0.3rem;
    font-weight: 600;
    opacity: 0.88;
}

.amd-detail-main-title {
    color: #FFFFFF !important;
    margin-bottom: 0.8rem;
    margin-top: 0;
    display: flex;
    flex-direction: column;
}

.amd-detail-main-title .line-1 {
    color: #FFFFFF !important;
    font-size: 1.5rem;
    font-weight: 400; /* Normal */
    line-height: 0.9; /* Sin tanto espacio */
    letter-spacing: -0.3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.amd-detail-main-title .line-2,
.amd-detail-main-title .line-3 {
    color: #FFFFFF !important;
    font-size: 2.2rem;
    font-weight: 800; /* Bold */
    line-height: 0.9; /* Sin tanto espacio */
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
    margin-top: 0.1rem;
}

.amd-detail-description {
    color: #D1D5DB; /* Gris claro */
    font-size: 0.95rem;
    line-height: 1.3;
    max-width: 95%;
    margin: 0;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.amd-detail-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.amd-detail-badge {
    background: rgba(255, 255, 255, 0.15); /* Efecto cristal / translúcido oscuro */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e5e7eb; /* Texto claro */
    padding: 0.15rem 0.8rem; /* Padding vertical más delgado */
    border-radius: 20px; /* Forma de píldora (pill) */
    font-size: 0.75rem; /* Fuente ligéramente más pequeña */
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    transition: background 0.3s ease;
}

/* ========================================================
   GLOW CHART CONTAINER
   ======================================================== */
.amd-power-comparison-wrapper {
    width: 100%;
}
.amd-glow-chart-container {
    width: calc(100% + 3rem); /* Compensa el padding 1.5rem del amd-detail-bottom-wrapper (100% + 1.5rem * 2) */
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    height: 250px; 
    z-index: 5;
    margin-top: 0;
}

/* ========================================================
   TYPOGRAPHIC ARRANGEMENT
   ======================================================== */
.amd-detail-typo-slogan {
    text-align: center;
    margin-top: -1rem; /* Acercarlo un poco al gráfico si es necesario */
    display: flex;
    flex-direction: column;
    padding: 0 1.5rem;
    z-index: 10;
}

.amd-typo-line {
    font-size: 2.2rem;
    line-height: 0.95;
    color: #FFFFFF;
    font-weight: 400; /* Normal */
    letter-spacing: -0.5px;
}

.amd-typo-line.amd-typo-accent {
    font-weight: 800; /* Bold */
    color: #EDA203; /* Color acento del plugin */
    text-shadow: 0 2px 10px rgba(237, 162, 3, 0.4);
}

.amd-typo-sub {
    font-size: 1.1rem;
    color: #FFFFFF;
    font-weight: 400;
    margin-top: 0.8rem;
    letter-spacing: -0.2px;
}

.amd-typo-sub .amd-typo-accent {
    color: #EDA203;
    font-weight: 700;
}

/* ========================================================
   MEMBERSHIP SLIDER CARDS
   ======================================================== */
.amd-membership-cards-slider {
    display: flex;
    gap: 1rem;
    margin-top: 2rem; /* Reduje margin-top para compensar el padding */
    padding: 2rem 1.5rem 3rem 1.5rem; /* Padding top de 2rem para no cortar sombras */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    z-index: 10;
}

.amd-membership-cards-slider::-webkit-scrollbar {
    display: none;
}

/* ========================================================
   TABS & BENTO GRID SYSTEM
   ======================================================== */
.amd-main-description {
    text-align: center;
    color: #9CA3AF;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.amd-membership-tabs-nav {
    display: flex;
    justify-content: center;
    width: fit-content;
    margin: 0 auto 12px auto; /* Aumentado a 12px para igualar el nuevo gap del grid */
    background: transparent !important;
    border-radius: 0;
    padding: 0;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; /* Línea base sutil */
}

.amd-tab-btn {
    -webkit-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    outline: none !important;
    color: #9CA3AF !important;
    padding: 1rem 2rem;
    border-radius: 0 !important; 
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    margin-bottom: -1px; /* Para superponerse a la línea base del contenedor */
}

.amd-tab-btn:hover, .amd-tab-btn:focus, .amd-tab-btn:active {
    color: #FFFFFF !important;
    outline: none !important;
    border-top: none !important;
}

.amd-tab-btn.active {
    background: transparent !important; 
    color: #EDA203 !important; /* Texto amarillo por defecto (Core) */
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 2px solid #EDA203 !important; /* Indicador inferior amarillo */
    outline: none !important;
}

.amd-tab-btn[data-tab="nexus"].active {
    color: #00D1B2 !important;
    border-bottom: 2px solid #00D1B2 !important;
}

.amd-tab-btn[data-tab="apex"].active {
    color: #9D4EDD !important;
    border-bottom: 2px solid #9D4EDD !important;
}

.amd-membership-tabs-content {
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.amd-tab-pane {
    display: none;
    animation: amdFadeIn 0.4s ease forwards;
}

.amd-tab-pane.active {
    display: block;
}

@keyframes amdFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Bento Grid (Masonry 2-Col Layout) */
.amd-bento-grid {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.amd-bento-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.amd-bento-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #303032 0%, #3a393e 100%);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* Sombra mucho más tenue */
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* Sombreado encima de la imagen (Overlay) desactivado por ahora para lucir el gradiente gris */

.amd-card-history {
    height: 110px;
    justify-content: center;
}

.amd-card-autonomy-full {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 12px auto;
    height: auto;
    justify-content: center;
}

.amd-bento-gradient {
    flex: 1; /* Fills remaining height in left col */
}

.amd-card-square {
    height: 170px; /* Force squares in right col */
}

.amd-bento-card h4, .amd-card-autonomy-full h4 {
    color: #FFFFFF !important;
    font-size: 0.8rem !important; /* Más pequeño según solicitud */
    font-weight: 800 !important; /* Letra bold */
    margin: 0 0 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.amd-segmented-track {
    display: flex;
    gap: 6px;
    width: 100%;
    height: 8px;
    min-height: 8px;
    margin-top: 6px;
}

.amd-segment {
    flex: 1;
    background: rgba(76, 76, 76, 0.6);
    border-radius: 20px;
}

.amd-segment.active {
    background: #EDA203; 
    box-shadow: 0 0 10px rgba(237, 162, 3, 0.3);
}

.amd-progress-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 6px;
    font-size: 0.55rem; /* Más pequeño según solicitud */
    color: rgba(255, 255, 255, 0.3); /* Gris tenue para inactivos */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.amd-progress-labels span {
    flex: 1;
    text-align: center;
}
.amd-progress-labels span.active {
    color: rgba(255, 255, 255, 0.75); /* Gris claro para activos, no blanco puro */
}

#tab-pane-nexus .amd-segment.active {
    background: #00d1b2;
    box-shadow: 0 0 10px rgba(0, 209, 178, 0.3);
}

#tab-pane-apex .amd-segment.active {
    background: #9D4EDD;
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.3);
}

.amd-bento-metric {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.amd-bento-metric span {
    font-size: 0.8rem;
    color: #9CA3AF;
    font-weight: 500;
}

.amd-metric-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0066FF;
    display: inline-block;
}

.amd-bento-gradient {
    grid-column: span 2;
    padding: 2rem;
    padding-bottom: 5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: none; /* Quitamos el resplandor */
    position: relative;
}

.amd-bg-core { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); }
.amd-bg-nexus { background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%); }
.amd-bg-apex { background: linear-gradient(135deg, #3a1c71 0%, #d76d77 50%, #ffaf7b 100%); }

.amd-bento-gradient h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.amd-bento-gradient p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
}

.amd-bento-bottom-row {
    display: flex;
    gap: 0.8rem;
    margin-top: auto;
}

.amd-bento-pill {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem 1.5rem; /* Padding horizontal aumentado para juntar los elementos */
    border-radius: 12px;
    font-size: 0.75rem;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.amd-bento-pill strong {
    font-size: 1rem;
    display: block;
    margin-bottom: 0.1rem;
}

.amd-pill-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.amd-pill-info {
    display: flex;
    flex-direction: column;
}

.amd-pill-title {
    font-size: 0.6rem;
    color: #9CA3AF;
    font-weight: 800; /* Bold */
    margin-bottom: 0px; /* Reducido espacio hacia el número */
    white-space: nowrap; /* En una sola línea */
}

.amd-pill-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1;
}

.amd-donut-chart {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    /* 100 / 3000 = 3.33% */
    background: conic-gradient(#EDA203 3.33%, rgba(255, 255, 255, 0.1) 0);
    -webkit-mask: radial-gradient(circle at center, transparent 55%, black 56%);
    mask: radial-gradient(circle at center, transparent 55%, black 56%);
}

.amd-half-donut-chart {
    width: 46px;
    height: 23px;
    border-top-left-radius: 46px;
    border-top-right-radius: 46px;
    /* Inicio a la izquierda (270deg). 100/3000 = 3.33%. 180deg * 0.0333 = 6deg aprox. */
    background: conic-gradient(from 270deg at 50% 100%, #EDA203 6deg, rgba(255, 255, 255, 0.1) 6deg 180deg, transparent 180deg);
    -webkit-mask: radial-gradient(circle at 50% 100%, transparent 60%, black 61%);
    mask: radial-gradient(circle at 50% 100%, transparent 60%, black 61%);
}

.amd-info-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.amd-mini-chart-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    overflow: hidden;
    border-radius: 0 0 14px 14px;
    z-index: 5;
    pointer-events: none; /* Para no estorbar clicks */
}

.amd-mini-chart-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.amd-plan-card.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(237, 162, 3, 0.15);
    border-color: rgba(237, 162, 3, 0.4);
}

.amd-configurator-console {
    background: linear-gradient(145deg, rgba(20, 22, 30, 0.8) 0%, rgba(10, 12, 16, 0.9) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 2rem;
    margin: 1rem 1.5rem 4rem 1.5rem;
    color: white;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.amd-console-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.amd-console-header h4 {
    color: #EDA203;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
}

.amd-console-header p {
    color: #9CA3AF;
    margin: 0;
    font-size: 0.95rem;
}

.amd-console-body {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.amd-console-controls {
    flex: 1;
    min-width: 250px;
}

.amd-console-label {
    display: block;
    color: #D1D5DB;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.amd-credits-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.amd-credit-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amd-credit-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.amd-credit-btn.active {
    background: #EDA203;
    color: #111827;
    border-color: #EDA203;
    box-shadow: 0 4px 15px rgba(237, 162, 3, 0.3);
}

.amd-console-hint {
    font-size: 0.8rem;
    color: #6B7280;
    line-height: 1.4;
}

.amd-console-ticket {
    flex: 0 0 300px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.amd-ticket-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #D1D5DB;
}

.amd-ticket-row span:last-child {
    font-weight: 700;
    color: #FFFFFF;
}

.amd-ticket-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.amd-ticket-iva {
    color: #9CA3AF;
    font-size: 0.85rem;
}

.amd-ticket-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.amd-ticket-total span:first-child {
    font-weight: 900;
    font-size: 1.1rem;
    color: #EDA203;
}

.amd-ticket-total span:last-child {
    font-weight: 900;
    font-size: 1.4rem;
    color: #EDA203;
}

.amd-btn-checkout {
    background: linear-gradient(90deg, #EDA203, #FFAA00);
    color: #111827;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    margin-top: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amd-btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(237, 162, 3, 0.4);
}

@media (max-width: 768px) {
    .amd-bento-grid {
        flex-direction: row; /* Mantener 2 columnas */
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .amd-bento-col {
        gap: 12px;
    }
    
    .amd-bento-card {
        padding: 1rem 0.8rem; /* Reducir padding drásticamente para ganar espacio */
        border-radius: 14px; /* Mantener el mismo redondeo en móvil */
    }

    .amd-bento-card h4 {
        font-size: 0.9rem; /* Letra más pequeña */
        margin-bottom: 0.5rem;
    }

    .amd-bento-metric {
        font-size: 1.2rem; /* Número más compacto */
    }

    .amd-bento-card p {
        font-size: 0.75rem; /* Textos descriptivos pequeños */
        line-height: 1.3;
    }

    /* Ajuste especial de las píldoras en la tarjeta alta */
    .amd-bento-bottom-row {
        flex-direction: column;
        gap: 4px;
        margin-top: auto;
    }

    .amd-bento-pill {
        font-size: 0.65rem;
        padding: 0.3rem 0.5rem;
    }

    /* Reducir los círculos de autonomía */
    .amd-bento-circles {
        gap: 4px;
    }
    
    .amd-circle {
        width: 35px;
        height: 35px;
        font-size: 0.5rem;
    }

    /* Alturas ajustadas para móvil */
    .amd-card-history {
        height: 90px;
    }
    .amd-card-square {
        height: 140px;
    }
    .amd-membership-tabs-nav {
        width: calc(100% - 2rem);
        max-width: 400px;
        margin: 0 auto 12px auto; /* Mismo espacio en móvil */
        box-sizing: border-box;
        overflow-x: auto;
        justify-content: flex-start;
    }
    
    .amd-tab-btn {
        flex: 1;
        padding: 0.8rem 1rem;
        text-align: center;
        white-space: nowrap;
    }

    .amd-power-comparison-wrapper {
        width: 100%;
    }
    .amd-detail-bottom-wrapper {
        top: 470px; /* Ajustado a 470px desde el Top en MÓVIL */
        bottom: auto;
    }
    .amd-detail-text-content {
        padding: 0 1rem;
    }
    .amd-glow-chart-container {
        height: 180px !important; 
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
        margin-top: -20px !important; /* Sube la gráfica 20px */
    }
    .amd-detail-main-title .line-2,
    .amd-detail-main-title .line-3 {
        font-size: 1.8rem; /* Títulos un poco más chicos para que no estorben */
    }
    .amd-detail-badges {
        margin-top: 0.5rem;
    }
}
