:root {
    --pro-blue-dark: #0f172a;
    --pro-blue-primary: #2563eb;
    --pro-blue-light: #3b82f6;
    --pro-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --pro-surface: #ffffff;
    --pro-bg: #f8fafc;
    --pro-text-main: #1e293b;
    --pro-text-muted: #64748b;
    --pro-radius: 24px;
    --pro-shadow: 0 20px 40px -5px rgba(37, 99, 235, 0.15); /* Sombra azulada */
}


/* TABS ESTILO SWITCH iOS */
.tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.tabs-wrapper { display: flex; justify-content: center; margin-bottom: 50px; }
.tabs-container {
    background: #e2e8f0;
    padding: 5px;
    border-radius: 99px;
    display: inline-flex;
}
.tab-btn {
    border: none;
    background: transparent;
    padding: 12px 35px;
    border-radius: 99px;
    font-weight: 800;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s;
}
.tab-btn.active {
    background: #fff;
    color: var(--net-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* La pastilla blanca que se mueve (Glider) */
/* Nota: Para simplicidad en PHP puro sin mucho JS complejo, 
   usaremos estilo directo en .active, pero este setup permite animarlo si quieres */
.tab-btn.active {
    background: #fff;
    border-radius: 99px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}


/* GRID */
.hogar-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
    animation: fadeInUp 0.5s ease;
}

.hogar-grid.active-grid { display: grid; }

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

/* TARJETA PRO */
.h-card-pro {
    background: var(--pro-surface);
    border-radius: var(--pro-radius);
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.h-card-pro:hover {
    transform: translateY(-10px);
    box-shadow: var(--pro-shadow);
}

/* Borde brillante para destacados */
.h-card-pro.featured-card {
    border: 2px solid var(--pro-blue-primary);
}

.floating-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    color: var(--pro-blue-primary);
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 99px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* HEADER TARJETA */
.h-card-header {
    background: var(--pro-gradient);
    padding: 40px 30px 60px; /* Espacio extra abajo para la curva */
    color: #fff;
    position: relative;
    text-align: center;
}

.h-plan-name {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin: 0 0 10px;
    opacity: 0.9;
}

.h-speed-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.speed-num {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.speed-meta {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.1;
}

.speed-unit { font-size: 18px; font-weight: 800; }
.speed-label { font-size: 12px; opacity: 0.8; }

.header-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1;
}

/* BODY TARJETA */
.h-card-body {
    padding: 10px 30px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* PRECIO */
.h-pricing-block {
    text-align: center;
    margin-bottom: 25px;
}

.h-price-row {
    color: var(--pro-blue-dark);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    line-height: 1;
}

.h-currency { font-size: 24px; font-weight: 600; margin-top: 5px; margin-right: 4px; }
.h-amount { font-size: 48px; font-weight: 800; letter-spacing: -1px; }

.h-period {
    font-size: 12px;
    color: var(--pro-text-muted);
    font-weight: 500;
}

/* APPS GRID */
.h-apps-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.app-bubble {
    width: 42px;
    height: 42px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.app-bubble:hover { transform: translateY(-3px) scale(1.1); }
.app-bubble img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }

.app-bubble.more {
    background: #f1f5f9;
    color: var(--pro-text-muted);
    font-weight: 700;
    font-size: 12px;
}

.divider { height: 1px; background: #f1f5f9; margin: 0 auto 20px; width: 80%; }

/* FEATURES LIST */
.h-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.h-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--pro-text-main);
}

.icon-box {
    width: 28px;
    height: 28px;
    background: #eff6ff;
    color: var(--pro-blue-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* DETALLES TOGGLE */
.h-details-btn {
    background: none;
    border: none;
    color: var(--pro-blue-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-bottom: 10px;
}

.h-details-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #f8fafc;
    border-radius: 12px;
}
.h-details-content ul {
    padding: 15px 20px;
    margin: 0;
    list-style: none;
}
.h-details-content li {
    font-size: 13px;
    color: var(--pro-text-muted);
    margin-bottom: 6px;
}

/* BOTÓN CTA */
.h-btn-cta {
    margin-top: auto;
    background: var(--pro-blue-dark);
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: 99px;
    font-weight: 700;
    transition: all 0.3s;
}

.h-btn-cta:hover {
    background: var(--pro-blue-primary);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
    transform: translateY(-3px);
}